@@ -7,7 +7,6 @@ pub use crate::gui::views::list::{List as AppsView, LoadingState as ListLoadingS
77use crate :: gui:: { Message , style, widgets:: text} ;
88use iced:: widget:: { Space , button, container, pick_list, row, tooltip} ;
99use iced:: { Alignment , Element , Font , Length , Renderer , alignment, font} ;
10-
1110/// resources/assets/icons.ttf, loaded in [`crate::gui::UadGui`]
1211pub const ICONS : Font = Font {
1312 family : font:: Family :: Name ( "icomoon" ) ,
@@ -28,12 +27,24 @@ pub fn nav_menu<'a>(
2827 )
2928 . on_press ( Message :: RefreshButtonPressed ) ;
3029
31- let apps_refresh_tooltip = tooltip ( apps_refresh_btn, "Refresh apps" , tooltip:: Position :: Bottom )
32- . style ( style:: Container :: Tooltip )
33- . gap ( 4 ) ;
30+ let apps_refresh_tooltip = tooltip (
31+ apps_refresh_btn,
32+ "Refresh apps (Ctrl+Shift+5)" ,
33+ tooltip:: Position :: Bottom ,
34+ )
35+ . style ( style:: Container :: Tooltip )
36+ . gap ( 4 ) ;
3437
3538 let reboot_btn = button_primary ( "Reboot" ) . on_press ( Message :: RebootButtonPressed ) ;
3639
40+ let reboot_btn = tooltip (
41+ reboot_btn,
42+ "Reboot device (Ctrl+Shift+R)" ,
43+ tooltip:: Position :: Bottom ,
44+ )
45+ . style ( style:: Container :: Tooltip )
46+ . gap ( 4 ) ;
47+
3748 let uad_version_text = if let Some ( r) = & self_update_state. latest_release {
3849 match self_update_state. status {
3950 SelfUpdateStatus :: Failed => text ( format ! ( "Failed to update to {}" , r. tag_name) ) ,
@@ -60,8 +71,16 @@ pub fn nav_menu<'a>(
6071
6172 let apps_btn = button_primary ( "Apps" ) . on_press ( Message :: AppsPress ) ;
6273
74+ let apps_btn = tooltip ( apps_btn, "(Ctrl+Shift+A)" , tooltip:: Position :: Bottom )
75+ . style ( style:: Container :: Tooltip )
76+ . gap ( 4 ) ;
77+
6378 let about_btn = button_primary ( "About" ) . on_press ( Message :: AboutPressed ) ;
6479
80+ let about_btn = tooltip ( about_btn, "(Ctrl+Shift+I)" , tooltip:: Position :: Bottom )
81+ . style ( style:: Container :: Tooltip )
82+ . gap ( 4 ) ;
83+
6584 let settings_btn = button_primary (
6685 text ( "\u{E994} " )
6786 . font ( ICONS )
@@ -70,6 +89,10 @@ pub fn nav_menu<'a>(
7089 )
7190 . on_press ( Message :: SettingsPressed ) ;
7291
92+ let settings_btn = tooltip ( settings_btn, "(Ctrl+Shift+S)" , tooltip:: Position :: Bottom )
93+ . style ( style:: Container :: Tooltip )
94+ . gap ( 4 ) ;
95+
7396 let device_list_text = match apps_view. loading_state {
7497 ListLoadingState :: FindingPhones => text ( "Finding connected devices..." ) ,
7598 _ => text ( "No devices/emulators found" ) ,
0 commit comments