From e7fe2dc9f9e52771c2ffe8d0ee1c4e8b2e38ab2f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 14 Nov 2018 19:39:17 +0300 Subject: collateral fixes, removed alpha control for alerts, added contrast text generation for alerts, updated getTextColor to also have fallback to black/white if resulting contrast isn't passable (only when inverting lightness!), updated UI to use tabs. --- src/components/style_switcher/style_switcher.vue | 257 ++++++++++++----------- 1 file changed, 129 insertions(+), 128 deletions(-) (limited to 'src/components/style_switcher/style_switcher.vue') diff --git a/src/components/style_switcher/style_switcher.vue b/src/components/style_switcher/style_switcher.vue index f4b4e88f..5bc38318 100644 --- a/src/components/style_switcher/style_switcher.vue +++ b/src/components/style_switcher/style_switcher.vue @@ -24,8 +24,8 @@ -
-
+
+
Preview
@@ -45,132 +45,132 @@
-

{{$t('settings.theme_help')}}

-

Basic colors!!

-
-
- - - - - - -
-
- - - -
-
- - - - -
-
- - - - + +
+
+

Main colors

+ + + + + + +
+
+

Panel header, top bar, buttons, text fields

+ + + +

See "Advanced" tab for more detailed control

+
+
+

Icons, alerts, etc.

+ + + + +
+
+

.

+ + + + +
-
-

More customs!

-
-
-

Alerts

- - -
-
-

Alerts

- - - -
-
-

Panel header

- - - - -
-
-

Top bar

- - - - - -
-
-

Text fields

- - - - -
-
-

Buttons

- - - - -
-
-

Borders

- - +
+
+

Alerts

+ + +
+
+

Badges

+ +
+
+

Panel header

+ + + + +
+
+

Top bar

+ + + + + +
+
+

Text fields

+ + + + +
+
+

Buttons

+ + + + +
+
+

Borders

+ + +
+
+

Faint text

+ + + + +
-
-

Faint text

- - - - +
+

{{$t('settings.radii_help')}}

+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
-
-
- -
-

{{$t('settings.radii_help')}}

-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
+
@@ -193,14 +193,12 @@ .apply-container, .radius-container, -.color-container > div, +.color-container, .presets-container { display: flex; p { - flex: 2 0 100%; - margin-top: 2em; - margin-bottom: .5em; + margin-left: 1em } } @@ -208,7 +206,7 @@ flex-direction: column; } -.color-container > div{ +.color-container{ flex-wrap: wrap; justify-content: space-between; } @@ -231,6 +229,9 @@ border-color: var(--border, $fallback--border); margin: 1em -1em 0; padding: 1em; + background: var(--body-background-image); + background-size: cover; + background-position: 50% 50%; .btn { margin-top: 1em; -- cgit v1.2.3-70-g09d2