From b451e393a5e043076d2ce8fb98a4e0166e2a1f01 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 14 Dec 2024 23:53:02 -0800 Subject: [PATCH] Make shaded title bar the same as main title bar By adding the same little bars on the sides. They just don't need the resize corners because there is no point in resizing a window that's just a title bar. --- theme.jl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/theme.jl b/theme.jl index adcc8c4..e853eb9 100644 --- a/theme.jl +++ b/theme.jl @@ -26,12 +26,14 @@ (text . ,window-name) (x-justify . center) (y-justify . center) (class . title)))) (shaded-frame - `((,button-bg ,fg (right-edge . 0) (width . ,button-width) (height . ,title-height) (text . "×") (x-justify . center) (y-justify . center) (top-edge . ,(- title-height)) (class . close-button)) - (,button-bg ,fg (right-edge . ,button-width) (width . ,button-width) (height . ,title-height) (text . "☐") (x-justify . center) (y-justify . center) (top-edge . ,(- title-height)) (class . maximize-button)) - (,button-bg ,fg (right-edge . ,(* 2 button-width)) (width . ,button-width) (height . ,title-height) (text . "_") (x-justify . center) (y-justify . center) (top-edge . ,(- title-height)) (class . iconify-button)) - (,button-bg ,fg (left-edge . 0) (width . ,button-width) (height . ,title-height) (top-edge . ,(- title-height)) (class . menu-button) (text . "⮝") (x-justify . center) (y-justify . center)) + `((,button-bg ,fg (right-edge . 5) (width . ,button-width) (height . ,title-height) (text . "×") (x-justify . center) (y-justify . center) (top-edge . ,(- title-height)) (class . close-button)) + (,button-bg ,fg (right-edge . ,(+ button-width 5)) (width . ,button-width) (height . ,title-height) (text . "☐") (x-justify . center) (y-justify . center) (top-edge . ,(- title-height)) (class . maximize-button)) + (,button-bg ,fg (right-edge . ,(+ (* 2 button-width) 5)) (width . ,button-width) (height . ,title-height) (text . "_") (x-justify . center) (y-justify . center) (top-edge . ,(- title-height)) (class . iconify-button)) + (,button-bg ,fg (left-edge . 5) (width . ,button-width) (height . ,title-height) (top-edge . ,(- title-height)) (class . menu-button) (text . "⮝") (x-justify . center) (y-justify . center)) + (,bg (left-edge . 0) (top-edge . ,(- title-height)) (width . 5) (height . ,title-height)) + (,bg (right-edge . 0) (top-edge . ,(- title-height)) (width . 5) (height . ,title-height)) - (,bg ,fg ,font (right-edge . ,(* 3 button-width)) (left-edge . ,button-width) (height . ,title-height) (top-edge . ,(- title-height)) + (,bg ,fg ,font (right-edge . ,(+ (* 3 button-width) 5)) (left-edge . ,(+ button-width 5)) (height . ,title-height) (top-edge . ,(- title-height)) (text . ,window-name) (x-justify . center) (y-justify . center) (class . title))))) (add-frame-style 'yoshi (lambda (w type)