From d8c1050b29a5045f3c963948b3cb832938058042 Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Fri, 3 Feb 2023 11:11:43 +0200 Subject: implement margins for all directions --- src/config.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 88e94c8..33cb4f7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -26,7 +26,10 @@ pub struct Config { // font and size pub font: Font, pub height: u32, - pub vertical_margin: u32, + pub margin_top: i32, + pub margin_bottom: i32, + pub margin_left: i32, + pub margin_right: i32, pub separator_width: f64, pub tags_r: f64, pub tags_padding: f64, @@ -58,7 +61,10 @@ impl Default for Config { tag_inactive_bg: Color::from_rgba_hex(0x282828ff), font: Font::new("monospace 10"), height: 24, - vertical_margin: 0, + margin_top: 0, + margin_bottom: 0, + margin_left: 0, + margin_right: 0, separator_width: 2.0, tags_r: 0.0, tags_padding: 25.0, -- cgit v1.3.1