mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-13 18:28:14 +02:00
Graph: pan with left or right, open with the other
This commit is contained in:
1 parent
d97f82beb2
commit
cc7d624a57
8 files changed
+50
-62
No files matched your search
+4
-6
@@ -122,11 +122,10 @@ def ShowSettingsDialog(TheApp: App, OnSaved: Callable[[bool], None], StartCatego
|
||||
value=Config.GraphShowDirectories)
|
||||
PanButtonPicker = ft.RadioGroup(
|
||||
ft.Column([
|
||||
ft.Radio(value="Left", label="Left"),
|
||||
ft.Radio(value="Middle", label="Middle (click to grab, move, click again to let go)"),
|
||||
ft.Radio(value="Right", label="Right"),
|
||||
ft.Radio(value="Right", label="Right (left-click opens a dot)"),
|
||||
ft.Radio(value="Left", label="Left (right-click opens a dot)"),
|
||||
], spacing=0),
|
||||
value=Config.GraphPanButton,
|
||||
value="Left" if Config.GraphPanButton == "Left" else "Right",
|
||||
)
|
||||
|
||||
# Connection.
|
||||
@@ -224,8 +223,7 @@ def ShowSettingsDialog(TheApp: App, OnSaved: Callable[[bool], None], StartCatego
|
||||
ft.Divider(height=1, color=Palette.Surface1),
|
||||
ft.Text("Pan with mouse button"),
|
||||
PanButtonPicker,
|
||||
_Note("Scroll zooms. Flet can't follow a held middle button, so Middle works like "
|
||||
"middle-click autoscroll."),
|
||||
_Note("Scroll zooms. The other button opens the dot you click."),
|
||||
], spacing=12, scroll=ft.ScrollMode.AUTO),
|
||||
"Connection": ft.Column([
|
||||
_Note("Browse a directory on this computer, or connect to a SaraView server."),
|
||||
|
||||
Reference in new issue
Block a user