@@ -140,15 +140,15 @@ fn widgets() -> Box<dyn SetDisabled> {
140
140
#[ widget] bi = Row :: new_vec( vec![
141
141
Button :: new_msg( img_light. clone( ) , Item :: Theme ( "light" ) )
142
142
. with_color( "#B38DF9" . parse( ) . unwrap( ) )
143
- . with_keys( & [ VK :: L ] ) ,
143
+ . with_keys( & [ VK :: P ] ) ,
144
144
Button :: new_msg( img_light, Item :: Theme ( "blue" ) )
145
145
. with_color( "#7CDAFF" . parse( ) . unwrap( ) )
146
- . with_keys( & [ VK :: L ] ) ,
146
+ . with_keys( & [ VK :: B ] ) ,
147
147
Button :: new_msg( img_dark, Item :: Theme ( "dark" ) )
148
148
. with_color( "#E77346" . parse( ) . unwrap( ) )
149
149
. with_keys( & [ VK :: K ] ) ,
150
150
] ) ,
151
- #[ widget] cb = CheckButton :: new( "&Check me" )
151
+ #[ widget] cb = CheckButton :: new( "Chec&k me" )
152
152
. with_state( true )
153
153
. on_toggle( |mgr, check| mgr. push_msg( Item :: Check ( check) ) ) ,
154
154
#[ widget] rb = RadioButton :: new( "radio button &1" , radio. clone( ) )
@@ -311,9 +311,9 @@ fn filter_list() -> Box<dyn SetDisabled> {
311
311
#[ derive( Debug ) ]
312
312
struct {
313
313
core: widget_core!( ) ,
314
- #[ widget] r0 = RadioButton :: new_msg( "none " , r. clone( ) , SelectionMode :: None ) . with_state( true ) ,
315
- #[ widget] r1 = RadioButton :: new_msg( "single " , r. clone( ) , SelectionMode :: Single ) ,
316
- #[ widget] r2 = RadioButton :: new_msg( "multiple" , r, SelectionMode :: Multiple ) ,
314
+ #[ widget] r0 = RadioButton :: new_msg( "&n&one " , r. clone( ) , SelectionMode :: None ) . with_state( true ) ,
315
+ #[ widget] r1 = RadioButton :: new_msg( "s&ingle " , r. clone( ) , SelectionMode :: Single ) ,
316
+ #[ widget] r2 = RadioButton :: new_msg( "& multiple" , r, SelectionMode :: Multiple ) ,
317
317
#[ widget] filter = EditBox :: new( "" )
318
318
. on_edit( move |s, mgr| filter. update( mgr, & ( ) , s. to_string( ) ) ) ,
319
319
#[ widget] list: ScrollBars <MyListView > =
@@ -543,11 +543,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
543
543
core: widget_core!( ) ,
544
544
#[ widget] menubar = menubar,
545
545
#[ widget] stack: TabStack <Box <dyn SetDisabled >> = TabStack :: new( )
546
- . with_title( "Widgets" , widgets( ) ) //TODO: use img_gallery as logo
547
- . with_title( "Text editor" , editor( ) )
548
- . with_title( "List" , filter_list( ) )
549
- . with_title( "Canvas " , canvas( ) )
550
- . with_title( "Config" , config( toolkit. event_config( ) . clone( ) ) ) ,
546
+ . with_title( "& Widgets" , widgets( ) ) //TODO: use img_gallery as logo
547
+ . with_title( "& Text editor" , editor( ) )
548
+ . with_title( "& List" , filter_list( ) )
549
+ . with_title( "Can&vas " , canvas( ) )
550
+ . with_title( "& Config" , config( toolkit. event_config( ) . clone( ) ) ) ,
551
551
}
552
552
impl Widget for Self {
553
553
fn handle_message( & mut self , mgr: & mut EventMgr , _: usize ) {
0 commit comments