Commit 34bb179
Correct wrongly scaled images in colors/fonts preference page
The colors/fonts preference page uses images for the items shown in a
tree viewer that preview the selected color. The current implementation
has two limitations:
- It does not properly scale with the current monitor zoom
- It uses a wrong image size based on the tree item height instead of
the tree item image size, such that the rendered image is scaled and may
loose information
This change removes all custom extraction of the image size as the image
simply needs to have the same size as all other images default to
(16x16) to fit. It also wraps the implementation info an ImageGcDrawer
to be monitor-scale-aware.1 parent 0714402 commit 34bb179
1 file changed
Lines changed: 13 additions & 28 deletions
File tree
- bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/themes
Lines changed: 13 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | 337 | | |
341 | 338 | | |
342 | 339 | | |
| |||
440 | 437 | | |
441 | 438 | | |
442 | 439 | | |
| 440 | + | |
| 441 | + | |
443 | 442 | | |
444 | 443 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
462 | 454 | | |
463 | 455 | | |
464 | 456 | | |
| |||
470 | 462 | | |
471 | 463 | | |
472 | 464 | | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | 465 | | |
481 | 466 | | |
482 | 467 | | |
| |||
0 commit comments