Commit 327d286
committed
Scale Tree.INSET by zoom level instead of using fixed pixels
The Tree.INSET constant defines the spacing between an item's image and text.
Previously, this was a fixed value of 3px, which looks correct at 100% zoom but
causes the image and text to appear cramped on higher-DPI displays.
This change defines INSET in points and converts it to pixels based on the
current zoom level (e.g. 6px at 200%), ensuring consistent spacing across
different monitor scales.1 parent 93c0ce9 commit 327d286
File tree
2 files changed
+18
-18
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
2 files changed
+18
-18
lines changedLines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
| 752 | + | |
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
762 | | - | |
| 761 | + | |
| 762 | + | |
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| |||
5484 | 5484 | | |
5485 | 5485 | | |
5486 | 5486 | | |
5487 | | - | |
| 5487 | + | |
5488 | 5488 | | |
5489 | 5489 | | |
5490 | 5490 | | |
| |||
5498 | 5498 | | |
5499 | 5499 | | |
5500 | 5500 | | |
5501 | | - | |
5502 | | - | |
| 5501 | + | |
| 5502 | + | |
5503 | 5503 | | |
5504 | 5504 | | |
5505 | 5505 | | |
| |||
7925 | 7925 | | |
7926 | 7926 | | |
7927 | 7927 | | |
7928 | | - | |
| 7928 | + | |
7929 | 7929 | | |
7930 | 7930 | | |
7931 | 7931 | | |
| |||
8243 | 8243 | | |
8244 | 8244 | | |
8245 | 8245 | | |
8246 | | - | |
| 8246 | + | |
8247 | 8247 | | |
8248 | 8248 | | |
8249 | 8249 | | |
| |||
8254 | 8254 | | |
8255 | 8255 | | |
8256 | 8256 | | |
8257 | | - | |
| 8257 | + | |
8258 | 8258 | | |
8259 | 8259 | | |
8260 | 8260 | | |
8261 | | - | |
| 8261 | + | |
8262 | 8262 | | |
8263 | 8263 | | |
8264 | 8264 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | | - | |
523 | | - | |
| 522 | + | |
| 523 | + | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
| 921 | + | |
922 | 922 | | |
923 | | - | |
| 923 | + | |
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
| |||
0 commit comments