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:
authorSimon L <szaimen@e.mail.de>2022-09-08 11:18:58 +0300
committerGitHub <noreply@github.com>2022-09-08 11:18:58 +0300
commit2a2cb016969766cc68de0f0f64635efc848c1c5f (patch)
treebfaaf9501fa486222d2f6eb334f4230649de0d3b /apps/theming
parentb9a50388e46d7e4beade5af96c8be154b66243ca (diff)
parent4636524b7ed27f5a79ad337101379dd4101517d9 (diff)
Merge pull request #33952 from nextcloud/enh/33850/scrollbar-visibility
fix scrollbar visiblity
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 74704ad553a..bd1d240a82c 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';