From 81f5dfcf2d353b83d9d7dfdaa207f206b9d903ad Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 4 Nov 2022 18:50:45 +0100 Subject: [PATCH] add compatibility badges for each options --- css/admin.css | 41 ++++- templates/settings/admin-form.php | 276 ++++++++++++++++++------------ 2 files changed, 208 insertions(+), 109 deletions(-) diff --git a/css/admin.css b/css/admin.css index 086d0d7..5332c4e 100644 --- a/css/admin.css +++ b/css/admin.css @@ -73,7 +73,7 @@ .side-menu-setting-list { margin: 10px 4px 4px 0px; - border: 1px solid var(--color-border-dark); + border: 2px solid var(--color-border-dark); border-radius: 15px; } @@ -175,3 +175,42 @@ .btn-reset--progress { transform: rotate(-359deg); } + +.badges { + margin-bottom: 14px; + margin-top: 4px; +} + +.badge { + border-size: 1px; + padding: 2px 8px; + margin-right: 2px; + margin-bottom: 5px; + display: inline-block; + border-radius: 4px; + font-size: 13px; +} + +.badge-1 { + background: #d4ce14; + border-color: #cad413; + color: #373a05; +} + +.badge-2 { + background: #96d47f; + border-color: #7ed49b; + color: #333; +} + +.badge-3 { + background: #d4540a; + border-color: #d4700c; + color: #fff; +} + +.badge-4 { + background: #9d81d4; + border-color: #c681d4; + color: #fff; +} diff --git a/templates/settings/admin-form.php b/templates/settings/admin-form.php index 5a55946..5d1d088 100644 --- a/templates/settings/admin-form.php +++ b/templates/settings/admin-form.php @@ -41,8 +41,104 @@ $choicesSizes = [ $labelShowHideApps = 'Show and hide the list of applications'; $labelReset = 'Reset to default'; + ?>
+ +
+

+ t('Panel')); ?> +

+ + !$_['always-displayed'] && !$_['big-menu'] && !$_['side-with-categories'], + 'always-displayed' => $_['always-displayed'] && !$_['big-menu'] && !$_['side-with-categories'], + 'side-with-categories' => $_['side-with-categories'] && !$_['always-displayed'] && !$_['big-menu'], + 'big-menu' => $_['big-menu'] && !$_['always-displayed'] && !$_['side-with-categories'], + ]; + ?> + +
+ +
+

+ <?php p($l->t('Default')); ?> +

+ +
+ +
+

+ <?php p($l->t('With categories')); ?> +

+ +
+ +
+

+ <?php p($l->t('Big menu')); ?> +

+ +
+ +
+

t('Not compatible with touch screens.')); ?>

+

+ <?php p($l->t('Always displayed')); ?> +

+ + + + +
+

t('Colors')); ?> @@ -50,6 +146,13 @@ $labelReset = 'Reset to default'; t('Live preview')); ?>

+
+ t('Default')); ?> + t('With categories')); ?> + t('Big menu')); ?> + t('Always displayed')); ?> +
+
@@ -234,6 +337,13 @@ $labelReset = 'Reset to default'; t('Dark mode colors')); ?> +
+ t('Default')); ?> + t('With categories')); ?> + t('Big menu')); ?> + t('Always displayed')); ?> +
+

t('This parameters are used when Dark theme or Breeze Dark Theme are enabled.'); ?>

@@ -422,6 +532,13 @@ $labelReset = 'Reset to default'; t('Opener')); ?> +
+ t('Default')); ?> + t('With categories')); ?> + t('Big menu')); ?> + t('Always displayed')); ?> +
+
-
-
-
-

- t('Panel')); ?> -

- - !$_['always-displayed'] && !$_['big-menu'] && !$_['side-with-categories'], - 'always-displayed' => $_['always-displayed'] && !$_['big-menu'] && !$_['side-with-categories'], - 'side-with-categories' => $_['side-with-categories'] && !$_['always-displayed'] && !$_['big-menu'], - 'big-menu' => $_['big-menu'] && !$_['always-displayed'] && !$_['side-with-categories'], - ]; - ?> - -
- -
-

- <?php p($l->t('Default')); ?> -

- -
- -
-

- <?php p($l->t('With categories')); ?> -

- -
- -
-

- <?php p($l->t('Big menu')); ?> -

- -
- -
-

t('Not compatible with touch screens.')); ?>

-

- <?php p($l->t('Always displayed')); ?> -

- - - - -
- - -
t('Open the menu when the mouse is hover the opener (automatically disabled on touch screens)')); ?> @@ -589,16 +608,18 @@ $labelReset = 'Reset to default';
+
+
+
+
t('Display the logo')); ?> -
- - t('This feature is not compatible with the big menu display.'); ?> -
- t('The logo will be hidden when the menu is always displayed.')); ?> -
+ +
+ t('Default')); ?> +
@@ -629,6 +654,10 @@ $labelReset = 'Reset to default';
t('The logo is a link to the default app')); ?> + +
+ t('Default')); ?> +