From e036e2a842c1fb1d48a4c5037c35498b0f7e2cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Sat, 18 Jun 2022 20:47:18 +0200 Subject: [PATCH 1/2] Adjust loading icon style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- src/components/LoadingIcon/LoadingIcon.vue | 60 +++++++++++++++++----- 1 file changed, 48 insertions(+), 12 deletions(-) diff --git a/src/components/LoadingIcon/LoadingIcon.vue b/src/components/LoadingIcon/LoadingIcon.vue index 66bd1f700c..92c383ec5a 100644 --- a/src/components/LoadingIcon/LoadingIcon.vue +++ b/src/components/LoadingIcon/LoadingIcon.vue @@ -24,23 +24,36 @@ # Usage ``` - - +
+ +
+
+ +
+
+ +
``` From 1b83ffd812ed71ae75c15446ed3c53839bd57fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Sat, 23 Jul 2022 09:39:45 +0200 Subject: [PATCH 2/2] Simplify color calculation for loading icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- src/components/LoadingIcon/LoadingIcon.vue | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/components/LoadingIcon/LoadingIcon.vue b/src/components/LoadingIcon/LoadingIcon.vue index 92c383ec5a..56f27fc2db 100644 --- a/src/components/LoadingIcon/LoadingIcon.vue +++ b/src/components/LoadingIcon/LoadingIcon.vue @@ -43,8 +43,8 @@ - - + + {{ title }} @@ -83,21 +83,14 @@ export default { }, }, computed: { - colorCircle() { + colors() { + const colors = ['#777', '#CCC'] if (this.appearance === 'light') { - return '#777' + return colors } else if (this.appearance === 'dark') { - return '#CCC' + return colors.reverse() } - return 'var(--color-loading-light)' - }, - colorSpinner() { - if (this.appearance === 'light') { - return '#CCC' - } else if (this.appearance === 'dark') { - return '#777' - } - return 'var(--color-loading-dark)' + return ['var(--color-loading-light)', 'var(--color-loading-dark)'] }, }, }