From cd7b8ef19f543c91739409a8402fc22fd2c2b681 Mon Sep 17 00:00:00 2001 From: Hartmnt Date: Fri, 19 Jan 2024 11:43:19 +0000 Subject: [PATCH] FIX(ui): Update menu items to comform to design standards This commit changes the menu items and some buttons to conform to universal [1] standards. This means that: * Labels are using title case (e.g. "Listen to channel" -> "Listen To Channel") * Menu items are generally not including the menu title in the action label (e.g. "Join Channel" -> "Join") * ALL menu items have non-overlapping access keys (ALT + , denoted by underline) * Ellipses ("...") are only used for actions that require further user input, simply opening another window is not a reason for using an ellipsis. [1] State of the art as documented by major vendors in the consumer software industry. For example: https://learn.microsoft.com/en-us/windows/win32/uxguide/cmd-menus https://developer.apple.com/design/human-interface-guidelines/menus https://develop.kde.org/hig/components/navigation/menubar/ --- src/mumble/MainWindow.cpp | 2 - src/mumble/MainWindow.ui | 74 ++++++++++++++++----------------- src/mumble/ServerInformation.ui | 4 +- src/mumble/UserInformation.ui | 2 +- 4 files changed, 40 insertions(+), 42 deletions(-) diff --git a/src/mumble/MainWindow.cpp b/src/mumble/MainWindow.cpp index 67cf5545f..d4255dbe9 100644 --- a/src/mumble/MainWindow.cpp +++ b/src/mumble/MainWindow.cpp @@ -2240,8 +2240,6 @@ void MainWindow::qmChannel_aboutToShow() { if (c && c->iId != ClientUser::get(Global::get().uiSession)->cChannel->iId) { qmChannel->addAction(qaChannelJoin); - - qmChannel->addSeparator(); } if (c && Global::get().sh && Global::get().sh->m_version >= Version::fromComponents(1, 4, 0)) { diff --git a/src/mumble/MainWindow.ui b/src/mumble/MainWindow.ui index 562f927a7..ad6c98108 100644 --- a/src/mumble/MainWindow.ui +++ b/src/mumble/MainWindow.ui @@ -305,7 +305,7 @@ false - &Ban list... + &Ban List Edit ban list on server @@ -323,7 +323,7 @@ skin:Information_icon.svgskin:Information_icon.svg - &Information... + &Information Show information about the server connection @@ -390,7 +390,7 @@ true - Ignore Messages + Ig&nore Messages Locally ignore user's text chat messages. @@ -415,7 +415,7 @@ - Send &Message... + &Send Message... Send a Text Message @@ -426,7 +426,7 @@ - &Set Nickname... + Set Ni&ckname... Set a local nickname @@ -470,7 +470,7 @@ - &Link + L&ink Link your channel to another channel @@ -492,7 +492,7 @@ - &Unlink All + U&nlink All Unlinks your channel from all linked channels. @@ -523,7 +523,7 @@ skin:actions/audio-input-microphone-muted.svgskin:actions/audio-input-microphone.svg - &Mute Self + M&ute Self Mute or unmute yourself. When muted, you will not send any data to the server. Unmuting while deafened will also undeafen. @@ -543,7 +543,7 @@ skin:deafened_self.svgskin:self_undeafened.svg - &Deafen Self + D&eafen Self Deafen or undeafen yourself. When deafened, you will not hear anything. Deafening yourself will also mute. @@ -568,7 +568,7 @@ - Audio S&tatistics... + Audio &Statistics Display audio statistics @@ -594,7 +594,7 @@ skin:config_basic.pngskin:config_basic.png - &Settings... + &Settings Configure Mumble @@ -651,7 +651,7 @@ the channel's context menu. - Developer &Console... + Developer &Console Show the Developer Console @@ -662,7 +662,7 @@ the channel's context menu. - Positional &Audio Viewer... + Positional &Audio Viewer Show the Positional Audio Viewer @@ -684,7 +684,7 @@ the channel's context menu. - &About... + &About Information about Mumble @@ -712,7 +712,7 @@ the channel's context menu. - About &Qt... + About &Qt Information about Qt @@ -737,7 +737,7 @@ the channel's context menu. - Send &Message... + &Send Message... Send a Text Message @@ -798,7 +798,7 @@ the channel's context menu. - &Register... + Re&gister... Register user on server @@ -849,7 +849,7 @@ the channel's context menu. - Registered &Users... + Registered &Users Edit registered users list @@ -868,7 +868,7 @@ the channel's context menu. - &Access Tokens... + &Access Tokens Add or remove text-based access tokens @@ -876,7 +876,7 @@ the channel's context menu. - &Remove Avatar + Remo&ve Avatar Remove currently defined avatar image. @@ -884,7 +884,7 @@ the channel's context menu. - Reset &Comment... + Reset Commen&t... Reset the comment of the selected user. @@ -892,15 +892,15 @@ the channel's context menu. - Reset &Avatar... + Remo&ve Avatar... - Reset the avatar of the selected user. + Remove the avatar of the selected user. - &Join Channel + &Join @@ -908,7 +908,7 @@ the channel's context menu. true - &Hide Channel when Filtering + &Hide When Filtering @@ -916,12 +916,12 @@ the channel's context menu. true - &Pin Channel when Filtering + &Pin When Filtering - View Comment... + Vie&w Comment View comment in editor @@ -933,7 +933,7 @@ the channel's context menu. skin:Information_icon.svgskin:Information_icon.svg - &Information... + &Information Query server for connection information for user @@ -959,7 +959,7 @@ the channel's context menu. - R&egister... + Re&gister... Register yourself on the server @@ -970,7 +970,7 @@ the channel's context menu. true - Priority Speaker + &Priority Speaker @@ -978,7 +978,7 @@ the channel's context menu. true - Priority Speaker + &Priority Speaker @@ -990,7 +990,7 @@ the channel's context menu. skin:actions/media-record.svgskin:actions/media-record.svg - Recording + &Record... true @@ -1009,7 +1009,7 @@ the channel's context menu. true - Listen to channel + &Listen To Channel Listen to this channel without joining it @@ -1020,7 +1020,7 @@ the channel's context menu. true - Talking UI + Talking &UI Toggles the visibility of the TalkingUI. @@ -1028,7 +1028,7 @@ the channel's context menu. - Join user's channel + &Join User's Channel Joins the channel of this user. @@ -1039,7 +1039,7 @@ the channel's context menu. true - Disable Text-To-Speech + Disable Te&xt-To-Speech Locally disable Text-To-Speech for this user's text chat messages. @@ -1054,7 +1054,7 @@ the channel's context menu. skin:magnifier.svgskin:magnifier.svg - Search + &Search... Search for a user or channel (Ctrl+F) diff --git a/src/mumble/ServerInformation.ui b/src/mumble/ServerInformation.ui index 205ac38ee..e7222abb9 100644 --- a/src/mumble/ServerInformation.ui +++ b/src/mumble/ServerInformation.ui @@ -645,14 +645,14 @@ - &View certificate + &View Certificate - &Ok + &OK diff --git a/src/mumble/UserInformation.ui b/src/mumble/UserInformation.ui index de6e229d2..54c8374f8 100644 --- a/src/mumble/UserInformation.ui +++ b/src/mumble/UserInformation.ui @@ -142,7 +142,7 @@ - Details... + Details