From 60d12e76f32e136a98a7ba949801247dd07d24a9 Mon Sep 17 00:00:00 2001 From: hewenfei Date: Fri, 31 Mar 2023 16:20:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BF=BB=E8=AF=91=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=BA=E5=A4=B1=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/ukui-menu.desktop | 14 +++++++++++++ qml/extensions/RecentFileExtension.qml | 2 +- translations/ukui-menu_bo_CN.ts | 28 ++++++++++++++++++++++++++ translations/ukui-menu_zh_CN.ts | 28 ++++++++++++++++++++++++++ 4 files changed, 71 insertions(+), 1 deletion(-) diff --git a/data/ukui-menu.desktop b/data/ukui-menu.desktop index e69de29..2f91bdd 100644 --- a/data/ukui-menu.desktop +++ b/data/ukui-menu.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=ukui-menu +Name[zh_CN]=开始菜单 +Name[tr_TR]=Başlangıç menüsü +Comment=A simple application launcher +Comment[zh_CN]=简易的应用程序启动器 +Exec=/usr/bin/ukui-menu %u +Icon=ukui-menu +Terminal=false +Type=Application +NoDisplay=true +OnlyShowIn=UKUI +X-UKUI-AutoRestart=true +X-UKUI-Autostart-Phase=Application diff --git a/qml/extensions/RecentFileExtension.qml b/qml/extensions/RecentFileExtension.qml index e648dcd..023cbd3 100644 --- a/qml/extensions/RecentFileExtension.qml +++ b/qml/extensions/RecentFileExtension.qml @@ -68,7 +68,7 @@ UkuiMenuExtension { } delegate: AppControls2.StyleBackground { - width: parent.width - 18 + width: ListView.view.width - 18 height: 40 useStyleTransparent: false alpha: itemArea.pressed ? 1 : itemArea.hovered ? 0.65 : 0 diff --git a/translations/ukui-menu_bo_CN.ts b/translations/ukui-menu_bo_CN.ts index a2c111f..8fbca97 100644 --- a/translations/ukui-menu_bo_CN.ts +++ b/translations/ukui-menu_bo_CN.ts @@ -170,6 +170,34 @@ power + + Switch user + + + + Hibernate + + + + Suspend + + + + Lock Screen + + + + Log Out + + + + Reboot + + + + Power Off + + UkuiMenu::RecentFileExtension diff --git a/translations/ukui-menu_zh_CN.ts b/translations/ukui-menu_zh_CN.ts index 113e6b4..3a0438c 100644 --- a/translations/ukui-menu_zh_CN.ts +++ b/translations/ukui-menu_zh_CN.ts @@ -170,6 +170,34 @@ power 电源 + + Switch user + 切换用户 + + + Hibernate + 睡眠 + + + Suspend + 休眠 + + + Lock Screen + 锁定屏幕 + + + Log Out + 注销 + + + Reboot + 重启 + + + Power Off + 关机 + UkuiMenu::RecentFileExtension