control-center: added a new option to disable the right click open at cursor pos.

This commit is contained in:
Lemmy
2026-03-01 17:31:14 -05:00
parent fcd08289ad
commit 1c3760b73b
22 changed files with 59 additions and 8 deletions
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Passen Sie an, welche Steuerelemente im Kontrollzentrum angezeigt werden und in welcher Reihenfolge.",
"desc": "Konfigurieren Sie die Positionierung und das Verhalten des Kontrollzentrum-Panels.",
"open-at-mouse-description": "Beim Rechtsklick auf einen leeren Bereich der Leiste, öffne das Kontrollzentrum nahe dem Cursor. Wenn deaktiviert, wird stattdessen die obige Positionseinstellung verwendet.",
"open-at-mouse-label": "Am Mauszeiger bei Rechtsklick öffnen",
"position-description": "Wählen Sie aus, wo das Kontrollzentrum-Panel angezeigt wird, wenn es geöffnet wird.",
"shortcuts-custom-button-command-description": "Der Befehl, der ausgeführt werden soll, wenn die Schaltfläche geklickt wird.",
"shortcuts-custom-button-enable-on-state-logic-description": "Aktiviert ein zweites Symbol und 'Aktiv'-Zustand basierend auf einem Prüfbefehl.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Customize which controls appear in the control center and in what order.",
"desc": "Configure the control center panel positioning and behavior.",
"open-at-mouse-description": "When right-clicking an empty area of the bar, open the control center near the cursor. When disabled, the position setting above is used instead.",
"open-at-mouse-label": "Open at cursor on right-click",
"position-description": "Choose where the control center panel appears when opened.",
"shortcuts-custom-button-command-description": "The command to execute when the button is clicked.",
"shortcuts-custom-button-enable-on-state-logic-description": "Enable a second icon and 'hot' state based on a check command.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Personaliza qué controles aparecen en el centro de control y en qué orden.",
"desc": "Configurar el posicionamiento y el comportamiento del panel del centro de control.",
"open-at-mouse-description": "Al hacer clic derecho en un área vacía de la Bar, abre el Centro de Control cerca del cursor. Cuando está deshabilitado, se usa la configuración de posición anterior en su lugar.",
"open-at-mouse-label": "Abrir en el cursor al hacer clic derecho",
"position-description": "Elige dónde aparece el panel del centro de control cuando se abre.",
"shortcuts-custom-button-command-description": "El comando a ejecutar cuando se hace clic en el botón.",
"shortcuts-custom-button-enable-on-state-logic-description": "Habilita un segundo icono y un estado 'caliente' basado en un comando de comprobación.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Personnalisez les commandes qui apparaissent dans le centre de contrôle et leur ordre d'affichage.",
"desc": "Configurer le positionnement et le comportement du panneau du centre de contrôle.",
"open-at-mouse-description": "Lors d'un clic droit sur une zone vide de la Bar, ouvre le Centre de Contrôle près du curseur. Si désactivé, le réglage de position ci-dessus est utilisé à la place.",
"open-at-mouse-label": "Ouvrir au niveau du curseur lors d'un clic droit",
"position-description": "Choisissez où le panneau du centre de contrôle apparaît lorsqu'il est ouvert.",
"shortcuts-custom-button-command-description": "La commande à exécuter lorsque le bouton est cliqué.",
"shortcuts-custom-button-enable-on-state-logic-description": "Active une deuxième icône et un état 'chaud' basés sur une commande de vérification.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Mely vezérlők jelenjenek meg a vezérlőközpontban és milyen sorrendben.",
"desc": "A vezérlőközpont panel pozicionálásának és viselkedésének konfigurálása.",
"open-at-mouse-description": "Ha jobb egérgombbal kattintasz a Sáv egy üres területére, nyisd meg a Vezérlőközpontot a kurzor közelében. Ha le van tiltva, a fenti pozícióbeállítás lesz használva helyette.",
"open-at-mouse-label": "Megnyitás a kurzornál jobb kattintásra",
"position-description": "Hol jelenjen meg a vezérlőközpont panel megnyitáskor.",
"shortcuts-custom-button-command-description": "A gombra kattintáskor végrehajtandó parancs.",
"shortcuts-custom-button-enable-on-state-logic-description": "Második ikon és „aktív” állapot engedélyezése ellenőrző parancs alapján.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Personalizza quali controlli appaiono nel centro di controllo e in quale ordine.",
"desc": "Configura posizione e comportamento del pannello centro di controllo.",
"open-at-mouse-description": "Quando si fa clic destro su un'area vuota della Bar, apri il Centro di Controllo vicino al cursore. Se disabilitato, viene utilizzata l'impostazione di posizione sopra indicata.",
"open-at-mouse-label": "Apri al cursore con clic destro",
"position-description": "Scegli dove appare il pannello centro di controllo quando viene aperto.",
"shortcuts-custom-button-command-description": "Comando da eseguire quando il pulsante viene cliccato.",
"shortcuts-custom-button-enable-on-state-logic-description": "Abilita una seconda icona e uno stato 'attivo' basato su un comando di controllo.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "コントロールセンターに表示する項目と、その順序をカスタマイズします。",
"desc": "コントロールセンターの位置や挙動を設定します。",
"open-at-mouse-description": "バーの空いている領域を右クリックすると、カーソル付近にコントロールセンターを開きます。無効になっている場合、代わりに上記の配置設定が使用されます。",
"open-at-mouse-label": "右クリックでカーソル位置に開く",
"position-description": "コントロールセンターを開いたときの表示位置を選択します。",
"shortcuts-custom-button-command-description": "ボタンをクリックした際に実行するコマンド。",
"shortcuts-custom-button-enable-on-state-logic-description": "チェックコマンドに基づいて、別のアイコンや「ON」状態を有効にします。",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "제어 센터에 표시될 컨트롤과 순서를 사용자 지정합니다.",
"desc": "제어 센터 패널의 위치와 동작을 구성합니다.",
"open-at-mouse-description": "바의 빈 공간을 오른쪽 클릭하면 커서 근처에 제어 센터를 엽니다. 비활성화된 경우, 대신 위의 위치 설정이 사용됩니다.",
"open-at-mouse-label": "마우스 오른쪽 클릭 시 커서 위치에 열기",
"position-description": "제어 센터 패널이 열릴 때 나타날 위치를 선택하세요.",
"shortcuts-custom-button-command-description": "버튼을 클릭했을 때 실행할 명령입니다.",
"shortcuts-custom-button-enable-on-state-logic-description": "검사 명령에 따라 두 번째 아이콘과 '켜짐(hot)' 상태를 활성화합니다.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Pas aan welke bedieningselementen in het bedieningscentrum verschijnen en in welke volgorde.",
"desc": "Configureer de positie en het gedrag van het bedieningscentrumpaneel.",
"open-at-mouse-description": "Bij een rechtermuisklik op een leeg gedeelte van de Bar, open het Controlecentrum dicht bij de cursor. Indien uitgeschakeld, wordt de bovenstaande positie-instelling gebruikt.",
"open-at-mouse-label": "Openen bij cursor met rechtermuisklik",
"position-description": "Kies waar het bedieningscentrumpaneel verschijnt wanneer het wordt geopend.",
"shortcuts-custom-button-command-description": "Het commando dat wordt uitgevoerd wanneer op de knop wordt geklikt.",
"shortcuts-custom-button-enable-on-state-logic-description": "Schakel een tweede pictogram en aan-status in op basis van een controlecommando.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Dostosuj, które kontrolki pojawiają się w centrum sterowania i w jakiej kolejności.",
"desc": "Konfiguruj pozycjonowanie i zachowanie panelu centrum sterowania.",
"open-at-mouse-description": "Po kliknięciu prawym przyciskiem myszy na pusty obszar Bar, otwórz Centrum Sterowania blisko kursora. Gdy wyłączone, zamiast tego używane jest powyższe ustawienie pozycji.",
"open-at-mouse-label": "Otwórz w miejscu kursora po prawym kliknięciu",
"position-description": "Wybierz, gdzie pojawia się panel centrum sterowania po otwarciu.",
"shortcuts-custom-button-command-description": "Polecenie do wykonania po kliknięciu przycisku.",
"shortcuts-custom-button-enable-on-state-logic-description": "Włącz drugą ikonę i stan 'aktywny' na podstawie polecenia sprawdzającego.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Personalize quais controles aparecem na central de controle e em que ordem.",
"desc": "Configurar o posicionamento e o comportamento do painel da central de controle.",
"open-at-mouse-description": "Ao clicar com o botão direito numa área vazia da Bar, abre o Centro de Controle perto do cursor. Quando desativado, a definição de posição acima é usada em vez disso.",
"open-at-mouse-label": "Abrir no cursor ao clicar com o botão direito",
"position-description": "Escolha onde o painel da central de controle aparece quando aberto.",
"shortcuts-custom-button-command-description": "O comando a ser executado quando o botão é clicado.",
"shortcuts-custom-button-enable-on-state-logic-description": "Ativa um segundo ícone e um estado 'quente' com base em um comando de verificação.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Настройте, какие элементы управления появляются в центре управления и в каком порядке.",
"desc": "Настройка позиционирования и поведения панели центра управления.",
"open-at-mouse-description": "При нажатии правой кнопкой мыши на пустую область Панели, откройте Центр управления рядом с курсором. Если отключено, вместо этого используется настройка положения выше.",
"open-at-mouse-label": "Открывать у курсора по правому клику",
"position-description": "Выберите, где появляется панель центра управления при открытии.",
"shortcuts-custom-button-command-description": "Команда для выполнения при нажатии на кнопку.",
"shortcuts-custom-button-enable-on-state-logic-description": "Включить вторую иконку и 'активное' состояние на основе команды проверки.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Anpassa vilka kontroller som ska visas i kontrollcentret och i vilken ordning.",
"desc": "Konfigurera kontrollpanelens placering och beteende.",
"open-at-mouse-description": "När du högerklickar på ett tomt område av Fältet, öppna Kontrollcentret nära markören. Om inaktiverat används istället positioneringsinställningen ovan.",
"open-at-mouse-label": "Öppna vid markören med högerklick",
"position-description": "Välj var kontrollpanelen ska visas när den öppnas.",
"shortcuts-custom-button-command-description": "Kommandot som ska utföras när knappen klickas på.",
"shortcuts-custom-button-enable-on-state-logic-description": "Aktivera en andra ikon och 'aktivt' tillstånd baserat på ett kontrollkommando.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Kontrol merkezinde hangi kontrollerin ve hangi sırada görüneceğini özelleştirin.",
"desc": "Kontrol merkezi paneli konumunu ve davranışını yapılandırın.",
"open-at-mouse-description": "Bar'ın boş bir alanına sağ tıkladığınızda, Kontrol Merkezi'ni imlecin yakınında açın. Devre dışı bırakıldığında, bunun yerine yukarıdaki konum ayarı kullanılır.",
"open-at-mouse-label": "Sağ tıklamada imleç konumunda aç",
"position-description": "Kontrol merkezi paneli açıldığında nerede görüneceğini seçin.",
"shortcuts-custom-button-command-description": "Düğmeye tıklandığında çalıştırılacak komut.",
"shortcuts-custom-button-enable-on-state-logic-description": "Bir kontrol komutuna bağlı olarak ikinci bir simgeyi ve 'etkin' durumunu etkinleştir.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "Налаштуйте, які елементи керування з'являються в центрі керування та в якому порядку.",
"desc": "Налаштуйте положення та поведінку панелі центру керування.",
"open-at-mouse-description": "При натисканні правою кнопкою миші на порожній області Панелі, відкрийте Центр керування поруч з курсором. Якщо вимкнено, замість цього використовується налаштування позиції вище.",
"open-at-mouse-label": "Відкривати біля курсора за правим кліком",
"position-description": "Виберіть, де з'являється панель центру керування при відкритті.",
"shortcuts-custom-button-command-description": "Команда, яка буде виконана при натисканні кнопки.",
"shortcuts-custom-button-enable-on-state-logic-description": "Увімкнути другу іконку та 'гарячий' стан на основі команди перевірки.",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "自定义在控制中心显示的控制项及其顺序。",
"desc": "配置控制中心面板的位置和行为。",
"open-at-mouse-description": "右键点击栏的空白区域时,在光标附近打开控制中心。禁用时,将使用上方的位置设置。",
"open-at-mouse-label": "右键点击时在光标处打开",
"position-description": "选择打开控制中心时面板出现的位置。",
"shortcuts-custom-button-command-description": "单击按钮时执行的命令。",
"shortcuts-custom-button-enable-on-state-logic-description": "根据检查命令启用第二个图标和“高亮”状态。",
+2
View File
@@ -933,6 +933,8 @@
"control-center": {
"cards-desc": "自訂控制中心出現的控制項目及排序",
"desc": "設定控制中心面板的位置和行為",
"open-at-mouse-description": "當右鍵點擊欄的空白區域時,在游標附近開啟控制中心。若已停用,則改用上方的位置設定。",
"open-at-mouse-label": "右鍵點擊時在游標處開啟",
"position-description": "選擇當開啟控制中心時該從哪裡出現",
"shortcuts-custom-button-command-description": "在按鈕按下時要執行的命令",
"shortcuts-custom-button-enable-on-state-logic-description": "啟用第二個圖示與「熱區」狀態,並根據檢查命令判斷。",
+1
View File
@@ -244,6 +244,7 @@
},
"controlCenter": {
"position": "close_to_bar_button",
"openAtMouseOnBarRightClick": true,
"diskPath": "/",
"shortcuts": {
"left": [
+9
View File
@@ -548,6 +548,15 @@
"subTab": 0,
"subTabLabel": "common.appearance"
},
{
"labelKey": "panels.control-center.open-at-mouse-label",
"descriptionKey": "panels.control-center.open-at-mouse-description",
"widget": "NToggle",
"tab": 7,
"tabLabel": "panels.control-center.title",
"subTab": 0,
"subTabLabel": "common.appearance"
},
{
"labelKey": "panels.control-center.system-monitor-disk-path-label",
"descriptionKey": "panels.control-center.system-monitor-disk-path-description",
+1
View File
@@ -438,6 +438,7 @@ Singleton {
property JsonObject controlCenter: JsonObject {
// Position: close_to_bar_button, center, top_left, top_right, bottom_left, bottom_right, bottom_center, top_center
property string position: "close_to_bar_button"
property bool openAtMouseOnBarRightClick: true
property string diskPath: "/"
property JsonObject shortcuts
shortcuts: JsonObject {
+6 -8
View File
@@ -343,15 +343,13 @@ Item {
if (mouse.button === Qt.RightButton) {
if (bar.isPointOverWidget(mouse.x, mouse.y))
return;
// Click is on empty bar background - open control center
var controlCenterPanel = PanelService.getPanel("controlCenterPanel", screen);
// Map click position to screen-relative coordinates
// We need to map from bar coordinates to screen coordinates
var screenRelativePos = mapToItem(null, mouse.x, mouse.y);
// Pass click position directly
controlCenterPanel?.toggle(null, screenRelativePos);
if (Settings.data.controlCenter.openAtMouseOnBarRightClick) {
var screenRelativePos = mapToItem(null, mouse.x, mouse.y);
controlCenterPanel?.toggle(null, screenRelativePos);
} else {
controlCenterPanel?.toggle();
}
mouse.accepted = true;
}
}
@@ -63,6 +63,14 @@ ColumnLayout {
defaultValue: Settings.getDefaultValue("controlCenter.position")
}
NToggle {
label: I18n.tr("panels.control-center.open-at-mouse-label")
description: I18n.tr("panels.control-center.open-at-mouse-description")
checked: Settings.data.controlCenter.openAtMouseOnBarRightClick
onToggled: checked => Settings.data.controlCenter.openAtMouseOnBarRightClick = checked
defaultValue: Settings.getDefaultValue("controlCenter.openAtMouseOnBarRightClick")
}
NComboBox {
id: diskPathComboBox
Layout.fillWidth: true