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:
authorCarl Schwan <carl@carlschwan.eu>2022-05-20 01:13:06 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-07-13 15:58:55 +0300
commit4e0574e184bb3fa915da88d45f909982f2be8c13 (patch)
tree0021d55bf4dcd5ccf0570726e90a90d9a45451c1 /apps/theming
parent22de24324728025c5299850317fc697b33375caf (diff)
Port encryption admin settings to vue
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/css/default.css3
-rw-r--r--apps/theming/lib/Themes/DefaultTheme.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css
index e2d641f530e..262af7a3b83 100644
--- a/apps/theming/css/default.css
+++ b/apps/theming/css/default.css
@@ -25,10 +25,13 @@
--color-text-light: #222222;
--color-text-lighter: #767676;
--color-error: #e9322d;
+ --color-error-rgb: 233,50,45;
--color-error-hover: #ed5a56;
--color-warning: #eca700;
+ --color-warning-rgb: 236,167,0;
--color-warning-hover: #efb832;
--color-success: #46ba61;
+ --color-success-rgb: 70,186,97;
--color-success-hover: #6ac780;
--color-loading-light: #cccccc;
--color-loading-dark: #444444;
diff --git a/apps/theming/lib/Themes/DefaultTheme.php b/apps/theming/lib/Themes/DefaultTheme.php
index 58983d29df1..c822b3052ce 100644
--- a/apps/theming/lib/Themes/DefaultTheme.php
+++ b/apps/theming/lib/Themes/DefaultTheme.php
@@ -132,10 +132,13 @@ class DefaultTheme implements ITheme {
// info/warning/success feedback colours
'--color-error' => '#e9322d',
+ '--color-error-rgb' => join(',', $this->util->hexToRGB('#e9322d')),
'--color-error-hover' => $this->util->mix('#e9322d', $colorMainBackground, 60),
'--color-warning' => '#eca700',
+ '--color-warning-rgb' => join(',', $this->util->hexToRGB('#eca700')),
'--color-warning-hover' => $this->util->mix('#eca700', $colorMainBackground, 60),
'--color-success' => '#46ba61',
+ '--color-success-rgb' => join(',', $this->util->hexToRGB('#46ba61')),
'--color-success-hover' => $this->util->mix('#46ba61', $colorMainBackground, 60),
// used for the icon loading animation