@@ -64,74 +64,79 @@ export SettingsView := VerticalBox {
6464 Palette.themeLighterAlt = #eff6fc ;
6565 }
6666 }
67+ VerticalBox {
68+ alignment : start;
6769
68- GroupBox {
69- title : "Similar pictures" ;
70-
71- VerticalBox {
72- alignment : start;
70+ GroupBox {
71+ title : "Similar pictures" ;
7372
7473 HorizontalBox {
7574 alignment : start;
76-
77- GridLayout {
78- spacing : 5px ;
79- use-timestamps-checkbox := CheckBox {
80- text : "Use timestamps" ;
81- toggled => {
82- recheck-similarities ();
75+
76+ Rectangle {
77+ border-width : 1px ;
78+ border-color : Palette.neutralPrimary;
79+
80+ GridLayout {
81+ padding : 10px ;
82+ spacing : 5px ;
83+ use-timestamps-checkbox := CheckBox {
84+ text : "Use timestamps" ;
85+ toggled => {
86+ recheck-similarities ();
87+ }
8388 }
84- }
85- Text {
86- text : "⇔ Maximum timestamp difference (s): " ;
87- vertical -alignment : center ;
88- horizontal-alignment : right;
89- }
90- timestamp-difference-edit := LineEdit {
91- text : "5" ;
92- width : 50px ;
93- enabled : use-timestamps-checkbox.checked;
94- accepted => {
95- recheck-similarities ();
89+ Text {
90+ text : "⇔ Maximum timestamp difference (s): " ;
91+ vertical-alignment : center;
92+ horizontal -alignment : right ;
93+ }
94+ timestamp-difference-edit := LineEdit {
95+ text : "5" ;
96+ width : 50px ;
97+ enabled : use-timestamps-checkbox.checked ;
98+ accepted => {
99+ recheck-similarities ();
100+ }
96101 }
97- }
98102
99- use-similarity-checkbox := CheckBox {
100- text : "Use image similarity" ;
101- toggled => {
102- recheck-similarities ();
103+ use-similarity-checkbox := CheckBox {
104+ text : "Use image similarity" ;
105+ toggled => {
106+ recheck-similarities ();
107+ }
108+ row : 1 ;
103109 }
104- row : 1 ;
105- }
106- Text {
107- text : "Sensitivity: " ;
108- vertical-alignment : center;
109- horizontal-alignment : right;
110- }
111- sensitivity-combobox := ComboBox {
112- model : ["Very low" , "Low" , "Medium" , "High" , "Very high" ];
113- current-value : "Medium" ;
114- enabled : use-similarity-checkbox.checked;
115- selected => {
116- recheck-similarities ();
110+ Text {
111+ text : "Sensitivity: " ;
112+ vertical-alignment : center;
113+ horizontal-alignment : right;
117114 }
118- }
119- Text {
120- text : "Dark mode: " ;
121- vertical-alignment : center;
122- horizontal-alignment : right;
123- row : 3 ;
124- }
125- dark-mode := ComboBox {
126- model : ["Automatic" , "On" , "Off" ];
127- current-value : "Automatic" ;
128- selected => {
129- apply-dark-mode ();
115+ sensitivity-combobox := ComboBox {
116+ model : ["Very low" , "Low" , "Medium" , "High" , "Very high" ];
117+ current-value : "Medium" ;
118+ enabled : use-similarity-checkbox.checked;
119+ selected => {
120+ recheck-similarities ();
121+ }
122+ }
123+ Text {
124+ text : "Dark mode: " ;
125+ vertical-alignment : center;
126+ horizontal-alignment : right;
127+ row : 3 ;
130128 }
131- }
129+ dark-mode := ComboBox {
130+ model : ["Automatic" , "On" , "Off" ];
131+ current-value : "Automatic" ;
132+ selected => {
133+ apply-dark-mode ();
134+ }
135+ }
136+ }
132137 }
133- }
134- }
138+ }
139+ }
135140 }
136141 HorizontalBox {
137142 TouchArea {
0 commit comments