Comments (7)
Yes, that should be not that difficult to implement and is a nice improvement 👍
from flatlaf.
This is now implemented in master branch.
To enable it use:
UIManager.put( "TableHeader.sortIconPosition", "top" );
"bottom" and "left" are also supported:
from flatlaf.
@DevCharly Thanks for the fix, it is almost perfect! 🙂 When the arrow is at the top, I feel it is too close to the text. I think it would look better if it were 1 pixel up.
See this comparison "now vs 1px up":
from flatlaf.
I am not concerned by right-to-left support. Still, I am curious: how does the table behave in RTL mode, and what does "left"/"right" sort position mean in that case? Should you also support "leading" and "trailing" positions then?
from flatlaf.
Thanks for your feedback. I've optimized the position of the top arrow.
Also fixed the position of the chevron style arrow, which was not at the same position as the triangle arrow.
Regarding RTL: this is indeed not supported. I've tested all system LaFs (on Windows and macOS) and some popular open-source LaFs, but all of them ignore RTL for the sort arrow position. So right now, I think I leave it as it is...
from flatlaf.
Hi @DevCharly, I tried the chevron top position earlier today and it is much better. Thanks again for your work!
from flatlaf.
released in 0.27
from flatlaf.
Related Issues (20)
- MacOS full screen after, hope to see the title fixed HOT 1
- How do I change border thickness of checkbox icon on hover? HOT 1
- Calling Repaint from component UI is not opening the jtree node editor in custom JTreeTable HOT 10
- TabPane scrollButtonsPolicy HOT 2
- Update embedded menu HOT 2
- java.lang.Error: createUI() failed for com.formdev.flatlaf.ui.FlatScrollBarUI$FlatScrollBarButton HOT 1
- Question on HiDPI vs. non-HiDPI HOT 3
- JTabbedPane refreh on setBackgroundAt HOT 6
- Better integration with Gnome on Linux? HOT 1
- FlatSVGIcon uses logSevere for recoverable errors HOT 2
- Question on customizing IntelliJ theme through properties file HOT 5
- Add Hostname to Title Bar when X11 Forwarding HOT 10
- 3.4 - JVM crash on macOS HOT 5
- Global menu for Linux distros HOT 5
- Wrap FileChooser's shortcuts panel in vertical scroll pane
- Embedded binaries are not signed on macOS HOT 1
- Random JProgressBar exceptions HOT 5
- Request: JSplitPane.expandableSide "none" property HOT 5
- ToolTip is refreshing multiple times when cursor is moving HOT 5
- ScrollBar for JList not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatlaf.