diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-06 14:37:59 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-06 22:28:16 +0100 |
commit | 4b8868a7f1162c3aa724e34d73024e5879b85476 (patch) | |
tree | 940561bfea0aff59f20df1cd08444b0ad1d6fc4b /apps/theming/lib | |
parent | 834f70fd7acefe76e2bf5475347d65a7c705d061 (diff) | |
download | nextcloud-server-4b8868a7f1162c3aa724e34d73024e5879b85476.tar.gz nextcloud-server-4b8868a7f1162c3aa724e34d73024e5879b85476.zip |
feat(theming): Provide CSS variable for favorite color and adjust for dark mode
Co-authored-by: Simon L <szaimen@e.mail.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Themes/DarkTheme.php | 1 | ||||
-rw-r--r-- | apps/theming/lib/Themes/DefaultTheme.php | 1 | ||||
-rw-r--r-- | apps/theming/lib/Themes/HighContrastTheme.php | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php index a40f8009e17..8d88de75834 100644 --- a/apps/theming/lib/Themes/DarkTheme.php +++ b/apps/theming/lib/Themes/DarkTheme.php @@ -113,6 +113,7 @@ class DarkTheme extends DefaultTheme implements ITheme { '--color-info-rgb' => join(',', $this->util->hexToRGB($colorInfo)), '--color-info-hover' => $this->util->lighten($colorInfo, 10), '--color-info-text' => $colorInfo, + '--color-favorite' => '#ffde00', // used for the icon loading animation '--color-loading-light' => '#777', diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php index af1489c3577..68038f053e3 100644 --- a/apps/theming/lib/Themes/DefaultTheme.php +++ b/apps/theming/lib/Themes/DefaultTheme.php @@ -165,6 +165,7 @@ class DefaultTheme implements ITheme { '--color-info-rgb' => join(',', $this->util->hexToRGB($colorInfo)), '--color-info-hover' => $this->util->mix($colorInfo, $colorMainBackground, 80), '--color-info-text' => $this->util->darken($colorInfo, 4), + '--color-favorite' => '#A37200', // used for the icon loading animation '--color-loading-light' => '#cccccc', diff --git a/apps/theming/lib/Themes/HighContrastTheme.php b/apps/theming/lib/Themes/HighContrastTheme.php index b1c2bf1564f..e21e802fbe3 100644 --- a/apps/theming/lib/Themes/HighContrastTheme.php +++ b/apps/theming/lib/Themes/HighContrastTheme.php @@ -110,6 +110,8 @@ class HighContrastTheme extends DefaultTheme implements ITheme { '--color-success-hover' => $this->util->darken($colorSuccess, 7), '--color-success-text' => $this->util->darken($colorSuccess, 14), + '--color-favorite' => '#936B06', + '--color-scrollbar' => $this->util->darken($colorMainBackground, 25), // used for the icon loading animation |