Commit 0c4acae
committed
Fix the selected background in Toolbar on Windows
Take the same approach as Button.java, manually fill the background for
checked items and tell Windows to skip its own background:
Now in dark mode, for each toolbar item:
- Checked: fill with getDifferentColor() (20% lighter shade)
- Hot (hovered): fill with getSlightlyDifferentColor() (10% lighter
shade)
- Normal: fill with the background color
Then TBCDRF_NOBACKGROUND prevents Windows from painting its own white
highlight on top.
Fixes: #2171 parent 9e86574 commit 0c4acae
File tree
1 file changed
+16
-3
lines changed- bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets
1 file changed
+16
-3
lines changedLines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1688 | 1688 | | |
1689 | 1689 | | |
1690 | 1690 | | |
1691 | | - | |
| 1691 | + | |
1692 | 1692 | | |
1693 | 1693 | | |
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
1698 | | - | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
1699 | 1701 | | |
1700 | 1702 | | |
1701 | | - | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
1702 | 1715 | | |
1703 | 1716 | | |
1704 | 1717 | | |
| |||
0 commit comments