Merge pull request #103 from JakeStanger/feat/popup-gap-config

feat: ability to configure popup gap
This commit is contained in:
Jake Stanger
2023-04-07 15:02:58 +01:00
committed by GitHub
4 changed files with 22 additions and 10 deletions

View File

@@ -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
}