mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-09 21:36:13 +00:00
Tooltips: add option to disable all tooltips in general tab
This commit is contained in:
@@ -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."
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -18,6 +18,10 @@
|
||||
"label": "用户界面",
|
||||
"description": "自定义界面的外观、风格和行为。"
|
||||
},
|
||||
"tooltips": {
|
||||
"label": "显示工具提示",
|
||||
"description": "在整个界面中启用或禁用工具提示。"
|
||||
},
|
||||
"dim-desktop": {
|
||||
"label": "调暗桌面",
|
||||
"description": "当面板或菜单打开时调暗桌面。"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user