From 7630a8b5c34b6c22ed82413485e0eec175f624a7 Mon Sep 17 00:00:00 2001 From: wheaney <42350981+wheaney@users.noreply.github.com> Date: Thu, 6 Mar 2025 19:45:26 -0800 Subject: [PATCH] Add all displays follow mode option, v2.0.2 --- VERSION | 2 +- gnome/src/devicedatastream.js | 9 ++++++- gnome/src/extension.js | 1 + .../com.xronlinux.BreezyDesktop.gschema.xml | 9 +++++++ ui/po/breezydesktop.pot | 24 ++++++++++++------ ui/po/de.po | 25 +++++++++++++------ ui/po/es.po | 25 +++++++++++++------ ui/po/fr.po | 25 +++++++++++++------ ui/po/it.po | 25 +++++++++++++------ ui/po/ja.po | 25 +++++++++++++------ ui/po/pl.po | 24 ++++++++++++------ ui/po/pt_BR.po | 25 +++++++++++++------ ui/po/ru.po | 25 +++++++++++++------ ui/po/sv.po | 25 +++++++++++++------ ui/po/uk_UA.po | 25 +++++++++++++------ ui/po/zh_CN.po | 25 +++++++++++++------ ui/src/connecteddevice.py | 2 ++ ui/src/gtk/connected-device.ui | 11 ++++++++ ui/src/window.py | 5 ++++ 19 files changed, 239 insertions(+), 98 deletions(-) diff --git a/VERSION b/VERSION index 10bf840..f93ea0c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1 \ No newline at end of file +2.0.2 \ No newline at end of file diff --git a/gnome/src/devicedatastream.js b/gnome/src/devicedatastream.js index aae3706..db84d68 100644 --- a/gnome/src/devicedatastream.js +++ b/gnome/src/devicedatastream.js @@ -118,6 +118,13 @@ export const DeviceDataStream = GObject.registerClass({ GObject.ParamFlags.READWRITE, false ), + 'legacy-follow-mode': GObject.ParamSpec.boolean( + 'legacy-follow-mode', + 'Legacy follow mode', + 'Whether the legacy follow mode is enabled', + GObject.ParamFlags.READWRITE, + false + ), 'debug-no-device': GObject.ParamSpec.boolean( 'debug-no-device', 'Debug without device', @@ -191,7 +198,7 @@ export const DeviceDataStream = GObject.registerClass({ const version = dataViewUint8(dataView, VERSION); const enabled = dataViewUint8(dataView, ENABLED) !== 0 && version === DATA_LAYOUT_VERSION && validData; let imuData = dataViewFloatArray(dataView, IMU_QUAT_DATA); - let smoothFollowEnabled = dataViewUint8(dataView, SMOOTH_FOLLOW_ENABLED) !== 0; + let smoothFollowEnabled = !this.legacy_follow_mode && dataViewUint8(dataView, SMOOTH_FOLLOW_ENABLED) !== 0; let smoothFollowOrigin = dataViewFloatArray(dataView, SMOOTH_FOLLOW_ORIGIN_DATA); const imuResetState = enabled && validData && imuData[0] === 0.0 && imuData[1] === 0.0 && imuData[2] === 0.0 && imuData[3] === 1.0; const customBannerEnabled = dataViewUint8(dataView, CUSTOM_BANNER_ENABLED) !== 0; diff --git a/gnome/src/extension.js b/gnome/src/extension.js index fcf860f..1fa5801 100644 --- a/gnome/src/extension.js +++ b/gnome/src/extension.js @@ -76,6 +76,7 @@ export default class BreezyDesktopExtension extends Extension { this.settings.bind('use-optimal-monitor-config',this._monitor_manager, 'use-optimal-monitor-config', Gio.SettingsBindFlags.DEFAULT); this.settings.bind('headset-as-primary', this._monitor_manager, 'headset-as-primary', Gio.SettingsBindFlags.DEFAULT); this.settings.bind('disable-physical-displays', this._monitor_manager, 'disable-physical-displays', Gio.SettingsBindFlags.DEFAULT); + this.settings.bind('legacy-follow-mode', Globals.data_stream, 'legacy-follow-mode', Gio.SettingsBindFlags.DEFAULT); this.settings.bind('debug-no-device', Globals.data_stream, 'debug-no-device', Gio.SettingsBindFlags.DEFAULT); this._breezy_desktop_running_connection = Globals.data_stream.connect('notify::breezy-desktop-running', diff --git a/ui/data/com.xronlinux.BreezyDesktop.gschema.xml b/ui/data/com.xronlinux.BreezyDesktop.gschema.xml index 77ebb59..4183167 100644 --- a/ui/data/com.xronlinux.BreezyDesktop.gschema.xml +++ b/ui/data/com.xronlinux.BreezyDesktop.gschema.xml @@ -199,6 +199,15 @@ Disable physical displays when XR effect is enabled + + + false + + Legacy follow mode + + Enable legacy follow mode + + false diff --git a/ui/po/breezydesktop.pot b/ui/po/breezydesktop.pot index 02f1ab7..2a9fa32 100644 --- a/ui/po/breezydesktop.pot +++ b/ui/po/breezydesktop.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -27,33 +27,33 @@ msgstr "" msgid "This feature is not currently supported for your device." msgstr "" -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 msgid "Set Focused Display Distance" msgstr "" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 msgid "Set All Displays Distance" msgstr "" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 msgid "Focused display" msgstr "" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 msgid "All displays" msgstr "" @@ -427,6 +427,14 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +msgid "All displays follow mode" +msgstr "" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/de.po b/ui/po/de.po index 19cd61d..3a8a7ca 100644 --- a/ui/po/de.po +++ b/ui/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-02 20:54-0700\n" "Last-Translator: \n" "Language-Team: German \n" @@ -29,36 +29,36 @@ msgstr "" msgid "This feature is not currently supported for your device." msgstr "Diese Funktion wird von Ihrem Gerät derzeit nicht unterstützt." -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "Display-Entfernung" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "Display-Entfernung" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "Display-Entfernung" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "Gebogenes Display" @@ -454,6 +454,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "Gebogenes Display" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/es.po b/ui/po/es.po index 0056aa5..d208a0a 100644 --- a/ui/po/es.po +++ b/ui/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-02 20:55-0700\n" "Last-Translator: \n" "Language-Team: Spanish \n" @@ -28,36 +28,36 @@ msgstr "" msgid "This feature is not currently supported for your device." msgstr "Esta función no es compatible con tu dispositivo en este momento." -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "Distancia de la pantalla" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "Distancia de la pantalla" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "Distancia de la pantalla" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "Pantalla curvada" @@ -454,6 +454,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "Pantalla curvada" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/fr.po b/ui/po/fr.po index 65d00cc..b430734 100644 --- a/ui/po/fr.po +++ b/ui/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-02 20:54-0700\n" "Last-Translator: \n" "Language-Team: French \n" @@ -31,36 +31,36 @@ msgstr "" "Cette fonctionnalité n'est actuellement pas prise en charge par votre " "appareil." -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "Distance d'affichage" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "Distance d'affichage" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "Distance d'affichage" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "Affichage incurvé" @@ -457,6 +457,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "Affichage incurvé" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/it.po b/ui/po/it.po index 0a9d4a1..56c5558 100644 --- a/ui/po/it.po +++ b/ui/po/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-02 21:14-0700\n" "Last-Translator: \n" "Language-Team: Italian \n" @@ -29,36 +29,36 @@ msgstr "" msgid "This feature is not currently supported for your device." msgstr "Questa funzione non è attualmente supportata sul tuo dispositivo." -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "Distanza del display" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "Distanza del display" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "Distanza del display" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "Display curvo" @@ -456,6 +456,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "Display curvo" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/ja.po b/ui/po/ja.po index 227342c..2ec7232 100644 --- a/ui/po/ja.po +++ b/ui/po/ja.po @@ -11,7 +11,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-02 20:55-0700\n" "Last-Translator: \n" "Language-Team: Japanese \n" @@ -31,36 +31,36 @@ msgstr "メガネを3Dモードに切り替え、表示の幅を2倍にします msgid "This feature is not currently supported for your device." msgstr "現在接続されているデバイスはこの機能に対応していません。" -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "ディスプレイ距離" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "ディスプレイ距離" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "ディスプレイ距離" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "曲面ディスプレイ" @@ -454,6 +454,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "曲面ディスプレイ" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/pl.po b/ui/po/pl.po index 9bcfefd..771484d 100644 --- a/ui/po/pl.po +++ b/ui/po/pl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-16 10:26-0700\n" "Last-Translator: \n" "Language-Team: Polish \n" @@ -28,33 +28,33 @@ msgstr "" msgid "This feature is not currently supported for your device." msgstr "" -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 msgid "Set Focused Display Distance" msgstr "" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 msgid "Set All Displays Distance" msgstr "" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 msgid "Focused display" msgstr "" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 msgid "All displays" msgstr "" @@ -428,6 +428,14 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +msgid "All displays follow mode" +msgstr "" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/pt_BR.po b/ui/po/pt_BR.po index 0ee992e..8000ee5 100644 --- a/ui/po/pt_BR.po +++ b/ui/po/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-19 09:39-0700\n" "Last-Translator: \n" "Language-Team: Brazilian Portuguese \n" "Language-Team: Russian \n" @@ -29,36 +29,36 @@ msgstr "" msgid "This feature is not currently supported for your device." msgstr "Эта функция в настоящее время не поддерживается для вашего устройства." -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "Расстояние дисплея" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "Расстояние дисплея" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "Расстояние дисплея" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "Изогнутый дисплей" @@ -452,6 +452,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "Изогнутый дисплей" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/sv.po b/ui/po/sv.po index d6a90ba..826fcc9 100644 --- a/ui/po/sv.po +++ b/ui/po/sv.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-16 10:31-0700\n" "Last-Translator: \n" "Language-Team: Swedish \n" @@ -29,36 +29,36 @@ msgstr "" msgid "This feature is not currently supported for your device." msgstr "Din enhet stöder inte den här funktionen för tillfället." -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "Avstånd till skärmen" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "Avstånd till skärmen" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "Avstånd till skärmen" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "Böjd skärm" @@ -449,6 +449,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "Böjd skärm" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/uk_UA.po b/ui/po/uk_UA.po index 9e57ba6..810e3b8 100644 --- a/ui/po/uk_UA.po +++ b/ui/po/uk_UA.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-17 10:08-0700\n" "Last-Translator: \n" "Language-Team: Ukrainian \n" @@ -28,36 +28,36 @@ msgstr "Переключає окуляри в режим «бок о бок» msgid "This feature is not currently supported for your device." msgstr "Ця функція наразі не підтримується на вашому пристрої." -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "Відстань дисплея" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "Відстань дисплея" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "Відстань дисплея" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "Викривлений дисплей" @@ -450,6 +450,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "Викривлений дисплей" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/po/zh_CN.po b/ui/po/zh_CN.po index 9dea24e..28b82f1 100644 --- a/ui/po/zh_CN.po +++ b/ui/po/zh_CN.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-03-06 15:32-0800\n" +"POT-Creation-Date: 2025-03-06 19:45-0800\n" "PO-Revision-Date: 2024-08-02 20:55-0700\n" "Last-Translator: \n" "Language-Team: Chinese (simplified) \n" @@ -26,36 +26,36 @@ msgstr "切换到并排模式,并将显示宽度翻倍。" msgid "This feature is not currently supported for your device." msgstr "您的设备目前不支援此功能。" -#: src/connecteddevice.py:125 +#: src/connecteddevice.py:127 #, fuzzy msgid "Set Focused Display Distance" msgstr "显示距离" -#: src/connecteddevice.py:126 +#: src/connecteddevice.py:128 msgid "Use a closer value so the display zooms in when you look at it." msgstr "" -#: src/connecteddevice.py:133 +#: src/connecteddevice.py:135 #, fuzzy msgid "Set All Displays Distance" msgstr "显示距离" -#: src/connecteddevice.py:134 +#: src/connecteddevice.py:136 msgid "Use a farther value so the displays are zoomed out when you look away." msgstr "" -#: src/connecteddevice.py:232 +#: src/connecteddevice.py:234 msgid "" "Unable to add virtual displays on this machine. xdg-desktop-portal is " "required." msgstr "" -#: src/connecteddevice.py:266 +#: src/connecteddevice.py:268 #, fuzzy msgid "Focused display" msgstr "显示距离" -#: src/connecteddevice.py:272 +#: src/connecteddevice.py:274 #, fuzzy msgid "All displays" msgstr "曲面显示" @@ -440,6 +440,15 @@ msgstr "" msgid "Enables double-tap to recenter and triple-tap to recalibrate." msgstr "" +#: src/gtk/connected-device.ui:606 +#, fuzzy +msgid "All displays follow mode" +msgstr "曲面显示" + +#: src/gtk/connected-device.ui:607 +msgid "Follow mode moves all displays, not just the focused one." +msgstr "" + #: src/gtk/display-distance-dialog.ui:9 msgid "Show full range" msgstr "" diff --git a/ui/src/connecteddevice.py b/ui/src/connecteddevice.py index 465a790..c8fb6a6 100644 --- a/ui/src/connecteddevice.py +++ b/ui/src/connecteddevice.py @@ -56,6 +56,7 @@ class ConnectedDevice(Gtk.Box): text_scaling_scale = Gtk.Template.Child() text_scaling_adjustment = Gtk.Template.Child() enable_multi_tap_switch = Gtk.Template.Child() + legacy_follow_mode_switch = Gtk.Template.Child() monitor_wrapping_scheme_menu = Gtk.Template.Child() monitor_spacing_scale = Gtk.Template.Child() monitor_spacing_adjustment = Gtk.Template.Child() @@ -102,6 +103,7 @@ class ConnectedDevice(Gtk.Box): self.settings.bind('use-highest-refresh-rate', self.use_highest_refresh_rate_switch, 'active', Gio.SettingsBindFlags.DEFAULT) # self.settings.bind('fast-sbs-mode-switching', self.fast_sbs_mode_switch, 'active', Gio.SettingsBindFlags.DEFAULT) self.settings.bind('look-ahead-override', self.movement_look_ahead_adjustment, 'value', Gio.SettingsBindFlags.DEFAULT) + self.settings.bind('legacy-follow-mode', self.legacy_follow_mode_switch, 'active', Gio.SettingsBindFlags.DEFAULT) self.settings.bind('monitor-spacing', self.monitor_spacing_adjustment, 'value', Gio.SettingsBindFlags.DEFAULT) self.settings.bind('viewport-offset-x', self.viewport_offset_x_adjustment, 'value', Gio.SettingsBindFlags.DEFAULT) self.settings.bind('viewport-offset-y', self.viewport_offset_y_adjustment, 'value', Gio.SettingsBindFlags.DEFAULT) diff --git a/ui/src/gtk/connected-device.ui b/ui/src/gtk/connected-device.ui index d5caea1..b4faacd 100644 --- a/ui/src/gtk/connected-device.ui +++ b/ui/src/gtk/connected-device.ui @@ -601,6 +601,17 @@ + + + All displays follow mode + Follow mode moves all displays, not just the focused one. + + + 3 + + + + diff --git a/ui/src/window.py b/ui/src/window.py index 330e743..e537222 100644 --- a/ui/src/window.py +++ b/ui/src/window.py @@ -101,6 +101,11 @@ class BreezydesktopWindow(Gtk.ApplicationWindow): else: self.main_content.append(self.connected_device) self.connected_device.set_device_name(state_manager.connected_device_name) + + self.set_resizable(True) + self.set_default_size(1, 1) + + return False def _on_license_button_clicked(self, widget): dialog = LicenseDialog()