1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-03 11:41:04 +02:00

refactor: split bar/top-level config structs

This allows for some options which are not actually bar-level to be separated, which makes some work moving forward a little easier and keeps things cleaner.
This commit is contained in:
Jake Stanger 2024-03-29 21:48:44 +00:00
parent 4aab6d5061
commit 706e040e25
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
5 changed files with 81 additions and 56 deletions

View file

@ -331,7 +331,7 @@ fn load_output_bars(
.expect("monitor to exist");
let show_default_bar =
config.start.is_some() || config.center.is_some() || config.end.is_some();
config.bar.start.is_some() || config.bar.center.is_some() || config.bar.end.is_some();
let bars = match config
.monitors
@ -363,7 +363,7 @@ fn load_output_bars(
app,
&monitor,
monitor_name.to_string(),
config.clone(),
config.bar.clone(),
ironbar.clone(),
)?],
None => vec![],