@@ -501,7 +501,9 @@ impl Renderer<'_> {
501501 } ;
502502 let pos = floating. position . get ( ) ;
503503 let theme = & self . state . theme ;
504- let th = theme. sizes . title_height . get ( ) ;
504+ let th = theme. title_height ( ) ;
505+ let tpuh = theme. title_plus_underline_height ( ) ;
506+ let tuh = theme. title_underline_height ( ) ;
505507 let bw = theme. sizes . border_width . get ( ) ;
506508 let bc = theme. colors . border . get ( ) ;
507509 let tc = if floating. active . get ( ) {
@@ -524,7 +526,7 @@ impl Renderer<'_> {
524526 let title = [ Rect :: new_sized ( x + bw, y + bw, pos. width ( ) - 2 * bw, th) . unwrap ( ) ] ;
525527 self . base . fill_boxes ( & title, & tc, srgb) ;
526528 let title_underline =
527- [ Rect :: new_sized ( x + bw, y + bw + th, pos. width ( ) - 2 * bw, 1 ) . unwrap ( ) ] ;
529+ [ Rect :: new_sized ( x + bw, y + bw + th, pos. width ( ) - 2 * bw, tuh ) . unwrap ( ) ] ;
528530 self . base . fill_boxes ( & title_underline, & uc, srgb) ;
529531 let rect = floating. title_rect . get ( ) . move_ ( x, y) ;
530532 let bounds = self . base . scale_rect ( rect) ;
@@ -584,9 +586,9 @@ impl Renderer<'_> {
584586 }
585587 let body = Rect :: new_sized (
586588 x + bw,
587- y + bw + th + 1 ,
589+ y + bw + tpuh ,
588590 pos. width ( ) - 2 * bw,
589- pos. height ( ) - 2 * bw - th - 1 ,
591+ pos. height ( ) - 2 * bw - tpuh ,
590592 )
591593 . unwrap ( ) ;
592594 let scissor_body = self . base . scale_rect ( body) ;
0 commit comments