mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
Merge pull request #103 from JakeStanger/feat/popup-gap-config
feat: ability to configure popup gap
This commit is contained in:
commit
4b4f1ffc21
4 changed files with 22 additions and 10 deletions
|
@ -104,6 +104,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>,
|
||||
|
@ -119,6 +121,10 @@ const fn default_bar_height() -> i32 {
|
|||
42
|
||||
}
|
||||
|
||||
const fn default_popup_gap() -> i32 {
|
||||
5
|
||||
}
|
||||
|
||||
pub const fn default_false() -> bool {
|
||||
false
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue