@@ -6,10 +6,11 @@ use iced::Pixels;
66use iced:: border:: Radius ;
77use iced:: keyboard:: Modifiers ;
88use iced:: widget:: text;
9- use iced_fonts:: bootstrap:: arrow_return_left;
10- use iced_fonts:: bootstrap:: command;
11- use iced_fonts:: bootstrap:: option;
12- use iced_fonts:: bootstrap:: shift;
9+ use iced_fonts:: lucide:: arrow_big_up;
10+ use iced_fonts:: lucide:: chevron_up;
11+ use iced_fonts:: lucide:: command;
12+ use iced_fonts:: lucide:: corner_down_left;
13+ use iced_fonts:: lucide:: option;
1314
1415pub fn padding (
1516 top : impl Into < Pixels > ,
@@ -50,65 +51,63 @@ pub fn shortcut_to_text<'a, Message, Theme: text::Catalog + 'a>(
5051 let ( key_name, show_shift) = match shortcut. physical_key {
5152 PhysicalKey :: Enter => {
5253 let key_name = if cfg ! ( target_os = "macos" ) {
53- arrow_return_left ( ) . into ( )
54+ corner_down_left ( ) . size ( 14 ) . into ( )
5455 } else {
55- text ( "Enter" ) . into ( )
56+ text ( "Enter" ) . size ( 15 ) . into ( )
5657 } ;
5758
5859 ( key_name, shortcut. modifier_shift )
5960 }
6061 _ => {
6162 let ( key_name, show_shift) = physical_key_name ( & shortcut. physical_key , shortcut. modifier_shift ) ;
6263
63- let key_name: Element < _ , _ > = text ( key_name) . into ( ) ;
64+ let key_name: Element < _ , _ > = text ( key_name) . size ( 15 ) . into ( ) ;
6465
6566 ( key_name, show_shift)
6667 }
6768 } ;
6869
6970 let alt_modifier_text = if shortcut. modifier_alt {
7071 if cfg ! ( target_os = "macos" ) {
71- Some ( option ( ) . into ( ) )
72+ Some ( option ( ) . size ( 15 ) . into ( ) )
7273 } else {
73- Some ( text ( "Alt" ) . into ( ) )
74+ Some ( text ( "Alt" ) . size ( 15 ) . into ( ) )
7475 }
7576 } else {
7677 None
7778 } ;
7879
7980 let meta_modifier_text = if shortcut. modifier_meta {
8081 if cfg ! ( target_os = "macos" ) {
81- Some ( command ( ) . into ( ) )
82+ Some ( command ( ) . size ( 13 ) . into ( ) )
8283 } else if cfg ! ( target_os = "windows" ) {
8384 Some (
8485 text ( "Win" ) // is it possible to have shortcuts that use win?
86+ . size ( 15 )
8587 . into ( ) ,
8688 )
8789 } else {
88- Some ( text ( "Super" ) . into ( ) )
90+ Some ( text ( "Super" ) . size ( 15 ) . into ( ) )
8991 }
9092 } else {
9193 None
9294 } ;
9395
9496 let control_modifier_text = if shortcut. modifier_control {
9597 if cfg ! ( target_os = "macos" ) {
96- Some (
97- text ( "^" ) // TODO bootstrap doesn't have proper macos ctrl icon
98- . into ( ) ,
99- )
98+ Some ( chevron_up ( ) . size ( 15 ) . into ( ) )
10099 } else {
101- Some ( text ( "Ctrl" ) . into ( ) )
100+ Some ( text ( "Ctrl" ) . size ( 15 ) . into ( ) )
102101 }
103102 } else {
104103 None
105104 } ;
106105
107106 let shift_modifier_text = if show_shift && shortcut. modifier_shift {
108107 if cfg ! ( target_os = "macos" ) {
109- Some ( shift ( ) . into ( ) )
108+ Some ( arrow_big_up ( ) . size ( 17 ) . into ( ) )
110109 } else {
111- Some ( text ( "Shift" ) . into ( ) )
110+ Some ( text ( "Shift" ) . size ( 15 ) . into ( ) )
112111 }
113112 } else {
114113 None
0 commit comments