1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

refactor: address requested changes

This commit is contained in:
BowDown097 2025-02-04 09:48:10 -08:00
parent d1b4af4710
commit 40d449e011
5 changed files with 16 additions and 22 deletions

View file

@ -293,8 +293,9 @@ pub struct BarConfig {
/// Map of app IDs (or classes) to icon names,
/// overriding the app's default icon.
///
/// **Default**; `null`
pub icon_overrides: Option<HashMap<String, String>>,
/// **Default**; `{}`
#[serde(default)]
pub icon_overrides: HashMap<String, String>,
/// An array of modules to append to the start of the bar.
/// Depending on the orientation, this is either the top of the left edge.
@ -344,7 +345,7 @@ impl Default for BarConfig {
start_hidden: None,
autohide: None,
icon_theme: None,
icon_overrides: None,
icon_overrides: HashMap::default(),
start: Some(vec![ModuleConfig::Label(
LabelModule::new(" Using default config".to_string()).into(),
)]),