Merge pull request #644 from lonerOrz/feat/control-center-custom-button

feat: Implement Control Center custom button basic framework
This commit is contained in:
Lemmy
2025-11-03 15:58:16 -05:00
committed by GitHub
13 changed files with 941 additions and 22 deletions
+55 -1
View File
@@ -857,7 +857,61 @@
"label": "Widgets für Kurzbefehle"
},
"sectionLeft": "Links",
"sectionRight": "Rechts"
"sectionRight": "Rechts",
"custom-button": {
"icon": {
"label": "Symbol",
"description": "Wählen Sie ein Symbol aus der Bibliothek."
},
"browse": "Durchsuchen",
"command": {
"label": "Befehl",
"description": "Der Befehl, der ausgeführt werden soll, wenn die Schaltfläche geklickt wird."
},
"tooltip": {
"label": "Tooltip",
"description": "Der Tooltip, der angezeigt wird, wenn Sie mit der Maus über die Schaltfläche fahren."
},
"on-state-icon": {
"label": "Symbol im Aktiv-Zustand",
"description": "Das Symbol für die Schaltfläche, wenn sie sich im 'aktiv' Zustand befindet."
},
"on-clicked": {
"label": "Linksklick-Befehl",
"description": "Befehl, der ausgeführt wird, wenn die Schaltfläche links geklickt wird."
},
"on-right-clicked": {
"label": "Rechtsklick-Befehl",
"description": "Befehl, der ausgeführt wird, wenn die Schaltfläche rechts geklickt wird."
},
"on-middle-clicked": {
"label": "Mittelklick-Befehl",
"description": "Befehl, der ausgeführt wird, wenn die Schaltfläche mit der mittleren Maustaste geklickt wird."
},
"on-state-command": {
"label": "Befehl für Aktiv-Zustand-Prüfung",
"description": "Befehl, der ausgeführt wird, um zu prüfen, ob sich die Schaltfläche im 'aktiv' Zustand befinden soll. Gibt 0 für aktiv, ungleich 0 für inaktiv zurück."
},
"general-tooltip-text": {
"label": "Allgemeiner Tooltip-Text",
"description": "Allgemeine Beschreibung für den Tooltip der Schaltfläche."
},
"enable-on-state-logic": {
"label": "Aktiv-Zustand-Logik aktivieren",
"description": "Aktiviert ein zweites Symbol und 'aktiv' Zustand basierend auf einem Prüfbefehl."
},
"state-checks": {
"label": "Zustandsprüfungen",
"command": "Befehl, der für diese Zustandsprüfung ausgeführt werden soll",
"browse-icon": "Durchsuchen",
"remove": "Entfernen",
"add": "Zustandsprüfung hinzufügen"
}
},
"dialog": {
"cancel": "Abbrechen",
"apply": "Anwenden"
}
}
},
"user-interface": {
+57 -2
View File
@@ -857,7 +857,61 @@
"description": "Configure and manage the shortcuts widgets."
},
"sectionLeft": "Left",
"sectionRight": "Right"
"sectionRight": "Right",
"custom-button": {
"icon": {
"label": "Icon",
"description": "Select an icon from the library."
},
"browse": "Browse",
"command": {
"label": "Command",
"description": "The command to execute when the button is clicked."
},
"tooltip": {
"label": "Tooltip",
"description": "The tooltip to show when hovering over the button."
},
"on-state-icon": {
"label": "On State Icon",
"description": "The icon for the button when it's in the 'on' state."
},
"on-clicked": {
"label": "Left Click Command",
"description": "Command to execute when the button is left-clicked."
},
"on-right-clicked": {
"label": "Right Click Command",
"description": "Command to execute when the button is right-clicked."
},
"on-middle-clicked": {
"label": "Middle Click Command",
"description": "Command to execute when the button is middle-clicked."
},
"on-state-command": {
"label": "On State Check Command",
"description": "Command to execute to check if the button should be in the 'on' state. Returns 0 for on, non-zero for off."
},
"general-tooltip-text": {
"label": "General Tooltip Text",
"description": "General description for the button's tooltip."
},
"enable-on-state-logic": {
"label": "Enable On-State Logic",
"description": "Enable a second icon and 'hot' state based on a check command."
},
"state-checks": {
"label": "State Checks",
"command": "Command to execute for this state check",
"browse-icon": "Browse",
"remove": "Remove",
"add": "Add State Check"
}
},
"dialog": {
"cancel": "Cancel",
"apply": "Apply"
}
}
},
"user-interface": {
@@ -1471,7 +1525,8 @@
"search": "Search...",
"select": "Select",
"cancel": "Cancel",
"test": "Test"
"test": "Test",
"enter-tooltip": "Enter tooltip"
},
"options": {
"colors": {
+55 -1
View File
@@ -857,7 +857,61 @@
"label": "Widgets de accesos directos"
},
"sectionLeft": "Izquierda",
"sectionRight": "Derecha"
"sectionRight": "Derecha",
"custom-button": {
"icon": {
"label": "Icono",
"description": "Selecciona un icono de la biblioteca."
},
"browse": "Explorar",
"command": {
"label": "Comando",
"description": "El comando a ejecutar cuando se hace clic en el botón."
},
"tooltip": {
"label": "Tooltip",
"description": "El tooltip a mostrar al pasar el cursor sobre el botón."
},
"on-state-icon": {
"label": "Icono de estado activado",
"description": "El icono para el botón cuando está en el estado 'encendido'."
},
"on-clicked": {
"label": "Comando de clic izquierdo",
"description": "Comando a ejecutar cuando se hace clic izquierdo en el botón."
},
"on-right-clicked": {
"label": "Comando de clic derecho",
"description": "Comando a ejecutar cuando se hace clic derecho en el botón."
},
"on-middle-clicked": {
"label": "Comando de clic central",
"description": "Comando a ejecutar cuando se hace clic central en el botón."
},
"on-state-command": {
"label": "Comando de comprobación de estado activado",
"description": "Comando a ejecutar para comprobar si el botón debe estar en el estado 'encendido'. Devuelve 0 para encendido, no cero para apagado."
},
"general-tooltip-text": {
"label": "Texto de tooltip general",
"description": "Descripción general para el tooltip del botón."
},
"enable-on-state-logic": {
"label": "Habilitar lógica de estado activado",
"description": "Habilita un segundo icono y un estado 'caliente' basado en un comando de comprobación."
},
"state-checks": {
"label": "Comprobaciones de estado",
"command": "Comando a ejecutar para esta comprobación de estado",
"browse-icon": "Explorar",
"remove": "Eliminar",
"add": "Añadir comprobación de estado"
}
},
"dialog": {
"cancel": "Cancelar",
"apply": "Aplicar"
}
}
},
"user-interface": {
+55 -1
View File
@@ -857,7 +857,61 @@
"label": "Widgets de raccourcis"
},
"sectionLeft": "Gauche",
"sectionRight": "Droite"
"sectionRight": "Droite",
"custom-button": {
"icon": {
"label": "Icône",
"description": "Sélectionnez une icône dans la bibliothèque."
},
"browse": "Parcourir",
"command": {
"label": "Commande",
"description": "La commande à exécuter lorsque le bouton est cliqué."
},
"tooltip": {
"label": "Info-bulle",
"description": "L'info-bulle à afficher lors du survol du bouton."
},
"on-state-icon": {
"label": "Icône d'état activé",
"description": "L'icône du bouton lorsqu'il est dans l'état 'activé'."
},
"on-clicked": {
"label": "Commande de clic gauche",
"description": "Commande à exécuter lorsque le bouton est cliqué avec le bouton gauche."
},
"on-right-clicked": {
"label": "Commande de clic droit",
"description": "Commande à exécuter lorsque le bouton est cliqué avec le bouton droit."
},
"on-middle-clicked": {
"label": "Commande de clic central",
"description": "Commande à exécuter lorsque le bouton est cliqué avec le bouton du milieu."
},
"on-state-command": {
"label": "Commande de vérification de l'état activé",
"description": "Commande à exécuter pour vérifier si le bouton doit être dans l'état 'activé'. Retourne 0 pour activé, non-zéro pour désactivé."
},
"general-tooltip-text": {
"label": "Texte de l'info-bulle générale",
"description": "Description générale de l'info-bulle du bouton."
},
"enable-on-state-logic": {
"label": "Activer la logique d'état activé",
"description": "Active une deuxième icône et un état 'chaud' basés sur une commande de vérification."
},
"state-checks": {
"label": "Vérifications d'état",
"command": "Commande à exécuter pour cette vérification d'état",
"browse-icon": "Parcourir",
"remove": "Supprimer",
"add": "Ajouter une vérification d'état"
}
},
"dialog": {
"cancel": "Annuler",
"apply": "Appliquer"
}
}
},
"user-interface": {
+55 -1
View File
@@ -857,7 +857,61 @@
"label": "Widgets de atalhos"
},
"sectionLeft": "Esquerda",
"sectionRight": "Direito/Certo/À direita"
"sectionRight": "Direito/Certo/À direita",
"custom-button": {
"icon": {
"label": "Ícone",
"description": "Selecione um ícone da biblioteca."
},
"browse": "Procurar",
"command": {
"label": "Comando",
"description": "O comando a ser executado quando o botão é clicado."
},
"tooltip": {
"label": "Dica de ferramenta",
"description": "A dica de ferramenta a ser exibida ao passar o mouse sobre o botão."
},
"on-state-icon": {
"label": "Ícone de estado ativado",
"description": "O ícone para o botão quando ele está no estado 'ligado'."
},
"on-clicked": {
"label": "Comando de clique esquerdo",
"description": "Comando a ser executado quando o botão é clicado com o botão esquerdo."
},
"on-right-clicked": {
"label": "Comando de clique direito",
"description": "Comando a ser executado quando o botão é clicado com o botão direito."
},
"on-middle-clicked": {
"label": "Comando de clique do meio",
"description": "Comando a ser executado quando o botão é clicado com o botão do meio."
},
"on-state-command": {
"label": "Comando de verificação de estado ativado",
"description": "Comando a ser executado para verificar se o botão deve estar no estado 'ligado'. Retorna 0 para ligado, diferente de zero para desligado."
},
"general-tooltip-text": {
"label": "Texto geral da dica de ferramenta",
"description": "Descrição geral para a dica de ferramenta do botão."
},
"enable-on-state-logic": {
"label": "Ativar lógica de estado ativado",
"description": "Ativa um segundo ícone e um estado 'quente' com base em um comando de verificação."
},
"state-checks": {
"label": "Verificações de estado",
"command": "Comando a ser executado para esta verificação de estado",
"browse-icon": "Procurar",
"remove": "Remover",
"add": "Adicionar verificação de estado"
}
},
"dialog": {
"cancel": "Cancelar",
"apply": "Aplicar"
}
}
},
"user-interface": {
+55 -1
View File
@@ -857,7 +857,61 @@
"description": "Налаштуйте та керуйте віджетами швидкого доступу."
},
"sectionLeft": "Лівий",
"sectionRight": "Правий"
"sectionRight": "Правий",
"custom-button": {
"icon": {
"label": "Іконка",
"description": "Виберіть іконку з бібліотеки."
},
"browse": "Огляд",
"command": {
"label": "Команда",
"description": "Команда, яка буде виконана при натисканні кнопки."
},
"tooltip": {
"label": "Підказка",
"description": "Підказка, яка буде відображатися при наведенні на кнопку."
},
"on-state-icon": {
"label": "Іконка увімкненого стану",
"description": "Іконка для кнопки, коли вона у стані 'увімкнено'."
},
"on-clicked": {
"label": "Команда лівого кліку",
"description": "Команда, яка буде виконана при натисканні лівої кнопки миші."
},
"on-right-clicked": {
"label": "Команда правого кліку",
"description": "Команда, яка буде виконана при натисканні правої кнопки миші."
},
"on-middle-clicked": {
"label": "Команда середнього кліку",
"description": "Команда, яка буде виконана при натисканні середньої кнопки миші."
},
"on-state-command": {
"label": "Команда перевірки увімкненого стану",
"description": "Команда для перевірки, чи повинна кнопка бути у стані 'увімкнено'. Повертає 0 для увімкненого стану, ненульове значення для вимкненого."
},
"general-tooltip-text": {
"label": "Загальний текст підказки",
"description": "Загальний опис для підказки кнопки."
},
"enable-on-state-logic": {
"label": "Увімкнути логіку увімкненого стану",
"description": "Увімкнути другу іконку та 'гарячий' стан на основі команди перевірки."
},
"state-checks": {
"label": "Перевірки стану",
"command": "Команда для виконання для цієї перевірки стану",
"browse-icon": "Огляд",
"remove": "Видалити",
"add": "Додати перевірку стану"
}
},
"dialog": {
"cancel": "Скасувати",
"apply": "Застосувати"
}
}
},
"user-interface": {
+55 -1
View File
@@ -857,7 +857,61 @@
"label": "快捷方式小部件"
},
"sectionLeft": "左",
"sectionRight": "右"
"sectionRight": "右",
"custom-button": {
"icon": {
"label": "图标",
"description": "从库中选择一个图标。"
},
"browse": "浏览",
"command": {
"label": "命令",
"description": "单击按钮时执行的命令。"
},
"tooltip": {
"label": "工具提示",
"description": "悬停在按钮上时显示的工具提示。"
},
"on-state-icon": {
"label": "开启状态图标",
"description": "按钮处于“开启”状态时的图标。"
},
"on-clicked": {
"label": "左键单击命令",
"description": "左键单击按钮时执行的命令。"
},
"on-right-clicked": {
"label": "右键单击命令",
"description": "右键单击按钮时执行的命令。"
},
"on-middle-clicked": {
"label": "中键单击命令",
"description": "中键单击按钮时执行的命令。"
},
"on-state-command": {
"label": "开启状态检查命令",
"description": "执行以检查按钮是否应处于“开启”状态的命令。返回 0 表示开启,非零表示关闭。"
},
"general-tooltip-text": {
"label": "常规工具提示文本",
"description": "按钮工具提示的常规说明。"
},
"enable-on-state-logic": {
"label": "启用开启状态逻辑",
"description": "根据检查命令启用第二个图标和“高亮”状态。"
},
"state-checks": {
"label": "状态检查",
"command": "要为此状态检查执行的命令",
"browse-icon": "浏览",
"remove": "移除",
"add": "添加状态检查"
}
},
"dialog": {
"cancel": "取消",
"apply": "应用"
}
}
},
"user-interface": {