From 7b26706d723888b2340ead921b19393097f40107 Mon Sep 17 00:00:00 2001 From: xionglinlin Date: Fri, 20 Sep 2024 16:47:33 +0800 Subject: [PATCH] fix: missing tips when button hover Add tips description text and translations Log: missing tips when button hover Bug: https://pms.uniontech.com/bug-view-274477.html --- CMakeLists.txt | 1 + qml/FullscreenFrame.qml | 3 ++ qml/windowed/BottomBar.qml | 3 ++ qml/windowed/SideBar.qml | 4 +- translations/dde-launchpad.ts | 29 +++++++++-- translations/dde-launchpad_az.ts | 26 ++++++++-- translations/dde-launchpad_bo.ts | 26 ++++++++-- translations/dde-launchpad_ca.ts | 35 +++++++++++--- translations/dde-launchpad_es.ts | 35 +++++++++++--- translations/dde-launchpad_fi.ts | 35 +++++++++++--- translations/dde-launchpad_fr.ts | 29 +++++++++-- translations/dde-launchpad_hu.ts | 35 +++++++++++--- translations/dde-launchpad_it.ts | 26 ++++++++-- translations/dde-launchpad_ja.ts | 29 +++++++++-- translations/dde-launchpad_ko.ts | 29 +++++++++-- translations/dde-launchpad_nb_NO.ts | 26 ++++++++-- translations/dde-launchpad_pl.ts | 35 +++++++++++--- translations/dde-launchpad_pt_BR.ts | 35 +++++++++++--- translations/dde-launchpad_ru.ts | 37 +++++++++++--- translations/dde-launchpad_uk.ts | 35 +++++++++++--- translations/dde-launchpad_zh_CN.ts | 26 ++++++++-- translations/dde-launchpad_zh_HK.ts | 75 ++++++++++++++++++----------- translations/dde-launchpad_zh_TW.ts | 75 ++++++++++++++++++----------- 23 files changed, 532 insertions(+), 157 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 490281ea..b9f94bd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,6 +85,7 @@ get_target_property(WINDOWED_QML_FILES launcher-qml-windowed QT_QML_MODULE_QML_F set(QML_FILES_NEED_TRANSLATION qml/AppItemMenu.qml qml/Main.qml + qml/FullscreenFrame.qml ${WINDOWED_QML_FILES} ) diff --git a/qml/FullscreenFrame.qml b/qml/FullscreenFrame.qml index e959c3fc..e91e9d2c 100644 --- a/qml/FullscreenFrame.qml +++ b/qml/FullscreenFrame.qml @@ -145,6 +145,9 @@ InputEventItem { anchors.right: fullscreenHeader.right ColorSelector.family: Palette.CrystalColor icon.name: "launcher_exit_fullscreen" + ToolTip.visible: hovered + ToolTip.delay: 500 + ToolTip.text: qsTr("Window Mode") onClicked: { searchEdit.text = "" LauncherController.currentFrame = "WindowedFrame" diff --git a/qml/windowed/BottomBar.qml b/qml/windowed/BottomBar.qml index 7aee9310..cc089c80 100644 --- a/qml/windowed/BottomBar.qml +++ b/qml/windowed/BottomBar.qml @@ -98,6 +98,9 @@ Control { background: ItemBackground { button: fullscreenBtn } + ToolTip.visible: hovered + ToolTip.delay: 500 + ToolTip.text: qsTr("Full-screen Mode") Accessible.name: "Fullscreen" Layout.alignment: Qt.AlignRight | Qt.AlignVCenter onClicked: { diff --git a/qml/windowed/SideBar.qml b/qml/windowed/SideBar.qml index 1f1db1eb..944ecfb8 100644 --- a/qml/windowed/SideBar.qml +++ b/qml/windowed/SideBar.qml @@ -85,7 +85,9 @@ ColumnLayout { KeyNavigation.tab: nextKeyTabTarget topPadding: 7 bottomPadding: 5 - + ToolTip.visible: hovered + ToolTip.delay: 500 + ToolTip.text: qsTr("Sorting Mode") contentItem: ColumnLayout { spacing: 2 D.DciIcon { diff --git a/translations/dde-launchpad.ts b/translations/dde-launchpad.ts index 0458d8d6..edba9058 100644 --- a/translations/dde-launchpad.ts +++ b/translations/dde-launchpad.ts @@ -86,6 +86,11 @@ Search + + + Full-screen Mode + + FrequentlyUsedView @@ -95,6 +100,14 @@ + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -197,6 +210,7 @@ + No search results @@ -220,27 +234,32 @@ - + + Sorting Mode + + + + Computer - + Pictures - + Documents - + Desktop - + Control Center diff --git a/translations/dde-launchpad_az.ts b/translations/dde-launchpad_az.ts index e6d504d6..e86beac1 100644 --- a/translations/dde-launchpad_az.ts +++ b/translations/dde-launchpad_az.ts @@ -125,6 +125,11 @@ Search Axtar + + + Full-screen Mode + + FrequentlyUsedView @@ -140,6 +145,11 @@ Search Axtar + + + Window Mode + + LauncherController @@ -243,6 +253,7 @@ + No search results @@ -266,27 +277,32 @@ - + + Sorting Mode + + + + Computer - + Pictures - + Documents - + Desktop - + Control Center diff --git a/translations/dde-launchpad_bo.ts b/translations/dde-launchpad_bo.ts index f1841e98..b692592e 100644 --- a/translations/dde-launchpad_bo.ts +++ b/translations/dde-launchpad_bo.ts @@ -125,6 +125,11 @@ Search བཤེར་འཚོལ། + + + Full-screen Mode + + FrequentlyUsedView @@ -140,6 +145,11 @@ Search བཤེར་འཚོལ། + + + Window Mode + + LauncherController @@ -243,6 +253,7 @@ + No search results @@ -266,27 +277,32 @@ - + + Sorting Mode + + + + Computer - + Pictures - + Documents - + Desktop - + Control Center diff --git a/translations/dde-launchpad_ca.ts b/translations/dde-launchpad_ca.ts index 8d870322..eac21112 100644 --- a/translations/dde-launchpad_ca.ts +++ b/translations/dde-launchpad_ca.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -84,6 +86,11 @@ Search Cerca + + + Full-screen Mode + + FrequentlyUsedView @@ -93,6 +100,14 @@ Usat amb freqüència + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -195,6 +210,7 @@ Totes les aplicacions + No search results No hi ha resultats de la cerca. @@ -218,29 +234,34 @@ Ordena per nom - + + Sorting Mode + + + + Computer Ordinador - + Pictures Imatges - + Documents Documents - + Desktop Escriptori - + Control Center Centre de control - \ No newline at end of file + diff --git a/translations/dde-launchpad_es.ts b/translations/dde-launchpad_es.ts index dacdfd05..2e723005 100644 --- a/translations/dde-launchpad_es.ts +++ b/translations/dde-launchpad_es.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -84,6 +86,11 @@ Search Buscar + + + Full-screen Mode + + FrequentlyUsedView @@ -93,6 +100,14 @@ Uso frecuente + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -195,6 +210,7 @@ Todas las aplicaciones + No search results No hay resultados @@ -218,29 +234,34 @@ Ordenar por nombre - + + Sorting Mode + + + + Computer Ordenador - + Pictures Imágenes - + Documents Documentos - + Desktop Escritorio - + Control Center Panel de control - \ No newline at end of file + diff --git a/translations/dde-launchpad_fi.ts b/translations/dde-launchpad_fi.ts index ce3637da..0264d159 100644 --- a/translations/dde-launchpad_fi.ts +++ b/translations/dde-launchpad_fi.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -84,6 +86,11 @@ Search Hae + + + Full-screen Mode + + FrequentlyUsedView @@ -93,6 +100,14 @@ Usein käytetty + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -195,6 +210,7 @@ Kaikki sovellukset + No search results Ei hakutuloksia @@ -218,29 +234,34 @@ Lajittele nimen mukaan - + + Sorting Mode + + + + Computer Tietokone - + Pictures Kuvat - + Documents Asiakirjat - + Desktop Työpöytä - + Control Center Ohjauskeskus - \ No newline at end of file + diff --git a/translations/dde-launchpad_fr.ts b/translations/dde-launchpad_fr.ts index 3afd1c8d..011ebb39 100644 --- a/translations/dde-launchpad_fr.ts +++ b/translations/dde-launchpad_fr.ts @@ -125,6 +125,11 @@ Search Rechercher + + + Full-screen Mode + + FrequentlyUsedView @@ -134,6 +139,14 @@ + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -236,6 +249,7 @@ + No search results @@ -259,27 +273,32 @@ - + + Sorting Mode + + + + Computer - + Pictures - + Documents - + Desktop - + Control Center diff --git a/translations/dde-launchpad_hu.ts b/translations/dde-launchpad_hu.ts index a55aea15..62c10e55 100644 --- a/translations/dde-launchpad_hu.ts +++ b/translations/dde-launchpad_hu.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -84,6 +86,11 @@ Search Keresés + + + Full-screen Mode + + FrequentlyUsedView @@ -93,6 +100,14 @@ Gyakran Használt + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -195,6 +210,7 @@ Minden alkalmazás + No search results Nincs keresési eredmény @@ -218,29 +234,34 @@ Rendezés név szerint - + + Sorting Mode + + + + Computer Számítógép - + Pictures Képek - + Documents Dokumentumok - + Desktop Asztal - + Control Center Vezérlőpult - \ No newline at end of file + diff --git a/translations/dde-launchpad_it.ts b/translations/dde-launchpad_it.ts index 8021765e..cc53047e 100644 --- a/translations/dde-launchpad_it.ts +++ b/translations/dde-launchpad_it.ts @@ -132,6 +132,11 @@ Search Cerca + + + Full-screen Mode + + FrequentlyUsedView @@ -151,6 +156,11 @@ Search Cerca + + + Window Mode + + LauncherController @@ -254,6 +264,7 @@ Tutte le app + No search results Nessun risultato disponibile @@ -277,27 +288,32 @@ - + + Sorting Mode + + + + Computer - + Pictures - + Documents - + Desktop - + Control Center diff --git a/translations/dde-launchpad_ja.ts b/translations/dde-launchpad_ja.ts index b4624e35..8fd06ace 100644 --- a/translations/dde-launchpad_ja.ts +++ b/translations/dde-launchpad_ja.ts @@ -125,6 +125,11 @@ Search 検索 + + + Full-screen Mode + + FrequentlyUsedView @@ -134,6 +139,14 @@ + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -236,6 +249,7 @@ + No search results @@ -259,27 +273,32 @@ - + + Sorting Mode + + + + Computer - + Pictures - + Documents - + Desktop - + Control Center diff --git a/translations/dde-launchpad_ko.ts b/translations/dde-launchpad_ko.ts index 7e0aa3e7..8adb4413 100644 --- a/translations/dde-launchpad_ko.ts +++ b/translations/dde-launchpad_ko.ts @@ -125,6 +125,11 @@ Search 찾기 + + + Full-screen Mode + + FrequentlyUsedView @@ -134,6 +139,14 @@ + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -236,6 +249,7 @@ + No search results @@ -259,27 +273,32 @@ - + + Sorting Mode + + + + Computer - + Pictures - + Documents - + Desktop - + Control Center diff --git a/translations/dde-launchpad_nb_NO.ts b/translations/dde-launchpad_nb_NO.ts index b71b93be..06666e02 100644 --- a/translations/dde-launchpad_nb_NO.ts +++ b/translations/dde-launchpad_nb_NO.ts @@ -132,6 +132,11 @@ Search Søk + + + Full-screen Mode + + FrequentlyUsedView @@ -151,6 +156,11 @@ Search Søk + + + Window Mode + + LauncherController @@ -254,6 +264,7 @@ Alle programmer + No search results Ingen søkeresultater @@ -277,27 +288,32 @@ - + + Sorting Mode + + + + Computer - + Pictures - + Documents - + Desktop - + Control Center diff --git a/translations/dde-launchpad_pl.ts b/translations/dde-launchpad_pl.ts index 7b150e5e..e817a044 100644 --- a/translations/dde-launchpad_pl.ts +++ b/translations/dde-launchpad_pl.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -84,6 +86,11 @@ Search Szukaj + + + Full-screen Mode + + FrequentlyUsedView @@ -93,6 +100,14 @@ Często używane + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -195,6 +210,7 @@ Wszystkie aplikacje + No search results Brak wyników wyszukiwania @@ -218,29 +234,34 @@ Sortuj według nazwy - + + Sorting Mode + + + + Computer Komputer - + Pictures Obrazy - + Documents Dokumenty - + Desktop Pulpit - + Control Center Centrum sterowania - \ No newline at end of file + diff --git a/translations/dde-launchpad_pt_BR.ts b/translations/dde-launchpad_pt_BR.ts index 4aa6f159..92dacbe4 100644 --- a/translations/dde-launchpad_pt_BR.ts +++ b/translations/dde-launchpad_pt_BR.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -84,6 +86,11 @@ Search Pesquisar + + + Full-screen Mode + + FrequentlyUsedView @@ -93,6 +100,14 @@ Usado frequentemente + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -195,6 +210,7 @@ Todos os aplicativos + No search results Nenhum resultado encontrado @@ -218,29 +234,34 @@ Classificar por nome - + + Sorting Mode + + + + Computer Computador - + Pictures Imagens - + Documents Documentos - + Desktop Área de Trabalho - + Control Center Central de Controle - \ No newline at end of file + diff --git a/translations/dde-launchpad_ru.ts b/translations/dde-launchpad_ru.ts index 917b072f..02d238d5 100644 --- a/translations/dde-launchpad_ru.ts +++ b/translations/dde-launchpad_ru.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -14,7 +16,7 @@ Move to Top - + @@ -84,6 +86,11 @@ Search Поиск + + + Full-screen Mode + + FrequentlyUsedView @@ -93,6 +100,14 @@ Часто используемое + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -195,6 +210,7 @@ Все приложения + No search results Ничего не найдено @@ -218,29 +234,34 @@ Сортировать по имени - + + Sorting Mode + + + + Computer Компьютер - + Pictures Картинки - + Documents Документы - + Desktop Рабочий Стол - + Control Center Центр управления - \ No newline at end of file + diff --git a/translations/dde-launchpad_uk.ts b/translations/dde-launchpad_uk.ts index ba0205a9..2aa948eb 100644 --- a/translations/dde-launchpad_uk.ts +++ b/translations/dde-launchpad_uk.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -84,6 +86,11 @@ Search Пошук + + + Full-screen Mode + + FrequentlyUsedView @@ -93,6 +100,14 @@ Часто використані + + FullscreenFrame + + + Window Mode + + + LauncherController @@ -195,6 +210,7 @@ Усі програми + No search results Нічого не знайдено @@ -218,29 +234,34 @@ Упорядкування за назвами - + + Sorting Mode + + + + Computer Комп'ютер - + Pictures Зображення - + Documents Документи - + Desktop Стільниця - + Control Center Центр керування - \ No newline at end of file + diff --git a/translations/dde-launchpad_zh_CN.ts b/translations/dde-launchpad_zh_CN.ts index cf7f4fa9..11535061 100644 --- a/translations/dde-launchpad_zh_CN.ts +++ b/translations/dde-launchpad_zh_CN.ts @@ -140,6 +140,11 @@ Search 搜索 + + + Full-screen Mode + 全屏模式 + FrequentlyUsedView @@ -159,6 +164,11 @@ Search 搜索 + + + Window Mode + 窗口模式 + LauncherController @@ -262,6 +272,7 @@ 所有应用 + No search results 无搜索结果 @@ -285,27 +296,32 @@ 按名称 - + + Sorting Mode + 排序模式 + + + Computer 计算机 - + Pictures 图片 - + Documents 文档 - + Desktop 桌面 - + Control Center 控制中心 diff --git a/translations/dde-launchpad_zh_HK.ts b/translations/dde-launchpad_zh_HK.ts index 08f523a2..d2eb6b69 100644 --- a/translations/dde-launchpad_zh_HK.ts +++ b/translations/dde-launchpad_zh_HK.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -14,7 +16,7 @@ Move to Top - + @@ -84,13 +86,26 @@ Search 搜尋 + + + Full-screen Mode + 全屏模式 + FrequentlyUsedView Frequently Used - + + + + + FullscreenFrame + + + Window Mode + 窗口模式 @@ -98,12 +113,12 @@ Show launcher (hidden by default) - + Toggle launcher visibility - + @@ -136,7 +151,7 @@ Game - + @@ -161,22 +176,22 @@ Others - + Are you sure you want to uninstall %1? - + Cancel - + Confirm - + @@ -184,7 +199,7 @@ Recently Installed - + @@ -192,12 +207,13 @@ All Apps - + + No search results - + @@ -205,42 +221,47 @@ Free sorting - + Sort by category - + Sort by name - + + + + + Sorting Mode + 排序模式 - + Computer - + - + Pictures - + - + Documents - + - + Desktop - + - + Control Center - + - \ No newline at end of file + diff --git a/translations/dde-launchpad_zh_TW.ts b/translations/dde-launchpad_zh_TW.ts index a3e0d53c..80a144ad 100644 --- a/translations/dde-launchpad_zh_TW.ts +++ b/translations/dde-launchpad_zh_TW.ts @@ -1,4 +1,6 @@ - + + + AppItemMenu @@ -14,7 +16,7 @@ Move to Top - + @@ -84,13 +86,26 @@ Search 搜尋 + + + Full-screen Mode + 全屏模式 + FrequentlyUsedView Frequently Used - + + + + + FullscreenFrame + + + Window Mode + 窗口模式 @@ -98,12 +113,12 @@ Show launcher (hidden by default) - + Toggle launcher visibility - + @@ -136,7 +151,7 @@ Game - + @@ -161,22 +176,22 @@ Others - + Are you sure you want to uninstall %1? - + Cancel - + Confirm - + @@ -184,7 +199,7 @@ Recently Installed - + @@ -192,12 +207,13 @@ All Apps - + + No search results - + @@ -205,42 +221,47 @@ Free sorting - + Sort by category - + Sort by name - + + + + + Sorting Mode + 排序模式 - + Computer - + - + Pictures - + - + Documents - + - + Desktop - + - + Control Center - + - \ No newline at end of file +