diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-31 13:05:13 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-09-01 15:15:42 +0300 |
commit | b6a68028576e4c497e2e23e2b45121412522b030 (patch) | |
tree | 34bef373c1a414aa008f481e5e4b2a5bc7d27fae /apps/theming | |
parent | d6bd98d3c5ff09abd48d9aff4960638c34f9d58b (diff) |
Some more fixes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r-- | apps/theming/lib/Themes/DefaultTheme.php | 3 |
1 files changed, 3 insertions, 0 deletions
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')), |