Shorten long action names in desktop toolbox and context menu

A lot of these menu items are really long, unnecessarily so. For the
ones that take the user to another location rather than performing an
action, we can make the menu item's text simply echo the name of the
place they'll be taken to. This is what we already do for some other
similar menu items that take you to another location, like "Properties".

BUG: 481756
FIXED-IN: 6.1
This commit is contained in:
Nate Graham 2024-03-24 09:23:56 -06:00
parent 48ea6e5d62
commit 82bb3bfc1e
4 changed files with 5 additions and 5 deletions

View file

@ -132,7 +132,7 @@ class DesktopTest(unittest.TestCase):
"""
Finds the close button and clicks it
"""
global_theme_button = self.driver.find_element(AppiumBy.NAME, "Choose Global Theme…")
global_theme_button = self.driver.find_element(AppiumBy.NAME, "Global Themes")
self.driver.find_element(AppiumBy.NAME, "Exit Edit Mode").click()
WebDriverWait(self.driver, 30).until_not(lambda _: global_theme_button.is_displayed())

View file

@ -388,7 +388,7 @@ ContainmentItem {
PlasmaCore.Action {
id: configAction
text: i18n("Configure Desktop and Wallpaper…")
text: i18n("Desktop and Wallpaper")
icon.name: "preferences-desktop-wallpaper"
shortcut: "alt+d,alt+s"
onTriggered: Plasmoid.containment.configureRequested(Plasmoid)

View file

@ -16,7 +16,7 @@ import "shellcontainmentconfiguration"
Kirigami.AbstractApplicationWindow {
id: root
title: i18nd("plasma_shell_org.kde.plasma.desktop", "Panels and Desktops Management")
title: i18nd("plasma_shell_org.kde.plasma.desktop", "Panel and Desktop Management")
width: Kirigami.Units.gridUnit * 40
height: Kirigami.Units.gridUnit * 32

View file

@ -279,14 +279,14 @@ Item {
PlasmaComponents3.ToolButton {
id: themeButton
text: i18nd("plasma_toolbox_org.kde.desktoptoolbox", "Choose Global Theme…")
text: i18nd("plasma_toolbox_org.kde.desktoptoolbox", "Global Themes")
icon.name: "preferences-desktop-theme-global"
onClicked: KCM.KCMLauncher.openSystemSettings("kcm_lookandfeel")
}
PlasmaComponents3.ToolButton {
id: displaySettingsButton
text: i18nd("plasma_toolbox_org.kde.desktoptoolbox", "Configure Display Settings…")
text: i18nd("plasma_toolbox_org.kde.desktoptoolbox", "Display Configuration")
icon.name: "preferences-desktop-display"
onClicked: KCM.KCMLauncher.openSystemSettings("kcm_kscreen")
}