Commit bebec37
committed
Fix disabled wizard buttons appearing enabled in dark theme
In the dark theme, the CSS sets a foreground color on all Button elements,
which overrides the native OS disabled button rendering. This causes
disabled buttons (like 'Finish') to look identical to enabled ones.
Fix this by setting a 'disabled' CSS class on wizard buttons when they
are disabled. The dark theme CSS now includes a Button.disabled rule
with a dimmed foreground color. A reskin is triggered on state change
so the CSS engine re-applies styles without needing the global
dynamic CSS pseudo-class support (which is disabled for performance).1 parent efb185f commit bebec37
File tree
2 files changed
+25
-5
lines changed- bundles
- org.eclipse.jface/src/org/eclipse/jface/wizard
- org.eclipse.ui.themes/css/dark
2 files changed
+25
-5
lines changedLines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
976 | | - | |
| 976 | + | |
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | | - | |
| 1069 | + | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1073 | 1088 | | |
1074 | 1089 | | |
1075 | 1090 | | |
| |||
1332 | 1347 | | |
1333 | 1348 | | |
1334 | 1349 | | |
1335 | | - | |
| 1350 | + | |
1336 | 1351 | | |
1337 | 1352 | | |
1338 | 1353 | | |
1339 | | - | |
| 1354 | + | |
1340 | 1355 | | |
1341 | | - | |
| 1356 | + | |
1342 | 1357 | | |
1343 | 1358 | | |
1344 | 1359 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments