Add shaded/shaped frame type
This commit is contained in:
parent
988d29165e
commit
10ff4d93d6
1 changed files with 21 additions and 16 deletions
21
theme.jl
21
theme.jl
|
@ -2,11 +2,8 @@
|
||||||
;; Author : Tom Willemse <tom@ryuslash.org>
|
;; Author : Tom Willemse <tom@ryuslash.org>
|
||||||
;; License : GPL-3+
|
;; License : GPL-3+
|
||||||
|
|
||||||
(let* (
|
(let* ((default-frame
|
||||||
|
`(((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . -4) (width . 30) (height . 26) (text . "×") (x-justify . center) (y-justify . center) (top-edge . -26) (class . close-button))
|
||||||
(default-frame
|
|
||||||
`(
|
|
||||||
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . -4) (width . 30) (height . 26) (text . "×") (x-justify . center) (y-justify . center) (top-edge . -26) (class . close-button))
|
|
||||||
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . 26) (width . 26) (height . 26) (text . "☐") (x-justify . center) (y-justify . center) (top-edge . -26) (class . maximize-button))
|
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . 26) (width . 26) (height . 26) (text . "☐") (x-justify . center) (y-justify . center) (top-edge . -26) (class . maximize-button))
|
||||||
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . 51) (width . 26) (height . 26) (text . "_") (x-justify . center) (y-justify . center) (top-edge . -26) (class . iconify-button))
|
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . 51) (width . 26) (height . 26) (text . "_") (x-justify . center) (y-justify . center) (top-edge . -26) (class . iconify-button))
|
||||||
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (left-edge . -4) (width . 21) (height . 26) (top-edge . -26) (class . menu-button) (text . "⮟") (x-justify . center) (y-justify . center))
|
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (left-edge . -4) (width . 21) (height . 26) (top-edge . -26) (class . menu-button) (text . "⮟") (x-justify . center) (y-justify . center))
|
||||||
|
@ -17,15 +14,23 @@
|
||||||
((background . ("#111414")) (right-edge . -5) (width . 5) (height . 5) (bottom-edge . -5) (class . bottom-right-corner))
|
((background . ("#111414")) (right-edge . -5) (width . 5) (height . 5) (bottom-edge . -5) (class . bottom-right-corner))
|
||||||
|
|
||||||
((background . ("#111414")) (right-edge . 77) (left-edge . 17) (height . 26) (top-edge . -26)
|
((background . ("#111414")) (right-edge . 77) (left-edge . 17) (height . 26) (top-edge . -26)
|
||||||
(foreground . ("#bfbfbf" "#ff9800")) (text . ,window-name) (x-justify . center) (y-justify . center) (class . title))
|
(foreground . ("#bfbfbf" "#ff9800")) (text . ,window-name) (x-justify . center) (y-justify . center) (class . title))))
|
||||||
)
|
|
||||||
))
|
(shaded-frame
|
||||||
|
`(((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . -4) (width . 30) (height . 26) (text . "×") (x-justify . center) (y-justify . center) (top-edge . -26) (class . close-button))
|
||||||
|
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . 26) (width . 26) (height . 26) (text . "☐") (x-justify . center) (y-justify . center) (top-edge . -26) (class . maximize-button))
|
||||||
|
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (right-edge . 51) (width . 26) (height . 26) (text . "_") (x-justify . center) (y-justify . center) (top-edge . -26) (class . iconify-button))
|
||||||
|
((background . ("#111414")) (foreground "#bfbfbf" "#ff9800") (left-edge . -4) (width . 21) (height . 26) (top-edge . -26) (class . menu-button) (text . "⮝") (x-justify . center) (y-justify . center))
|
||||||
|
|
||||||
|
((background . ("#111414")) (right-edge . 77) (left-edge . 17) (height . 26) (top-edge . -26)
|
||||||
|
(foreground . ("#bfbfbf" "#ff9800")) (text . ,window-name) (x-justify . center) (y-justify . center) (class . title)))))
|
||||||
|
|
||||||
|
|
||||||
(add-frame-style 'yoshi
|
(add-frame-style 'yoshi
|
||||||
(lambda (w type)
|
(lambda (w type)
|
||||||
(case type
|
(case type
|
||||||
((default) default-frame)
|
((default) default-frame)
|
||||||
|
((shaped) shaded-frame)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue