Commit 35119f0
Scale Table.INSET by zoom level instead of using fixed pixels
The Table.INSET constant defines the spacing in the width of a table
cell. 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 scale.1 parent 6e4241d commit 35119f0
File tree
2 files changed
+10
-10
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
2 files changed
+10
-10
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4860 | 4860 | | |
4861 | 4861 | | |
4862 | 4862 | | |
4863 | | - | |
| 4863 | + | |
4864 | 4864 | | |
4865 | 4865 | | |
4866 | 4866 | | |
| |||
4880 | 4880 | | |
4881 | 4881 | | |
4882 | 4882 | | |
4883 | | - | |
| 4883 | + | |
4884 | 4884 | | |
4885 | 4885 | | |
4886 | 4886 | | |
| |||
6962 | 6962 | | |
6963 | 6963 | | |
6964 | 6964 | | |
6965 | | - | |
| 6965 | + | |
6966 | 6966 | | |
6967 | 6967 | | |
6968 | 6968 | | |
| |||
7303 | 7303 | | |
7304 | 7304 | | |
7305 | 7305 | | |
7306 | | - | |
| 7306 | + | |
7307 | 7307 | | |
7308 | | - | |
| 7308 | + | |
7309 | 7309 | | |
7310 | 7310 | | |
7311 | 7311 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
| 703 | + | |
704 | 704 | | |
705 | | - | |
| 705 | + | |
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
| |||
0 commit comments