Tooltips: add option to disable all tooltips in general tab

This commit is contained in:
Ly-sec
2025-10-05 10:38:32 +02:00
parent 77f1ef8893
commit 641e28eee6
10 changed files with 40 additions and 3 deletions
+4
View File
@@ -18,6 +18,10 @@
"label": "Benutzeroberfläche",
"description": "Passen Sie das Aussehen, die Haptik und das Verhalten der Oberfläche an."
},
"tooltips": {
"label": "Tooltips anzeigen",
"description": "Tooltips in der gesamten Benutzeroberfläche aktivieren oder deaktivieren."
},
"dim-desktop": {
"label": "Desktop abdunkeln",
"description": "Desktop abdunkeln, wenn Panels oder Menüs geöffnet sind."
+4
View File
@@ -20,6 +20,10 @@
"label": "User interface",
"description": "Customize the look, feel, and behavior of the interface."
},
"tooltips": {
"label": "Show tooltips",
"description": "Enable or disable tooltips throughout the interface."
},
"dim-desktop": {
"label": "Dim desktop",
"description": "Dim the desktop when panels or menus are open."
+4
View File
@@ -18,6 +18,10 @@
"label": "Interfaz de usuario",
"description": "Personaliza la apariencia, sensación y comportamiento de la interfaz."
},
"tooltips": {
"label": "Mostrar tooltips",
"description": "Activar o desactivar tooltips en toda la interfaz."
},
"dim-desktop": {
"label": "Atenuar escritorio",
"description": "Atenúa el escritorio cuando los paneles o menús están abiertos."
+4
View File
@@ -18,6 +18,10 @@
"label": "Interface utilisateur",
"description": "Personnalisez l'apparence, l'ergonomie et le comportement de l'interface."
},
"tooltips": {
"label": "Afficher les tooltips",
"description": "Activer ou désactiver les tooltips dans toute l'interface."
},
"dim-desktop": {
"label": "Assombrir le bureau",
"description": "Assombrir le bureau lorsque des panneaux ou des menus sont ouverts."
+4
View File
@@ -18,6 +18,10 @@
"label": "Interface do usuário",
"description": "Personalize a aparência, a sensação e o comportamento da interface."
},
"tooltips": {
"label": "Mostrar tooltips",
"description": "Ativar ou desativar tooltips em toda a interface."
},
"dim-desktop": {
"label": "Escurecer área de trabalho",
"description": "Escurece a área de trabalho quando painéis ou menus estão abertos."
+4
View File
@@ -18,6 +18,10 @@
"label": "用户界面",
"description": "自定义界面的外观、风格和行为。"
},
"tooltips": {
"label": "显示工具提示",
"description": "在整个界面中启用或禁用工具提示。"
},
"dim-desktop": {
"label": "调暗桌面",
"description": "当面板或菜单打开时调暗桌面。"
+3 -2
View File
@@ -1,5 +1,5 @@
{
"settingsVersion": 14,
"settingsVersion": 15,
"bar": {
"position": "top",
"backgroundOpacity": 1,
@@ -156,7 +156,8 @@
"fontDefaultScale": 1,
"fontFixedScale": 1,
"monitorsScaling": [],
"idleInhibitorEnabled": false
"idleInhibitorEnabled": false,
"tooltipsEnabled": true
},
"brightness": {
"brightnessStep": 5
+2 -1
View File
@@ -128,7 +128,7 @@ Singleton {
JsonAdapter {
id: adapter
property int settingsVersion: 14
property int settingsVersion: 15
// bar
property JsonObject bar: JsonObject {
@@ -303,6 +303,7 @@ Singleton {
property real fontFixedScale: 1.0
property list<var> monitorsScaling: []
property bool idleInhibitorEnabled: false
property bool tooltipsEnabled: true
}
// brightness
+7
View File
@@ -82,6 +82,13 @@ ColumnLayout {
onToggled: checked => Settings.data.general.dimDesktop = checked
}
NToggle {
label: I18n.tr("settings.general.ui.tooltips.label")
description: I18n.tr("settings.general.ui.tooltips.description")
checked: Settings.data.ui.tooltipsEnabled
onToggled: checked => Settings.data.ui.tooltipsEnabled = checked
}
ColumnLayout {
spacing: Style.marginXXS * scaling
Layout.fillWidth: true
+4
View File
@@ -16,6 +16,10 @@ Singleton {
}
function show(screen, target, text, direction, delay) {
if (!Settings.data.ui.tooltipsEnabled) {
return
}
// Don't create if no text
if (!screen || !target || !text) {
Logger.log("Tooltip", "No target or text")