From f998fe0af399b7218a8e22c060dba0ea0349ae66 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 2 Jan 2023 11:38:27 +0100 Subject: Update the user status dashboard widget and fix the icon color Signed-off-by: Joas Schilling --- apps/user_status/css/user-status-menu.css | 4 ++ apps/user_status/css/user-status-menu.css.map | 2 +- apps/user_status/css/user-status-menu.scss | 5 +++ apps/user_status/img/app-dark.svg | 1 + .../user_status/lib/Dashboard/UserStatusWidget.php | 4 +- apps/user_status/src/views/Dashboard.vue | 43 +++++++++------------- .../tests/Unit/Dashboard/UserStatusWidgetTest.php | 2 +- 7 files changed, 31 insertions(+), 30 deletions(-) create mode 100644 apps/user_status/img/app-dark.svg (limited to 'apps/user_status') diff --git a/apps/user_status/css/user-status-menu.css b/apps/user_status/css/user-status-menu.css index 124c753128b..e522462557e 100644 --- a/apps/user_status/css/user-status-menu.css +++ b/apps/user_status/css/user-status-menu.css @@ -80,6 +80,10 @@ background-image: url("../img/app.svg"); } +.icon-user-status-dark { + background-image: url("../img/app-dark.svg"); +} + .icon-user-status-online { background-image: url("../img/user-status-online.svg"); } diff --git a/apps/user_status/css/user-status-menu.css.map b/apps/user_status/css/user-status-menu.css.map index 61ee5d7e261..d09e479094c 100644 --- a/apps/user_status/css/user-status-menu.css.map +++ b/apps/user_status/css/user-status-menu.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../../../core/css/variables.scss","user-status-menu.scss","../../../core/css/functions.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBA;AAAA;AAAA;AA4BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AD1BA;EACC;;;AAGD;EACC;;;AAGD;EACC;;;AAGD;EACC;;;AAGD;EACC;EACA","file":"user-status-menu.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../../../core/css/variables.scss","user-status-menu.scss","../../../core/css/functions.scss"],"names":[],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBA;AAAA;AAAA;AA4BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AD1BA;EACC;;;AAGD;EACC;;;AAID;EACC;;;AAGD;EACC;;;AAGD;EACC;;;AAGD;EACC;EACA","file":"user-status-menu.css"} \ No newline at end of file diff --git a/apps/user_status/css/user-status-menu.scss b/apps/user_status/css/user-status-menu.scss index e6c0e3d2427..c4566cbf334 100644 --- a/apps/user_status/css/user-status-menu.scss +++ b/apps/user_status/css/user-status-menu.scss @@ -26,6 +26,11 @@ background-image: url("../img/app.svg"); } +.icon-user-status-dark { + background-image: url("../img/app-dark.svg"); + +} + .icon-user-status-online { background-image: url('../img/user-status-online.svg'); } diff --git a/apps/user_status/img/app-dark.svg b/apps/user_status/img/app-dark.svg new file mode 100644 index 00000000000..b9ea9f2cfb0 --- /dev/null +++ b/apps/user_status/img/app-dark.svg @@ -0,0 +1 @@ + diff --git a/apps/user_status/lib/Dashboard/UserStatusWidget.php b/apps/user_status/lib/Dashboard/UserStatusWidget.php index 5a89040dfa5..2e1de3cd6cf 100644 --- a/apps/user_status/lib/Dashboard/UserStatusWidget.php +++ b/apps/user_status/lib/Dashboard/UserStatusWidget.php @@ -109,7 +109,7 @@ class UserStatusWidget implements IAPIWidget, IIconWidget, IOptionWidget { * @inheritDoc */ public function getIconClass(): string { - return 'icon-user-status'; + return 'icon-user-status-dark'; } /** @@ -117,7 +117,7 @@ class UserStatusWidget implements IAPIWidget, IIconWidget, IOptionWidget { */ public function getIconUrl(): string { return $this->urlGenerator->getAbsoluteURL( - $this->urlGenerator->imagePath(Application::APP_ID, 'app.svg') + $this->urlGenerator->imagePath(Application::APP_ID, 'app-dark.svg') ); } diff --git a/apps/user_status/src/views/Dashboard.vue b/apps/user_status/src/views/Dashboard.vue index 2b24ec6032f..ef5a9832ebc 100644 --- a/apps/user_status/src/views/Dashboard.vue +++ b/apps/user_status/src/views/Dashboard.vue @@ -20,11 +20,12 @@ -->