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:
authorgreta <gretadoci@gmail.com>2022-08-18 15:46:51 +0300
committergreta <gretadoci@gmail.com>2022-08-18 15:46:51 +0300
commit01a1a993080cc4fe4f7139faf387cf7c6b23b080 (patch)
treefd81b33804b82447831865a7ae22881955e97cf9
parent604c1752845df068a7dd5d168abfbfc04065ac3f (diff)
Add variables needed for appnavigationenhanc/app-navigation-semitransaprent
Signed-off-by: greta <gretadoci@gmail.com>
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index d141a5d3241..2ee6e441ece 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -97,6 +97,9 @@ class DefaultTheme implements ITheme {
'--color-main-background' => $colorMainBackground,
'--color-main-background-rgb' => $colorMainBackgroundRGB,
'--color-main-background-translucent' => 'rgba(var(--color-main-background-rgb), .97)',
+ // to be used for semi transparent and blurred elements like dashboard
+ '--color-main-background-semitransparent' => 'rgba(var(--color-main-background-rgb), 0.8)',
+ '--background-blur' => 'blur(10px)',
// to use like this: background-image: linear-gradient(0, var('--gradient-main-background));
'--gradient-main-background' => 'var(--color-main-background) 0%, var(--color-main-background-translucent) 85%, transparent 100%',
@@ -197,7 +200,7 @@ class DefaultTheme implements ITheme {
// let's not define the background image
if ($backgroundDeleted || $hasCustomPrimaryColour) {
$variables["--image-background-plain"] = 'true';
- }
+ }
// Register image variables only if custom-defined
foreach(['logo', 'logoheader', 'favicon', 'background'] as $image) {
@@ -206,7 +209,7 @@ class DefaultTheme implements ITheme {
// If background deleted is set, ignoring variable
if ($backgroundDeleted) {
continue;
- }
+ }
$variables['--image-background-size'] = 'cover';
}
$variables["--image-$image"] = "url('".$this->imageManager->getImageUrl($image)."')";