Skip to content

Commit

Permalink
fix bar & hud segments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangou committed Apr 10, 2024
1 parent 96c4ca5 commit 9d48a4e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -1409,15 +1409,21 @@ regions, 5. The current/total for the highlight term (with `symbol-overlay'),

(doom-modeline-def-segment bar
"The bar regulates the height of the `doom-modeline' in GUI."
(concat
(if doom-modeline-hud
(doom-modeline--hud)
(doom-modeline--bar))
(doom-modeline-spc)))
(when (display-graphic-p)
(concat
(if doom-modeline-hud
(doom-modeline--hud)
(doom-modeline--bar))
(doom-modeline-spc))))

(doom-modeline-def-segment hud
"Powerline's hud segment reimplemented in the style of bar segment."
(doom-modeline--hud))
(doom-modeline-def-segment bar
"The bar regulates the height of the `doom-modeline' in GUI."
(when (display-graphic-p)
(concat
(doom-modeline--hud)
(doom-modeline-spc)))))


;;
Expand Down

0 comments on commit 9d48a4e

Please sign in to comment.