Skip to content

Commit d0593aa

Browse files
committed
Add Settings view colours
1 parent d6e1f28 commit d0593aa

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- Elm, Java, Lua, SourcePawn and TypeScript support
1313
- Error Lens extension support, adding error, warning and info colours
1414
- Inactive title bar colour
15-
- List, input, checkbox and dropdown background, foreground and placeholder colours
15+
- List, input, checkbox and dropdown background, foreground and placeholder colours (includes Settings view)
1616
- Markdown preview colours for preformatted text and blockquotes
1717
- Overview ruler colours (seen under vertical scrollbar)
1818
- Python: Class semantic colours `variable.language.special.self`, `variable.parameter.function.language.special.cls` and `variable.language.special.cls`

docs/colours.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,21 @@ The background colour of inputs looks good as the Command Palette background col
5151
> - `dropdown.background`
5252
> - `input.background`
5353
54+
###### Settings
55+
56+
The above background colours do not work well in the Settings view, as they blend in too much with the editor area. Rather than using a 3:2 mix of the editor area colour and the active tab colour, these use a 1:2 mix, ensuring that they stand out without looking polarising.
57+
58+
> - `settings.checkboxBackground`
59+
> - `settings.dropdownBackground`
60+
> - `settings.numberInputBackground`
61+
> - `settings.textInputBackground`
62+
63+
However, the highlight colours too blend in with the above backgrounds, so they must be changed as well. Rather than trying to find more appropriate bright colours, I have chosen to use black alphas, picking the right value for `settings.focusedRowBackground` first (so preformatted text is still legible when an option is focused) and the others second (any lower and they become too hard to see).
64+
65+
> - `settings.rowHoverBackground`
66+
> - `settings.settingsHeaderHoverForeground`
67+
> - `settings.focusedRowBackground`
68+
5469
##### Foregrounds
5570

5671
The foreground colour of inputs can be the same as other text in the IDE, and placeholder text can be the same colour as comments and ignored text.

themes/Oblique Dark Orange-color-theme.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
"list.hoverBackground": "#ffffff0c",
1313
"dropdown.background": "#121e1e",
1414
"input.background": "#121e1e",
15+
"settings.checkboxBackground": "#152121",
16+
"settings.dropdownBackground": "#152121",
17+
"settings.numberInputBackground": "#152121",
18+
"settings.textInputBackground": "#152121",
19+
"settings.rowHoverBackground": "#0000000e",
20+
"settings.settingsHeaderHoverForeground": "#0000000e",
21+
"settings.focusedRowBackground": "#00000022",
1522
"dropdown.foreground": "#acc6c6",
1623
"input.foreground": "#acc6c6",
1724
"input.placeholderForeground": "#536060",

0 commit comments

Comments
 (0)