From 14f2905bcb385ebf9a1713446b45d157d75bae53 Mon Sep 17 00:00:00 2001 From: Robert Rossmann Date: Tue, 7 May 2024 22:19:08 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20add=20customisation=20for=20disabled=20?= =?UTF-8?q?items=20=F0=9F=91=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was long on my radar but I was not sure where these disabled buttons could be customised. Finally found it! --- src/generators/mkui.ts | 1 + src/types/UIColourPalette.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/generators/mkui.ts b/src/generators/mkui.ts index ecf13d8..f26a95e 100644 --- a/src/generators/mkui.ts +++ b/src/generators/mkui.ts @@ -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(), diff --git a/src/types/UIColourPalette.ts b/src/types/UIColourPalette.ts index ab3ae56..1d1867c 100644 --- a/src/types/UIColourPalette.ts +++ b/src/types/UIColourPalette.ts @@ -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. */