fixing underline width..
Browse files
+3 −2 src/bar/bar.rs
| @@ -159,8 +159,9 @@ impl Bar { | ||
| 159 | 159 | let bottom_margin = 4; |
| 160 | 160 | let underline_y = self.height as i16 - underline_height as i16 - bottom_margin; |
| 161 | 161 | |
| 162 | - let underline_width = text_width + 6; | |
| 163 | - let underline_x = text_x - 3; | |
| 162 | + let underline_padding = 4; | |
| 163 | + let underline_width = tag_width - underline_padding; | |
| 164 | + let underline_x = x_position + (underline_padding / 2) as i16; | |
| 164 | 165 | |
| 165 | 166 | connection.change_gc( |
| 166 | 167 | self.graphics_context, |