mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-14 18:38:11 +02:00
Graph: options for depth colours and dot sizes
This commit is contained in:
1 parent
cc7d624a57
commit
0372a73dd2
8 files changed
+78
-11
No files matched your search
+9
-1
@@ -120,6 +120,10 @@ def ShowSettingsDialog(TheApp: App, OnSaved: Callable[[bool], None], StartCatego
|
||||
# Graph.
|
||||
GraphDirectoriesSwitch = ft.Switch(label="Show directories (off: only files and the links between them)",
|
||||
value=Config.GraphShowDirectories)
|
||||
ColourByDepthSwitch = ft.Switch(label="Colour directories by depth (off: all purple)",
|
||||
value=Config.GraphColourByDepth)
|
||||
ShrinkByDepthSwitch = ft.Switch(label="Smaller directory dots the deeper they are",
|
||||
value=Config.GraphShrinkByDepth)
|
||||
PanButtonPicker = ft.RadioGroup(
|
||||
ft.Column([
|
||||
ft.Radio(value="Right", label="Right (left-click opens a dot)"),
|
||||
@@ -217,9 +221,11 @@ def ShowSettingsDialog(TheApp: App, OnSaved: Callable[[bool], None], StartCatego
|
||||
OwnAppearance,
|
||||
], spacing=12, scroll=ft.ScrollMode.AUTO),
|
||||
"Graph": ft.Column([
|
||||
_Note("The graph view (Ctrl+G): directories in the heading colours by depth, files white, "
|
||||
_Note("The graph view (Ctrl+G): directories purple or in the heading colours by depth, files white, "
|
||||
"joined to their directory and to the files that reference them."),
|
||||
GraphDirectoriesSwitch,
|
||||
ColourByDepthSwitch,
|
||||
ShrinkByDepthSwitch,
|
||||
ft.Divider(height=1, color=Palette.Surface1),
|
||||
ft.Text("Pan with mouse button"),
|
||||
PanButtonPicker,
|
||||
@@ -261,6 +267,8 @@ def ShowSettingsDialog(TheApp: App, OnSaved: Callable[[bool], None], StartCatego
|
||||
Config.ShowFilesInTree = TreeFilesSwitch.value
|
||||
Config.MarkdownEditing = MarkdownEditingPicker.value or Config.MarkdownEditing
|
||||
Config.GraphShowDirectories = GraphDirectoriesSwitch.value
|
||||
Config.GraphColourByDepth = ColourByDepthSwitch.value
|
||||
Config.GraphShrinkByDepth = ShrinkByDepthSwitch.value
|
||||
Config.GraphPanButton = PanButtonPicker.value or Config.GraphPanButton
|
||||
Config.FontSize = _ReadInt(FontSizeField, Config.FontSize, 8, 32)
|
||||
Config.Mode = ModePicker.value or Config.Mode
|
||||
|
||||
Reference in new issue
Block a user