Skip to content

Commit 715a712

Browse files
committed
fix conflict between awesome-tray and headerline
1 parent 9567440 commit 715a712

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

Diff for: lisp/init-modeline-less.el

+24-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,30 @@
88
(use-package awesome-tray
99
:straight (awesome-tray :host github :repo "manateelazycat/awesome-tray")
1010
:config
11-
(setq awesome-tray-active-modules '("location" "git" "belong" "mode-name")
12-
awesome-tray-info-padding-right 1)
11+
;; Copy mode-line's face-attributes to the header-line,
12+
;; to avoid the face-attributes are changed by awesome-tray that effect to header-line too.
13+
(set-face-attribute 'header-line nil
14+
:foreground (face-attribute 'mode-line :foreground)
15+
:background (face-attribute 'mode-line :background)
16+
;; :height of mode-line is also unspecified, so we set it directly.
17+
:height 150
18+
:box (face-attribute 'mode-line :box))
19+
20+
(setq awesome-tray-active-modules '("buffer-read-only" "location" "git" "belong" "mode-name")
21+
awesome-tray-info-padding-right 1
22+
awesome-tray-mode-line-active-color "#727d97"
23+
awesome-tray-mode-line-inactive-color "#959eb1")
1324
(awesome-tray-mode 1))
25+
26+
;; (use-package taoline
27+
;; :straight (taoline :host github :repo "11111000000/taoline")
28+
;; :custom
29+
;; (taoline-show-git-branch t)
30+
;; (taoline-show-dir nil)
31+
;; (taoline-show-time nil)
32+
;; (taoline-show-previous-buffer nil)
33+
;; :config
34+
;; (taoline-mode t))
35+
1436
(provide 'init-modeline-less)
1537
;;; init-modeline-less.el ends here

0 commit comments

Comments
 (0)