Commit 1ae0e18
Scale Table.GRID_WIDTH by zoom level instead of using fixed pixels
The Table.GRID_WIDTH constant specifies the extra width added to a table
item
when lines between columns are visible (`lineVisible = true`). This
accounts
for the space taken by the grid line. Previously, it was defined as a
fixed
pixel value, which appeared too small on high-DPI monitors.
This change redefines GRID_WIDTH in points and scales it to pixels based
on
the current zoom level. At 100% zoom this results in 2px instead of 1px,
which is visually negligible but ensures consistency by keeping all
constants
defined in points and scaled according to zoom level.1 parent 9bf4caf commit 1ae0e18
File tree
2 files changed
+8
-8
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
2 files changed
+8
-8
lines changedLines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2334 | 2334 | | |
2335 | 2335 | | |
2336 | 2336 | | |
2337 | | - | |
| 2337 | + | |
2338 | 2338 | | |
2339 | 2339 | | |
2340 | 2340 | | |
2341 | | - | |
| 2341 | + | |
2342 | 2342 | | |
2343 | 2343 | | |
2344 | 2344 | | |
| |||
5308 | 5308 | | |
5309 | 5309 | | |
5310 | 5310 | | |
5311 | | - | |
| 5311 | + | |
5312 | 5312 | | |
5313 | 5313 | | |
5314 | 5314 | | |
| |||
6353 | 6353 | | |
6354 | 6354 | | |
6355 | 6355 | | |
6356 | | - | |
| 6356 | + | |
6357 | 6357 | | |
6358 | 6358 | | |
6359 | 6359 | | |
| |||
6462 | 6462 | | |
6463 | 6463 | | |
6464 | 6464 | | |
6465 | | - | |
| 6465 | + | |
6466 | 6466 | | |
6467 | | - | |
| 6467 | + | |
6468 | 6468 | | |
6469 | 6469 | | |
6470 | 6470 | | |
| |||
7283 | 7283 | | |
7284 | 7284 | | |
7285 | 7285 | | |
7286 | | - | |
| 7286 | + | |
7287 | 7287 | | |
7288 | 7288 | | |
7289 | 7289 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
0 commit comments