@@ -12,7 +12,7 @@ use bevy::{
1212            subpane_header, 
1313        } , 
1414        controls:: { 
15-             button,  checkbox,  color_swatch,  radio,  slider,  toggle_switch,  ButtonProps , 
15+             button,  checkbox,  color_swatch,  radio,  slider,  toggle_switch,  tool_button ,   ButtonProps , 
1616            ButtonVariant ,  CheckboxProps ,  SliderProps ,  ToggleSwitchProps , 
1717        } , 
1818        dark_theme:: create_dark_theme, 
@@ -222,6 +222,82 @@ fn demo_root() -> impl Scene {
222222                    SliderPrecision ( 2 ) 
223223                ) , 
224224                color_swatch( ) , 
225+             ] , 
226+             Node  { 
227+                 display:  Display :: Flex , 
228+                 flex_direction:  FlexDirection :: Column , 
229+                 align_items:  AlignItems :: Stretch , 
230+                 justify_content:  JustifyContent :: Start , 
231+                 padding:  UiRect :: all( Val :: Px ( 8.0 ) ) , 
232+                 row_gap:  Val :: Px ( 8.0 ) , 
233+                 width:  Val :: Percent ( 30. ) , 
234+                 min_width:  Val :: Px ( 200. ) , 
235+             }  [ 
236+                 ( 
237+                     : subpane [ 
238+                         : subpane_header [ 
239+                             ( Text ( "Left" )  ThemedText ) , 
240+                             ( Text ( "Center" )  ThemedText ) , 
241+                             ( Text ( "Right" )  ThemedText ) 
242+                         ] , 
243+                         : subpane_body [ 
244+                             ( Text ( "Body" )  ThemedText ) , 
245+                         ] , 
246+                     ] 
247+                 ) , 
248+                 ( 
249+                     : pane [ 
250+                         : pane_header [ 
251+                             : tool_button( ButtonProps  { 
252+                                 variant:  ButtonVariant :: Selected , 
253+                                 ..default ( ) 
254+                             } )  [ 
255+                                 ( Text ( "\u{0398} " )  ThemedText ) 
256+                             ] , 
257+                             : pane_header_divider, 
258+                             : tool_button( ButtonProps { 
259+                                 variant:  ButtonVariant :: Plain , 
260+                                 ..default ( ) 
261+                             } )  [ 
262+                                 ( Text ( "\u{00BC} " )  ThemedText ) 
263+                             ] , 
264+                             : tool_button( ButtonProps { 
265+                                 variant:  ButtonVariant :: Plain , 
266+                                 ..default ( ) 
267+                             } )  [ 
268+                                 ( Text ( "\u{00BD} " )  ThemedText ) 
269+                             ] , 
270+                             : tool_button( ButtonProps { 
271+                                 variant:  ButtonVariant :: Plain , 
272+                                 ..default ( ) 
273+                             } )  [ 
274+                                 ( Text ( "\u{00BE} " )  ThemedText ) 
275+                             ] , 
276+                             : pane_header_divider, 
277+                             : tool_button( ButtonProps { 
278+                                 variant:  ButtonVariant :: Plain , 
279+                                 ..default ( ) 
280+                             } )  [ 
281+                                 ( Text ( "\u{20AC} " )  ThemedText ) 
282+                             ] , 
283+                             : flex_spacer, 
284+                             : tool_button( ButtonProps { 
285+                                 variant:  ButtonVariant :: Plain , 
286+                                 ..default ( ) 
287+                             } )  [ 
288+                                 ( Text ( "\u{00D7} " )  ThemedText ) 
289+                             ] , 
290+                         ] , 
291+                         ( 
292+                             : pane_body [ 
293+                                 ( Text ( "Some" )  ThemedText ) , 
294+                                 ( Text ( "Content" )  ThemedText ) , 
295+                                 ( Text ( "Here" )  ThemedText ) , 
296+                             ] 
297+                             BackgroundColor ( palettes:: tailwind:: EMERALD_800 ) 
298+                         ) , 
299+                     ] 
300+                 ) 
225301            ] 
226302        ] 
227303    } 
0 commit comments