Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2022-09-07 23:45:21 +0300
committerszaimen <szaimen@e.mail.de>2022-09-08 00:21:35 +0300
commit4636524b7ed27f5a79ad337101379dd4101517d9 (patch)
treefc9fec0cc6179da805e34ed9a14913185985a499 /apps/theming
parent9e0a524a203c3eee696fcb7bef3ca82ebced1c14 (diff)
fix scrollbar visiblityenh/33850/scrollbar-visibility
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/Themes/DarkHighContrastTheme.php2
-rw-r--r--apps/theming/lib/Themes/DarkTheme.php2
-rw-r--r--apps/theming/lib/Themes/HighContrastTheme.php2
3 files changed, 6 insertions, 0 deletions
diff --git a/apps/theming/lib/Themes/DarkHighContrastTheme.php b/apps/theming/lib/Themes/DarkHighContrastTheme.php
index fdb9e27fe5d..a4de1be61a6 100644
--- a/apps/theming/lib/Themes/DarkHighContrastTheme.php
+++ b/apps/theming/lib/Themes/DarkHighContrastTheme.php
@@ -70,6 +70,8 @@ class DarkHighContrastTheme extends DarkTheme implements ITheme {
$variables['--color-text-light'] = $colorMainText;
$variables['--color-text-lighter'] = $colorMainText;
+ $variables['--color-scrollbar'] = $this->util->lighten($colorMainBackground, 35);
+
// used for the icon loading animation
$variables['--color-loading-light'] = '#000000';
$variables['--color-loading-dark'] = '#dddddd';
diff --git a/apps/theming/lib/Themes/DarkTheme.php b/apps/theming/lib/Themes/DarkTheme.php
index dd894635751..6a9fc531a3b 100644
--- a/apps/theming/lib/Themes/DarkTheme.php
+++ b/apps/theming/lib/Themes/DarkTheme.php
@@ -63,6 +63,8 @@ class DarkTheme extends DefaultTheme implements ITheme {
'--color-main-background' => $colorMainBackground,
'--color-main-background-rgb' => $colorMainBackgroundRGB,
+ '--color-scrollbar' => $this->util->lighten($colorMainBackground, 15),
+
'--color-background-hover' => $this->util->lighten($colorMainBackground, 4),
'--color-background-dark' => $this->util->lighten($colorMainBackground, 7),
'--color-background-darker' => $this->util->lighten($colorMainBackground, 14),
diff --git a/apps/theming/lib/Themes/HighContrastTheme.php b/apps/theming/lib/Themes/HighContrastTheme.php
index a9ba6da42a9..22348c4de37 100644
--- a/apps/theming/lib/Themes/HighContrastTheme.php
+++ b/apps/theming/lib/Themes/HighContrastTheme.php
@@ -70,6 +70,8 @@ class HighContrastTheme extends DefaultTheme implements ITheme {
$variables['--color-text-light'] = 'var(--color-main-text)';
$variables['--color-text-lighter'] = 'var(--color-main-text)';
+ $variables['--color-scrollbar'] = $this->util->darken($colorMainBackground, 25);
+
// used for the icon loading animation
$variables['--color-loading-light'] = '#dddddd';
$variables['--color-loading-dark'] = '#000000';