mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
add icon to open folder button in toolbox preferences
This commit is contained in:
@@ -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<ToolboxContainer>
|
||||
}
|
||||
@@ -88,8 +91,8 @@ impl Widgets<ToolboxSettingsDialogModel, AppModel> 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),
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user