1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 18:51:04 +02:00

feat: ability to configure popup gap

This commit is contained in:
Jake Stanger 2023-04-07 14:36:12 +01:00
parent 55c06c4766
commit cac064f479
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
4 changed files with 22 additions and 10 deletions

View file

@ -102,6 +102,8 @@ pub struct Config {
pub height: i32,
#[serde(default)]
pub margin: MarginConfig,
#[serde(default = "default_popup_gap")]
pub popup_gap: i32,
/// GTK icon theme to use.
pub icon_theme: Option<String>,
@ -117,6 +119,10 @@ const fn default_bar_height() -> i32 {
42
}
const fn default_popup_gap() -> i32 {
5
}
pub const fn default_false() -> bool {
false
}