@@ -40,17 +40,17 @@ impl PreferencesDialogMessageHandler {
4040 // NAVIGATION
4141 // ==========
4242
43- let navigation_header = vec ! [ TextLabel :: new( "Navigation" ) . italic( true ) . widget_holder ( ) ] ;
43+ let navigation_header = vec ! [ TextLabel :: new( "Navigation" ) . italic( true ) . widget_instance ( ) ] ;
4444
4545 let zoom_rate_description = "Adjust how fast zooming occurs when using the scroll wheel or pinch gesture (relative to a default of 50)." ;
4646 let zoom_rate_label = vec ! [
47- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
48- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
49- TextLabel :: new( "Zoom Rate" ) . tooltip_label( "Zoom Rate" ) . tooltip_description( zoom_rate_description) . widget_holder ( ) ,
47+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
48+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
49+ TextLabel :: new( "Zoom Rate" ) . tooltip_label( "Zoom Rate" ) . tooltip_description( zoom_rate_description) . widget_instance ( ) ,
5050 ] ;
5151 let zoom_rate = vec ! [
52- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
53- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
52+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
53+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
5454 NumberInput :: new( Some ( map_zoom_rate_to_display( preferences. viewport_zoom_wheel_rate) ) )
5555 . tooltip_label( "Zoom Rate" )
5656 . tooltip_description( zoom_rate_description)
@@ -66,14 +66,14 @@ impl PreferencesDialogMessageHandler {
6666 PreferencesMessage :: ViewportZoomWheelRate { rate: VIEWPORT_ZOOM_WHEEL_RATE } . into( )
6767 }
6868 } )
69- . widget_holder ( ) ,
69+ . widget_instance ( ) ,
7070 ] ;
7171
7272 let checkbox_id = CheckboxId :: new ( ) ;
7373 let zoom_with_scroll_description = "Use the scroll wheel for zooming instead of vertically panning (not recommended for trackpads)." ;
7474 let zoom_with_scroll = vec ! [
75- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
76- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
75+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
76+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
7777 CheckboxInput :: new( preferences. zoom_with_scroll)
7878 . tooltip_label( "Zoom with Scroll" )
7979 . tooltip_description( zoom_with_scroll_description)
@@ -84,25 +84,25 @@ impl PreferencesDialogMessageHandler {
8484 . into( )
8585 } )
8686 . for_label( checkbox_id)
87- . widget_holder ( ) ,
87+ . widget_instance ( ) ,
8888 TextLabel :: new( "Zoom with Scroll" )
8989 . tooltip_label( "Zoom with Scroll" )
9090 . tooltip_description( zoom_with_scroll_description)
9191 . for_checkbox( checkbox_id)
9292 . table_align( true )
93- . widget_holder ( ) ,
93+ . widget_instance ( ) ,
9494 ] ;
9595
9696 // =======
9797 // EDITING
9898 // =======
9999
100- let editing_header = vec ! [ TextLabel :: new( "Editing" ) . italic( true ) . widget_holder ( ) ] ;
100+ let editing_header = vec ! [ TextLabel :: new( "Editing" ) . italic( true ) . widget_instance ( ) ] ;
101101
102102 let selection_label = vec ! [
103- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
104- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
105- TextLabel :: new( "Selection" ) . widget_holder ( ) ,
103+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
104+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
105+ TextLabel :: new( "Selection" ) . widget_instance ( ) ,
106106 ] ;
107107
108108 let selection_mode = RadioInput :: new ( vec ! [
@@ -138,27 +138,27 @@ impl PreferencesDialogMessageHandler {
138138 } ) ,
139139 ] )
140140 . selected_index ( Some ( preferences. selection_mode as u32 ) )
141- . widget_holder ( ) ;
141+ . widget_instance ( ) ;
142142 let selection_mode = vec ! [
143- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
144- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
143+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
144+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
145145 selection_mode,
146146 ] ;
147147
148148 // ============
149149 // EXPERIMENTAL
150150 // ============
151151
152- let experimental_header = vec ! [ TextLabel :: new( "Experimental" ) . italic( true ) . widget_holder ( ) ] ;
152+ let experimental_header = vec ! [ TextLabel :: new( "Experimental" ) . italic( true ) . widget_instance ( ) ] ;
153153
154154 let node_graph_section_description = "Appearance of the wires running between node connections in the graph." ;
155155 let node_graph_wires_label = vec ! [
156- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
157- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
156+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
157+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
158158 TextLabel :: new( "Node Graph Wires" )
159159 . tooltip_label( "Node Graph Wires" )
160160 . tooltip_description( node_graph_section_description)
161- . widget_holder ( ) ,
161+ . widget_instance ( ) ,
162162 ] ;
163163 let graph_wire_style = RadioInput :: new ( vec ! [
164164 RadioEntryData :: new( GraphWireStyle :: Direct . to_string( ) )
@@ -173,32 +173,32 @@ impl PreferencesDialogMessageHandler {
173173 . on_update( move |_| PreferencesMessage :: GraphWireStyle { style: GraphWireStyle :: GridAligned } . into( ) ) ,
174174 ] )
175175 . selected_index ( Some ( preferences. graph_wire_style as u32 ) )
176- . widget_holder ( ) ;
176+ . widget_instance ( ) ;
177177 let graph_wire_style = vec ! [
178- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
179- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
178+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
179+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
180180 graph_wire_style,
181181 ] ;
182182
183183 let checkbox_id = CheckboxId :: new ( ) ;
184184 let vello_description = "Use the experimental Vello renderer. (Your browser must support WebGPU)." ;
185185 let use_vello = vec ! [
186- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
187- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
186+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
187+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
188188 CheckboxInput :: new( preferences. use_vello && preferences. supports_wgpu( ) )
189189 . tooltip_label( "Vello Renderer" )
190190 . tooltip_description( vello_description)
191191 . disabled( !preferences. supports_wgpu( ) )
192192 . on_update( |checkbox_input: & CheckboxInput | PreferencesMessage :: UseVello { use_vello: checkbox_input. checked } . into( ) )
193193 . for_label( checkbox_id)
194- . widget_holder ( ) ,
194+ . widget_instance ( ) ,
195195 TextLabel :: new( "Vello Renderer" )
196196 . tooltip_label( "Vello Renderer" )
197197 . tooltip_description( vello_description)
198198 . disabled( !preferences. supports_wgpu( ) )
199199 . for_checkbox( checkbox_id)
200200 . table_align( true )
201- . widget_holder ( ) ,
201+ . widget_instance ( ) ,
202202 ] ;
203203
204204 let checkbox_id = CheckboxId :: new ( ) ;
@@ -208,20 +208,20 @@ impl PreferencesDialogMessageHandler {
208208 "
209209 . trim ( ) ;
210210 let vector_meshes = vec ! [
211- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
212- Separator :: new( SeparatorType :: Unrelated ) . widget_holder ( ) ,
211+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
212+ Separator :: new( SeparatorType :: Unrelated ) . widget_instance ( ) ,
213213 CheckboxInput :: new( preferences. vector_meshes)
214214 . tooltip_label( "Vector Meshes" )
215215 . tooltip_description( vector_mesh_description)
216216 . on_update( |checkbox_input: & CheckboxInput | PreferencesMessage :: VectorMeshes { enabled: checkbox_input. checked } . into( ) )
217217 . for_label( checkbox_id)
218- . widget_holder ( ) ,
218+ . widget_instance ( ) ,
219219 TextLabel :: new( "Vector Meshes" )
220220 . tooltip_label( "Vector Meshes" )
221221 . tooltip_description( vector_mesh_description)
222222 . for_checkbox( checkbox_id)
223223 . table_align( true )
224- . widget_holder ( ) ,
224+ . widget_instance ( ) ,
225225 ] ;
226226
227227 Layout :: WidgetLayout ( WidgetLayout :: new ( vec ! [
@@ -268,8 +268,8 @@ impl PreferencesDialogMessageHandler {
268268 }
269269 . into( )
270270 } )
271- . widget_holder ( ) ,
272- TextButton :: new( "Reset to Defaults" ) . on_update( |_| PreferencesMessage :: ResetToDefaults . into( ) ) . widget_holder ( ) ,
271+ . widget_instance ( ) ,
272+ TextButton :: new( "Reset to Defaults" ) . on_update( |_| PreferencesMessage :: ResetToDefaults . into( ) ) . widget_instance ( ) ,
273273 ] ;
274274
275275 Layout :: WidgetLayout ( WidgetLayout :: new ( vec ! [ LayoutGroup :: Row { widgets } ] ) )
0 commit comments