@@ -6,82 +6,94 @@ import {
66 CaseSensitive ,
77 Columns4 ,
88 Crosshair ,
9+ FlaskConical ,
910 Grip ,
1011 Languages ,
1112 ListCollapse ,
13+ MessageCircleQuestion ,
1214 Move3d ,
1315 Palette ,
1416 Ratio ,
1517 Rows4 ,
1618 Scaling ,
19+ Settings ,
1720 Space ,
1821 Spline ,
1922 Tag ,
2023 VenetianMask ,
24+ Workflow ,
2125} from "lucide-react" ;
22- import { SettingField } from "./_field" ;
26+ import { FieldGroup , SettingField } from "./_field" ;
2327export default function Visual ( ) {
2428 return (
2529 < >
26- < SettingField icon = { < Languages /> } settingKey = "language" type = "select" / >
27- < SettingField icon = { < Palette /> } settingKey = "theme " type = "select" />
28- < SettingField icon = { < Palette /> } settingKey = "uiTheme " type = "select" />
29- < SettingField icon = { < Spline /> } settingKey = "lineStyle " type = "select" />
30- { /* <SettingField icon={<Grid />} settingKey="showGrid " type="switch" /> */ }
31- < SettingField icon = { < Crosshair /> } settingKey = "isRenderCenterPointer " type = "switch" />
32- < SettingField icon = { < Rows4 /> } settingKey = "showBackgroundHorizontalLines" type = "switch" / >
33- < SettingField icon = { < Columns4 /> } settingKey = "showBackgroundVerticalLines" type = "switch" / >
34- < SettingField icon = { < Grip /> } settingKey = "showBackgroundDots " type = "switch" />
35- < SettingField icon = { < Move3d /> } settingKey = "showBackgroundCartesian " type = "switch" />
36- < SettingField icon = { < Blend /> } settingKey = "windowBackgroundAlpha " type = "slider" min = { 0 } max = { 1 } step = { 0.01 } />
37- < SettingField icon = { < Bug /> } settingKey = "showDebug " type = "switch" />
38- < SettingField icon = { < Tag /> } settingKey = "enableTagTextNodesBigDisplay " type = "switch" />
39- < SettingField icon = { < VenetianMask /> } settingKey = "protectingPrivacy" type = "switch" / >
30+ < FieldGroup title = "Basic Settings 基础设置" icon = { < Settings /> } >
31+ < SettingField icon = { < Languages /> } settingKey = "language " type = "select" />
32+ < SettingField icon = { < Palette /> } settingKey = "theme " type = "select" />
33+ < SettingField icon = { < Palette /> } settingKey = "uiTheme " type = "select" />
34+ < SettingField icon = { < AppWindowMac /> } settingKey = "useNativeTitleBar " type = "switch" />
35+ < SettingField icon = { < Blend /> } settingKey = "windowBackgroundAlpha " type = "slider" min = { 0 } max = { 1 } step = { 0.01 } />
36+ </ FieldGroup >
37+ < FieldGroup title = "Background 背景设置" icon = { < Grip /> } >
38+ < SettingField icon = { < Crosshair /> } settingKey = "isRenderCenterPointer " type = "switch" />
39+ < SettingField icon = { < Rows4 /> } settingKey = "showBackgroundHorizontalLines " type = "switch" />
40+ < SettingField icon = { < Columns4 /> } settingKey = "showBackgroundVerticalLines " type = "switch" />
41+ < SettingField icon = { < Grip /> } settingKey = "showBackgroundDots " type = "switch" />
42+ < SettingField icon = { < Move3d /> } settingKey = "showBackgroundCartesian " type = "switch" />
43+ </ FieldGroup >
4044
41- < SettingField icon = { < ListCollapse /> } settingKey = "alwaysShowDetails" type = "switch" />
42- < SettingField icon = { < AppWindowMac /> } settingKey = "useNativeTitleBar" type = "switch" />
43- < SettingField
44- icon = { < CaseSensitive /> }
45- settingKey = "entityDetailsFontSize"
46- type = "slider"
47- min = { 18 }
48- max = { 36 }
49- step = { 1 }
50- />
51- < SettingField
52- icon = { < ArrowDownNarrowWide /> }
53- settingKey = "entityDetailsLinesLimit"
54- type = "slider"
55- min = { 1 }
56- max = { 200 }
57- step = { 2 }
58- />
59- < SettingField
60- icon = { < Space /> }
61- settingKey = "entityDetailsWidthLimit"
62- type = "slider"
63- min = { 200 }
64- max = { 2000 }
65- step = { 100 }
66- />
67-
68- < SettingField icon = { < Ratio /> } settingKey = "limitCameraInCycleSpace" type = "switch" />
69- < SettingField
70- icon = { < Scaling /> }
71- settingKey = "cameraCycleSpaceSizeX"
72- type = "slider"
73- min = { 1000 }
74- max = { 10000 }
75- step = { 1000 }
76- />
77- < SettingField
78- icon = { < Scaling /> }
79- settingKey = "cameraCycleSpaceSizeY"
80- type = "slider"
81- min = { 1000 }
82- max = { 10000 }
83- step = { 1000 }
84- />
45+ < FieldGroup title = "Node & Edge 节点与连线样式" icon = { < Workflow /> } >
46+ < SettingField icon = { < Spline /> } settingKey = "lineStyle" type = "select" />
47+ < SettingField icon = { < Tag /> } settingKey = "enableTagTextNodesBigDisplay" type = "switch" />
48+ < SettingField icon = { < ListCollapse /> } settingKey = "alwaysShowDetails" type = "switch" />
49+ < SettingField
50+ icon = { < CaseSensitive /> }
51+ settingKey = "entityDetailsFontSize"
52+ type = "slider"
53+ min = { 18 }
54+ max = { 36 }
55+ step = { 1 }
56+ />
57+ < SettingField
58+ icon = { < ArrowDownNarrowWide /> }
59+ settingKey = "entityDetailsLinesLimit"
60+ type = "slider"
61+ min = { 1 }
62+ max = { 200 }
63+ step = { 2 }
64+ />
65+ < SettingField
66+ icon = { < Space /> }
67+ settingKey = "entityDetailsWidthLimit"
68+ type = "slider"
69+ min = { 200 }
70+ max = { 2000 }
71+ step = { 100 }
72+ />
73+ </ FieldGroup >
74+ < FieldGroup title = "Help 遇到问题时相关的设置" icon = { < MessageCircleQuestion /> } >
75+ < SettingField icon = { < Bug /> } settingKey = "showDebug" type = "switch" />
76+ < SettingField icon = { < VenetianMask /> } settingKey = "protectingPrivacy" type = "switch" />
77+ </ FieldGroup >
78+ < FieldGroup title = "Testing Functions 实验性功能" icon = { < FlaskConical /> } >
79+ < SettingField icon = { < Ratio /> } settingKey = "limitCameraInCycleSpace" type = "switch" />
80+ < SettingField
81+ icon = { < Scaling /> }
82+ settingKey = "cameraCycleSpaceSizeX"
83+ type = "slider"
84+ min = { 1000 }
85+ max = { 10000 }
86+ step = { 1000 }
87+ />
88+ < SettingField
89+ icon = { < Scaling /> }
90+ settingKey = "cameraCycleSpaceSizeY"
91+ type = "slider"
92+ min = { 1000 }
93+ max = { 10000 }
94+ step = { 1000 }
95+ />
96+ </ FieldGroup >
8597 </ >
8698 ) ;
8799}
0 commit comments