mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
refactor: make icon overrides bar-level and apply to focused module
This commit is contained in:
parent
87c680122b
commit
d1b4af4710
7 changed files with 24 additions and 12 deletions
|
@ -290,6 +290,12 @@ pub struct BarConfig {
|
|||
/// **Default**: `null`
|
||||
pub icon_theme: Option<String>,
|
||||
|
||||
/// Map of app IDs (or classes) to icon names,
|
||||
/// overriding the app's default icon.
|
||||
///
|
||||
/// **Default**; `null`
|
||||
pub icon_overrides: Option<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.
|
||||
///
|
||||
|
@ -338,6 +344,7 @@ impl Default for BarConfig {
|
|||
start_hidden: None,
|
||||
autohide: None,
|
||||
icon_theme: None,
|
||||
icon_overrides: None,
|
||||
start: Some(vec![ModuleConfig::Label(
|
||||
LabelModule::new("ℹ️ Using default config".to_string()).into(),
|
||||
)]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue