You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prepare NatTable to work correctly with changed scaling in SWT #172
The current SWT implementation updated the scaling API to support multi-device usage and scale according to the current active display. NatTable has implemented its own scaling mechanism that relies on Display.getDPI(). That method was deprecated in current implementations, therefore NatTable needs to update its implementation to also work with future SWT versions and to support the multi-display scenarios.
The following topics should be addressed:
Replace the usage of Display.getDPI()
Add a ZoomChangedListener
Additionally it would be beneficial to change the NatTable internal icons to SVGs, which are now supported in SWT. This would improve the dynamic scaling feature in NatTable that was introduced with #132
There are already some information collected in this discussion: #164
For the "up" "down" "right_down" "right" "left" "vertical_resize" and "horizontal_resize" I will take currentColor. I'm not quite sure if this will work, but if so, then we will not need any inverse icons, because the font color will be taken.
Thank you. Yes, I plan to do so. I need a bit more time but I should be able to deliver all missing ones until christmas. Here are some more to preview.
Please note that all icons will now have the same size with 24x24px.
This is different to the sizes of the pngs. Resizing them is done fast by changing the width and height in the svg files. Eclipse Platform uses 24x24 and 16x16. We will have to see how the look and feel is when using them and resize them when required.
For the chevrons (up, down, left, right) I will not duplicate the icons for the different sizes. Its best to use the scaling of these icons for different sizes. I think for example 'up' and 'down' are used in different sizes when sorting by multiple columns.
Activity
JR-1993 commentedon Nov 22, 2025
Do you already have all icons as SVGs? If not I would offer my help creating them.
fipro78 commentedon Nov 22, 2025
No, I don't have the icons as svg yet. Any help would be great!
JR-1993 commentedon Nov 22, 2025
Here is a litte peek preview:
For the "up" "down" "right_down" "right" "left" "vertical_resize" and "horizontal_resize" I will take currentColor. I'm not quite sure if this will work, but if so, then we will not need any inverse icons, because the font color will be taken.
fipro78 commentedon Dec 9, 2025
Sorry for the late feedback. They look nice. I will see how to integrate them correctly. Do you plan to share the missing ones also?
JR-1993 commentedon Dec 9, 2025
Thank you. Yes, I plan to do so. I need a bit more time but I should be able to deliver all missing ones until christmas. Here are some more to preview.
Please note that all icons will now have the same size with 24x24px.
This is different to the sizes of the pngs. Resizing them is done fast by changing the width and height in the svg files. Eclipse Platform uses 24x24 and 16x16. We will have to see how the look and feel is when using them and resize them when required.
For the chevrons (up, down, left, right) I will not duplicate the icons for the different sizes. Its best to use the scaling of these icons for different sizes. I think for example 'up' and 'down' are used in different sizes when sorting by multiple columns.
fipro78 commentedon Dec 10, 2025
Thanks a lot! And no pressure, I am not planning to work on this very soon. I was just curious. :)
Prepare NatTable to work correctly with changed scaling in SWT eclips…
Prepare NatTable to work correctly with changed scaling in SWT eclips…
Prepare NatTable to work correctly with changed scaling in SWT #172 (#…