From b6a68028576e4c497e2e23e2b45121412522b030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 31 Aug 2022 12:05:13 +0200 Subject: Some more fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/theming/lib/Themes/DefaultTheme.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/theming') diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index 18a6e209f6f..986892a6b6c 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -87,6 +87,7 @@ class DefaultTheme implements ITheme { public function getCSSVariables(): array { $colorMainText = '#222222'; + $colorMainTextRgb = join(',', $this->util->hexToRGB($colorMainText)); $colorMainBackground = '#ffffff'; $colorMainBackgroundRGB = join(',', $this->util->hexToRGB($colorMainBackground)); $colorBoxShadow = $this->util->darken($colorMainBackground, 70); @@ -142,6 +143,8 @@ class DefaultTheme implements ITheme { '--color-text-light' => $colorMainText, '--color-text-lighter' => $this->util->lighten($colorMainText, 33), + '--color-scrollbar' => 'rgba(' . $colorMainTextRgb . ', .15)', + // info/warning/success feedback colours '--color-error' => '#e9322d', '--color-error-rgb' => join(',', $this->util->hexToRGB('#e9322d')), -- cgit v1.2.3