Commit f878858
Scale Table.EXPLORER_EXTRA by zoom level instead of using fixed pixels
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.1 parent de3812d commit f878858
File tree
1 file changed
+5
-4
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+5
-4
lines changedLines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3545 | 3545 | | |
3546 | 3546 | | |
3547 | 3547 | | |
| 3548 | + | |
3548 | 3549 | | |
3549 | 3550 | | |
3550 | 3551 | | |
| |||
3561 | 3562 | | |
3562 | 3563 | | |
3563 | 3564 | | |
3564 | | - | |
| 3565 | + | |
3565 | 3566 | | |
3566 | | - | |
3567 | | - | |
| 3567 | + | |
| 3568 | + | |
3568 | 3569 | | |
3569 | 3570 | | |
3570 | 3571 | | |
| |||
4880 | 4881 | | |
4881 | 4882 | | |
4882 | 4883 | | |
4883 | | - | |
| 4884 | + | |
4884 | 4885 | | |
4885 | 4886 | | |
4886 | 4887 | | |
| |||
0 commit comments