From 7bbe55c26b60789f5da98a856daa6a4d7d83c9c5 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Tue, 11 Jun 2024 10:17:37 +0200 Subject: [PATCH] fix(app): improve user menu design Signed-off-by: Grigorii K. Shartsev --- src/shared/globals/globals.js | 3 + src/talk/renderer/DesktopHeader.vue | 6 + .../UserStatus/components/UserStatusForm.vue | 5 +- src/talk/renderer/components/MainMenu.vue | 69 +++++ src/talk/renderer/components/ThemeLogo.vue | 49 +++ src/talk/renderer/components/UiMenuItem.vue | 30 +- .../renderer/components/UiMenuSeparator.vue | 15 + src/talk/renderer/components/UserMenu.vue | 281 +++++++++--------- src/talk/renderer/talk.main.js | 4 +- 9 files changed, 314 insertions(+), 148 deletions(-) create mode 100644 src/talk/renderer/components/MainMenu.vue create mode 100644 src/talk/renderer/components/ThemeLogo.vue create mode 100644 src/talk/renderer/components/UiMenuSeparator.vue diff --git a/src/shared/globals/globals.js b/src/shared/globals/globals.js index a388630e..52f1c033 100644 --- a/src/shared/globals/globals.js +++ b/src/shared/globals/globals.js @@ -3,6 +3,8 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +import { ref } from 'vue' + import { loadState } from '@nextcloud/initial-state' import { translate, translatePlural } from '@nextcloud/l10n' @@ -108,6 +110,7 @@ const OCA = { getDesktopMediaSource, runWithAbsoluteWebroot, enabledAbsoluteWebroot: false, + talkRouter: ref(null), }, }, } diff --git a/src/talk/renderer/DesktopHeader.vue b/src/talk/renderer/DesktopHeader.vue index b6197547..8e4e027c 100644 --- a/src/talk/renderer/DesktopHeader.vue +++ b/src/talk/renderer/DesktopHeader.vue @@ -17,6 +17,10 @@
+
+ +
+
@@ -25,6 +29,7 @@ + + diff --git a/src/talk/renderer/components/ThemeLogo.vue b/src/talk/renderer/components/ThemeLogo.vue new file mode 100644 index 00000000..a2dd1916 --- /dev/null +++ b/src/talk/renderer/components/ThemeLogo.vue @@ -0,0 +1,49 @@ + + + + + + + diff --git a/src/talk/renderer/components/UiMenuItem.vue b/src/talk/renderer/components/UiMenuItem.vue index e3fb3224..d3ad6098 100644 --- a/src/talk/renderer/components/UiMenuItem.vue +++ b/src/talk/renderer/components/UiMenuItem.vue @@ -6,11 +6,16 @@