From ce7a5fa0a776ecc03b9e3fd3890285c15d2b315e Mon Sep 17 00:00:00 2001 From: Andreas Blaesius Date: Mon, 20 Jun 2022 21:21:04 +0200 Subject: [PATCH] ui: rework UI style handling, make UI and button style independent Change-Id: I6a12c936f2fdea4d0571778fa5e9fb7a0fbc3587 --- admin/debugpanel.php | 20 +++-- admin/diskusage.php | 11 ++- admin/index.php | 27 +++--- chromakeying.php | 14 +-- dependencies.php | 13 +-- gallery.php | 7 +- index.php | 7 +- lib/configsetup.inc.php | 8 +- livechroma.php | 18 ++-- login/index.php | 32 ++++--- manual/index.php | 22 +++-- resources/lang/de.json | 2 - resources/lang/en.json | 2 - resources/lang/es.json | 2 - resources/lang/fr.json | 2 - resources/lang/it.json | 2 - resources/lang/pl.json | 1 - slideshow/index.php | 5 +- src/js/gallery.js | 2 +- src/sass/classic_admin.scss | 24 +++++- src/sass/classic_chromakeying.scss | 2 +- src/sass/classic_live_chromakeying.scss | 9 +- src/sass/classic_rounded_admin.scss | 1 + src/sass/classic_rounded_chromakeying.scss | 1 + .../classic_rounded_live_chromakeying.scss | 1 + src/sass/classic_rounded_style.scss | 1 + src/sass/classic_style.scss | 43 +++++++++- src/sass/login.scss | 1 + src/sass/manual.scss | 51 +++++++---- src/sass/modern_admin.scss | 20 ----- src/sass/modern_live_chromakeying.scss | 2 +- .../modern_squared_live_chromakeying.scss | 1 - src/sass/modern_squared_style.scss | 15 +++- src/sass/modern_style.scss | 11 +-- src/sass/partials/_button.scss | 66 +++++++++----- src/sass/partials/_gallery.scss | 37 ++++++-- src/sass/partials/_modern_gallery.scss | 53 ------------ src/sass/partials/_shape.scss | 25 ++++++ src/sass/partials/_sidenav.scss | 4 + src/sass/partials/_squared_gallery.scss | 44 ---------- src/sass/photoswipe-bottom.scss | 6 +- src/sass/rounded.scss | 85 ------------------- src/sass/slideshow.scss | 1 + src/sass/update.scss | 1 + src/sass/welcome.scss | 3 +- template/classic.template.php | 4 +- template/classic_rounded.template.php | 1 + template/gallery.template.php | 8 +- template/modern.template.php | 4 +- template/pswp.template.php | 12 ++- template/send-mail.template.php | 9 +- update.php | 18 ++-- welcome.php | 8 +- 53 files changed, 365 insertions(+), 404 deletions(-) create mode 100644 src/sass/classic_rounded_admin.scss create mode 100644 src/sass/classic_rounded_chromakeying.scss create mode 100644 src/sass/classic_rounded_live_chromakeying.scss create mode 100644 src/sass/classic_rounded_style.scss delete mode 100644 src/sass/partials/_modern_gallery.scss create mode 100644 src/sass/partials/_shape.scss delete mode 100644 src/sass/partials/_squared_gallery.scss delete mode 100644 src/sass/rounded.scss create mode 100644 template/classic_rounded.template.php diff --git a/admin/debugpanel.php b/admin/debugpanel.php index a840c18c8..277ad37e3 100644 --- a/admin/debugpanel.php +++ b/admin/debugpanel.php @@ -14,6 +14,10 @@ header('location: ../login'); exit(); } + +$uiShape = 'shape--' . $config['ui']['style']; +$btnShape = 'shape--' . $config['ui']['button']; +$btnClass = 'adminnavlistelement ' . $btnShape . ' noborder'; ?> @@ -89,13 +93,13 @@ function html_src_indent($num) echo ''; @@ -104,7 +108,7 @@ function html_src_indent($num)
-
+
diff --git a/admin/diskusage.php b/admin/diskusage.php index bd10f7d59..ff81c89d6 100644 --- a/admin/diskusage.php +++ b/admin/diskusage.php @@ -16,6 +16,8 @@ exit(); } +$btnShape = 'shape--' . $config['ui']['button']; +$uiShape = 'shape--' . $config['ui']['style']; ?> @@ -43,19 +45,16 @@ - - - -