Commit b8a2c8c
committed
Scale Tree.EXPLORER_EXTRA by zoom level instead of using fixed pixels
The Tree.EXPLORER_EXTRA constant specifies the additional spacing applied to
tree items when using the Explorer theme. Previously, this was defined as a
fixed pixel value, which caused the extra spacing to appear too small on
high-DPI monitors.
This change redefines EXPLORER_EXTRA in points and converts it to pixels based
on the current zoom level, ensuring consistent spacing in Explorer-themed trees
across different display scales.1 parent 93a484e commit b8a2c8c
File tree
1 file changed
+8
-8
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+8
-8
lines changedLines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
471 | | - | |
| 470 | + | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
1138 | | - | |
1139 | | - | |
| 1138 | + | |
| 1139 | + | |
1140 | 1140 | | |
1141 | | - | |
1142 | | - | |
| 1141 | + | |
| 1142 | + | |
1143 | 1143 | | |
1144 | 1144 | | |
1145 | 1145 | | |
| |||
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
1211 | | - | |
1212 | | - | |
| 1211 | + | |
| 1212 | + | |
1213 | 1213 | | |
1214 | 1214 | | |
1215 | 1215 | | |
| |||
0 commit comments