@@ -91,13 +91,15 @@ pub struct ConfigDraft {
9191 pub click_highlight_fill_color : ColorQuadInput ,
9292 pub click_highlight_outline_color : ColorQuadInput ,
9393
94+ pub help_font_family : String ,
9495 pub help_font_size : String ,
9596 pub help_line_height : String ,
9697 pub help_padding : String ,
9798 pub help_bg_color : ColorQuadInput ,
9899 pub help_border_color : ColorQuadInput ,
99100 pub help_border_width : String ,
100101 pub help_text_color : ColorQuadInput ,
102+ pub help_context_filter : bool ,
101103
102104 pub board_enabled : bool ,
103105 pub board_default_mode : BoardModeOption ,
@@ -512,13 +514,15 @@ impl ConfigDraft {
512514 config. ui . click_highlight . outline_color ,
513515 ) ,
514516
517+ help_font_family : config. ui . help_overlay_style . font_family . clone ( ) ,
515518 help_font_size : format_float ( config. ui . help_overlay_style . font_size ) ,
516519 help_line_height : format_float ( config. ui . help_overlay_style . line_height ) ,
517520 help_padding : format_float ( config. ui . help_overlay_style . padding ) ,
518521 help_bg_color : ColorQuadInput :: from ( config. ui . help_overlay_style . bg_color ) ,
519522 help_border_color : ColorQuadInput :: from ( config. ui . help_overlay_style . border_color ) ,
520523 help_border_width : format_float ( config. ui . help_overlay_style . border_width ) ,
521524 help_text_color : ColorQuadInput :: from ( config. ui . help_overlay_style . text_color ) ,
525+ help_context_filter : config. ui . help_overlay_context_filter ,
522526
523527 board_enabled : config. board . enabled ,
524528 board_default_mode : BoardModeOption :: from_str ( & config. board . default_mode )
@@ -812,6 +816,7 @@ impl ConfigDraft {
812816 Err ( err) => errors. push ( err) ,
813817 }
814818
819+ config. ui . help_overlay_style . font_family = self . help_font_family . trim ( ) . to_string ( ) ;
815820 parse_field (
816821 & self . help_font_size ,
817822 "ui.help_overlay_style.font_size" ,
@@ -857,6 +862,7 @@ impl ConfigDraft {
857862 Ok ( values) => config. ui . help_overlay_style . text_color = values,
858863 Err ( err) => errors. push ( err) ,
859864 }
865+ config. ui . help_overlay_context_filter = self . help_context_filter ;
860866
861867 config. board . enabled = self . board_enabled ;
862868 config. board . default_mode = self . board_default_mode . as_str ( ) . to_string ( ) ;
@@ -1007,6 +1013,7 @@ impl ConfigDraft {
10071013 ToggleField :: PerformanceVsync => self . performance_enable_vsync = value,
10081014 ToggleField :: UiShowStatusBar => self . ui_show_status_bar = value,
10091015 ToggleField :: UiShowFrozenBadge => self . ui_show_frozen_badge = value,
1016+ ToggleField :: UiHelpOverlayContextFilter => self . help_context_filter = value,
10101017 ToggleField :: UiContextMenuEnabled => self . ui_context_menu_enabled = value,
10111018 ToggleField :: UiXdgFullscreen => self . ui_xdg_fullscreen = value,
10121019 ToggleField :: UiToolbarTopPinned => self . ui_toolbar_top_pinned = value,
@@ -1114,6 +1121,7 @@ impl ConfigDraft {
11141121 TextField :: HighlightRadius => self . click_highlight_radius = value,
11151122 TextField :: HighlightOutlineThickness => self . click_highlight_outline_thickness = value,
11161123 TextField :: HighlightDurationMs => self . click_highlight_duration_ms = value,
1124+ TextField :: HelpFontFamily => self . help_font_family = value,
11171125 TextField :: HelpFontSize => self . help_font_size = value,
11181126 TextField :: HelpLineHeight => self . help_line_height = value,
11191127 TextField :: HelpPadding => self . help_padding = value,
0 commit comments