Commit 748ccff
committed
Align dark theme form chrome with regular view styling
The dark theme rendered the form heading and section title bars
indistinguishably from the form body, and editor-form text contrast
was noticeably worse than the dialog labels (#3945).
Bring the dark theme form chrome in line with the existing
".MPart Composite" / ".MPart Section" view styling and with dialog
label contrast:
- e4-dark_globalstyle.css: split the joint "Form, FormHeading" rule.
Use #2F2F2F for both Form and FormHeading background-color (and the
Form's text-background-color), matching the ".MPart Composite" body
color used in views, and use #f4f7f7 for the FormHeading foreground
for near-white dialog-level contrast. Drop the "swt-background-mode:
'force'" hack on Form: it forced FormHeading children to inherit
Form's body color, which is what required a counter-override in the
partstyle. The light theme has never set this and works fine with
INHERIT_DEFAULT.
- e4-dark_partstyle.css: remove the ".MPart FormHeading > ..." block.
It was only needed to undo the FORCE inheritance and to hard-code
#505f70 on the heading; with FORCE gone and the heading colors set
in globalstyle, the block is redundant.
- e4-dark_win.css: change the Windows-specific ".MPart Form" block
from #4f5355 to #2F2F2F so Form widgets on Windows align with the
rest of the dark theme body color.
With these changes the previous editor-only override block
(".Editor Form Composite, .Editor Form Composite Tree,
.MPartStack.active .Editor Form Composite Tree { #1E1F22 }") in
e4-dark_{linux,mac,win}.css is no longer needed: ".MPart Composite"
already sets the form body to #2F2F2F, ".MPart Form Section Tree" sets
the section trees to #313538, and FormHeading is matched directly by
the FormHeading selector in globalstyle. Removing the override also
makes editor section trees match view section trees, which the broad
rule was inadvertently flattening.1 parent 27c8c9d commit 748ccff
5 files changed
Lines changed: 9 additions & 49 deletions
File tree
- bundles/org.eclipse.ui.themes/css
- dark
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 197 | + | |
| 198 | + | |
200 | 199 | | |
201 | | - | |
202 | 200 | | |
203 | | - | |
204 | 201 | | |
205 | | - | |
| 202 | + | |
206 | 203 | | |
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
211 | 208 | | |
212 | 209 | | |
| 210 | + | |
213 | 211 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
218 | 215 | | |
219 | 216 | | |
220 | 217 | | |
| |||
Lines changed: 0 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 97 | | |
114 | 98 | | |
115 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 115 | | |
123 | 116 | | |
124 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 101 | | |
109 | 102 | | |
110 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 183 | | |
191 | 184 | | |
192 | 185 | | |
| |||
0 commit comments