File tree 1 file changed +5
-8
lines changed
egui_demo_lib/src/apps/demo
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -208,10 +208,11 @@ impl WidgetGallery {
208
208
ui. add ( doc_link_label ( "CollapsingHeader" , "collapsing" ) ) ;
209
209
ui. collapsing ( "Click to see what is hidden!" , |ui| {
210
210
ui. horizontal_wrapped ( |ui| {
211
- ui. label (
212
- "Not much, as it turns out - but here is a gold star for you for checking:" ,
213
- ) ;
214
- ui. colored_label ( egui:: Color32 :: GOLD , "☆" ) ;
211
+ ui. spacing_mut ( ) . item_spacing . x = 0.0 ;
212
+ ui. label ( "It's a " ) ;
213
+ ui. add ( doc_link_label ( "Spinner" , "spinner" ) ) ;
214
+ ui. add_space ( 4.0 ) ;
215
+ ui. add ( egui:: Spinner :: new ( ) ) ;
215
216
} ) ;
216
217
} ) ;
217
218
ui. end_row ( ) ;
@@ -229,10 +230,6 @@ impl WidgetGallery {
229
230
This toggle switch is just 15 lines of code.",
230
231
) ;
231
232
ui. end_row ( ) ;
232
-
233
- ui. add ( doc_link_label ( "Spinner" , "spinner" ) ) ;
234
- ui. add ( egui:: Spinner :: new ( ) ) ;
235
- ui. end_row ( ) ;
236
233
}
237
234
}
238
235
You can’t perform that action at this time.
0 commit comments