Skip to content

Commit

Permalink
feat: add customisation for disabled items 👏
Browse files Browse the repository at this point in the history
This was long on my radar but I was not sure where these disabled buttons could be customised. Finally found it!
  • Loading branch information
robertrossmann committed May 7, 2024
1 parent f79131b commit 14f2905
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/generators/mkui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function mkui({ ui, code }: MKUIParams): UIColourPalette {
*/
focusBorder: ui.accent.alpha(ch(0x66)).hexa(),
foreground: ui.text.primary.hex(),
disabledForeground: ui.text.dimmed.hex(),
'widget.shadow': ui.shadow.hex(),
'selection.background': ui.text.primary.alpha(ch(0x44)).hexa(),
descriptionForeground: ui.text.primary.hex(),
Expand Down
4 changes: 4 additions & 0 deletions src/types/UIColourPalette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,10 @@ interface UIColourPalette {
* Overall foreground color. This color is only used if not overridden by a component.
*/
'foreground'?: ColourLike
/**
* Overall foreground for disabled elements. This color is only used if not overridden by a component.
*/
'disabledForeground'?: ColourLike
/**
* Color for added Git resources. Used for file labels and the SCM viewlet.
*/
Expand Down

0 comments on commit 14f2905

Please sign in to comment.