tony / oxwm

updates Browse files
tonybanters committed 2025-10-03 parent 98c4ade commit 91a4a5a35373f5ea4819a3151653176ccc347d4a
Showing 1 changed file with 6 additions and 5 deletions. UnifiedSplit
+6 −5 src/bar/bar.rs
@@ -135,17 +135,18 @@ impl Bar {
135 135 &SCHEME_NORMAL
136 136 };
137 137
138 - let top_padding = 8;
139 - let text_y = top_padding + self.font.ascent();
138 + let text_height = self.font.height();
139 + let top_margin = (self.height as i16 - text_height as i16) / 4; // Smaller top margin
140 + let text_y = top_margin + self.font.ascent();
140 141
141 142 self.font_draw
142 143 .draw_text(&self.font, scheme.foreground, x_position + 5, text_y, tag);
143 144
144 145 if is_selected {
145 146 let underline_height = 3;
146 - let gap_above_underline = 3;
147 - let underline_y =
148 - self.height as i16 - underline_height as i16 - gap_above_underline;
147 + let bottom_margin = 4;
148 + let underline_y = self.height as i16 - underline_height as i16 - bottom_margin;
149 +
149 150 connection.change_gc(
150 151 self.graphics_context,
151 152 &ChangeGCAux::new().foreground(scheme.border),