@@ -683,14 +683,14 @@ impl MyApp {
683683 ui. label ( "Number of plots [#]: " ) ;
684684
685685 ui. horizontal ( |ui| {
686- if ui. button ( "<" ) . clicked ( ) {
686+ if ui. button ( egui :: RichText :: new ( egui_phosphor :: regular :: ARROW_FAT_LEFT . to_string ( ) ) ) . clicked ( ) {
687687 self . serial_devices . number_of_plots [ self . device_idx ] =
688688 ( self . serial_devices . number_of_plots [ self . device_idx ] - 1 ) . clamp ( 1 , 10 ) ;
689689 }
690690 ui. add ( egui:: DragValue :: new ( & mut self . serial_devices . number_of_plots [ self . device_idx ] )
691691 . clamp_range ( 1 ..=10 ) )
692692 . on_hover_text ( "Select the number of plots to be shown." ) ;
693- if ui. button ( ">" ) . clicked ( ) {
693+ if ui. button ( egui :: RichText :: new ( egui_phosphor :: regular :: ARROW_FAT_RIGHT . to_string ( ) ) ) . clicked ( ) {
694694 self . serial_devices . number_of_plots [ self . device_idx ] =
695695 ( self . serial_devices . number_of_plots [ self . device_idx ] + 1 ) . clamp ( 1 , 10 ) ;
696696 }
@@ -714,7 +714,7 @@ impl MyApp {
714714 ui. end_row ( ) ;
715715 ui. end_row ( ) ;
716716
717- if ui. button ( " Save CSV")
717+ if ui. button ( egui :: RichText :: new ( format ! ( "{} Save CSV", egui_phosphor :: regular :: FLOPPY_DISK ) ) )
718718 . on_hover_text ( "Save Plot Data to CSV." )
719719 . clicked ( ) || ui. input_mut ( |i| i. consume_shortcut ( & SAVE_FILE_SHORTCUT ) )
720720 {
@@ -738,15 +738,15 @@ impl MyApp {
738738 } ;
739739
740740 if ui
741- . button ( " Save Plot")
741+ . button ( egui :: RichText :: new ( format ! ( "{} Save Plot", egui_phosphor :: regular :: FLOPPY_DISK ) ) )
742742 . on_hover_text ( "Save an image of the Plot." )
743743 . clicked ( ) || ui. input_mut ( |i| i. consume_shortcut ( & SAVE_PLOT_SHORTCUT ) )
744744
745745 {
746746 ctx. send_viewport_cmd ( egui:: ViewportCommand :: Screenshot ) ;
747747 }
748748 ui. end_row ( ) ;
749- if ui. button ( " Clear Data")
749+ if ui. button ( egui :: RichText :: new ( format ! ( "{} Clear Data", egui_phosphor :: regular :: X ) ) )
750750 . on_hover_text ( "Clear Data from Plot." )
751751 . clicked ( ) || ui. input_mut ( |i| i. consume_shortcut ( & CLEAR_PLOT_SHORTCUT ) ) {
752752 print_to_console (
0 commit comments