From d0349356a3a703aacd38494e44af06b8e57e5595 Mon Sep 17 00:00:00 2001 From: Hannes Kuchelmeister Date: Sun, 3 Apr 2022 11:30:11 +0200 Subject: [PATCH] add icon to open folder button in toolbox preferences --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8a05164..e1cd34d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,6 +20,9 @@ const TERMINAL_TOOLTIP : &str = r#"Open terminal inside of toolbox"#; const SETTINGS_ICON : &str = r#"applications-system-symbolic"#; const SETTINGS_TOOLTIP : &str = r#"Open toolbox settings"#; +const FOLDER_PICKER_ICON : &str = r#"folder-open-symbolic"#; +const FOLDER_PICKER_TOOLTIP : &str = r#"Select folder dialogue"#; + struct AppModel { toolboxes: FactoryVec } @@ -88,8 +91,8 @@ impl Widgets for ToolboxSettingsDialogWidg append = >k::Entry { set_hexpand: true, }, - append = >k::Button { - + append = >k::Button::from_icon_name(FOLDER_PICKER_ICON) { + set_tooltip_text: Some(FOLDER_PICKER_TOOLTIP), } } },