Skip to content

Commit

Permalink
stylesets: make default status line more readable
Browse files Browse the repository at this point in the history
Error, success and warning messages are dimmed as well making them
unreadable on that light gray background.

Remove the gray background for the status line. Make error, success and
warning messages more visible by using bright colors, disabling dimmed
and enabling bold attributes.

Changelog-changed: The `default` styleset status line background has
 been reset to the default color (light or dark, depending on your
 terminal color scheme) in order to make error, warning or success
 messages more readable.
Signed-off-by: Robin Jarry <[email protected]>
Tested-by: Karel Balej <[email protected]>
  • Loading branch information
rjarry committed Jan 21, 2025
1 parent 123aec8 commit 7b5ec66
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
13 changes: 8 additions & 5 deletions config/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,15 @@ const defaultStyleset string = `
*.selected.fg = 15
*.selected.bold = true
statusline_*.dim = true
statusline_*.bg = 8
statusline_*.fg = 15
*warning.fg = 3
*success.fg = 2
*error.fg = 1
*warning.dim = false
*warning.bold = true
*warning.fg = 11
*success.dim = false
*success.bold = true
*success.fg = 10
*error.dim = false
*error.bold = true
*error.fg = 9
border.fg = 12
border.bold = true
title.bg = 12
Expand Down
13 changes: 8 additions & 5 deletions doc/aerc-stylesets.7.scd
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,15 @@ Before parsing a styleset, it is first initialized with the following defaults:
*.selected.fg = 15
*.selected.bold = true
statusline_*.dim = true
statusline_*.bg = 8
statusline_*.fg = 15
*warning.fg = 3
*success.fg = 2
*error.fg = 1
*warning.dim = false
*warning.bold = true
*warning.fg = 11
*success.dim = false
*success.bold = true
*success.fg = 10
*error.dim = false
*error.bold = true
*error.fg = 9
border.bg = 12
border.fg = 15
title.bg = 12
Expand Down
13 changes: 8 additions & 5 deletions stylesets/default
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
#*.selected.bold = true

#statusline_*.dim = true
#statusline_*.bg = 8
#statusline_*.fg = 15

#*warning.fg = 3
#*success.fg = 2
#*error.fg = 1
#*warning.dim = false
#*warning.bold = true
#*warning.fg = 11
#*success.dim = false
#*success.bold = true
#*success.fg = 10
#*error.dim = false
#*error.bold = true
#*error.fg = 9

#border.fg = 12
#border.bold = true
Expand Down

0 comments on commit 7b5ec66

Please sign in to comment.