mirror of
https://github.com/vale981/boon
synced 2025-03-04 17:11:40 -05:00
Powerline: don't default face (nil)
Use the `mode-line` face instead, so that all the faces in the mode line have the appropriate behaviour with respect to inactive buffers.
This commit is contained in:
parent
e959f7dc42
commit
e099948bca
1 changed files with 13 additions and 13 deletions
|
@ -30,7 +30,7 @@
|
|||
(:eval
|
||||
(let* ((active (powerline-selected-window-active))
|
||||
(mode-line (if active 'mode-line 'mode-line-inactive))
|
||||
(face0 (if active (boon-state-face) nil))
|
||||
(face0 (if active (boon-state-face) 'modeline-inactive))
|
||||
(face1 (if active 'powerline-active1 'powerline-inactive1))
|
||||
(face2 (if active 'powerline-active2 'powerline-inactive2))
|
||||
(separator-left (intern (format "powerline-%s-%s"
|
||||
|
@ -43,15 +43,15 @@
|
|||
(list
|
||||
(powerline-raw " " face0)
|
||||
(powerline-raw (boon-state-string) face0 'r)
|
||||
(funcall separator-left face0 nil)
|
||||
(funcall separator-left face0 mode-line)
|
||||
)))
|
||||
(lhs (list
|
||||
(powerline-raw (if (buffer-modified-p) "*" "-" ) nil 'l)
|
||||
(powerline-raw mode-line-mule-info nil)
|
||||
(powerline-buffer-id nil 'l)
|
||||
(powerline-raw (if (buffer-modified-p) "*" "-" ) mode-line 'l)
|
||||
(powerline-raw mode-line-mule-info mode-line)
|
||||
(powerline-buffer-id mode-line 'l)
|
||||
(when (and (boundp 'which-func-mode) which-func-mode)
|
||||
(powerline-raw which-func-format nil 'l))
|
||||
(powerline-raw " ")
|
||||
(powerline-raw which-func-format mode-line 'l))
|
||||
(powerline-raw " " mode-line)
|
||||
(funcall separator-left mode-line face1)
|
||||
(when (boundp 'erc-modified-channels-object)
|
||||
(powerline-raw erc-modified-channels-object face1 'l))
|
||||
|
@ -68,12 +68,12 @@
|
|||
(powerline-raw ":" face1)
|
||||
(powerline-raw "%c" face1 'r)
|
||||
(funcall separator-right face1 mode-line)
|
||||
(powerline-raw " ")
|
||||
(powerline-raw "%p" nil)
|
||||
(powerline-raw " ")
|
||||
(powerline-buffer-size nil nil)
|
||||
(powerline-raw " ")
|
||||
(powerline-hud face2 face1)
|
||||
(powerline-raw " " mode-line)
|
||||
(powerline-raw "%p" mode-line)
|
||||
(powerline-raw " " mode-line)
|
||||
(powerline-buffer-size mode-line nil)
|
||||
(powerline-raw " " mode-line)
|
||||
(powerline-hud mode-line face1)
|
||||
)))
|
||||
(concat (powerline-render boon)
|
||||
(powerline-render lhs)
|
||||
|
|
Loading…
Add table
Reference in a new issue