-
Notifications
You must be signed in to change notification settings - Fork 182
Scale Table.EXPLORER_EXTRA by zoom level instead of using fixed pixels #2452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scale Table.EXPLORER_EXTRA by zoom level instead of using fixed pixels #2452
Conversation
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java
Show resolved
Hide resolved
e1345db
to
e974783
Compare
@ShahzaibIbrahim Are you sure about your How To Test? With the SnippetExplorer I don't run into any of the usages of this constants. |
I might have mentioned wrong snippet here. I will check and confirm it in a bit. Edit: It was a snippet 7, I mistyped. @akoch-yatta |
e974783
to
66955f7
Compare
66955f7
to
c5275cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good and ensure a consistent behavior independent of the zoom the Table is rendered for
359f83d
to
98fcc9a
Compare
The Table.VISTA_EXTRA and Table.EXPLORER_EXTRA constants specify additional spacing applied to table items when using the Vista or Explorer themes. Previously, both were defined as fixed pixel values, which worked at 100% zoom but did not scale properly on high-DPI monitors. This change redefines VISTA_EXTRA and EXPLORER_EXTRA in points and converts them to pixels based on the current zoom level, ensuring consistent spacing for themed table items across different display scales.
98fcc9a
to
f99943d
Compare
The Table.VISTA_EXTRA and Table.EXPLORER_EXTRA constants specify additional spacing applied to table items when using the Vista or Explorer themes. Previously, both were defined as fixed pixel values, which worked at 100% zoom but did not
scale properly on high-DPI monitors.
This change redefines VISTA_EXTRA and EXPLORER_EXTRA in points and converts them to pixels based on the current zoom level, ensuring consistent spacing for themed table items across different display scales.
How to Test