feat: switch status line's color along with modes
Nicely fit the selection color switch.
This commit is contained in:
parent
453a18e026
commit
80929e97cd
2 changed files with 28 additions and 11 deletions
|
|
@ -3,7 +3,7 @@ Kalolo is a dark 256-colors scheme for the [kakoune](https://kakoune.org/) edito
|
|||
Features
|
||||
========
|
||||
|
||||
- Selections are in shades of yellows in normal mode and blues in insert mode.
|
||||
- Selections and status line are in shades of yellows in normal mode and of blues in insert mode.
|
||||
- Selections let the syntax coloring appear ("alpha blending").
|
||||
- Primary selection, secondary selection, primary cursor, secondary cursor and
|
||||
end-of-line cursors all have different colors.
|
||||
|
|
@ -25,7 +25,7 @@ Features
|
|||
Dependencies
|
||||
============
|
||||
|
||||
Some faces depends on additional highlight keywords: `flow` and `state`.
|
||||
Some faces depends on additional highlight keywords: `flow`, `state` and `Search`.
|
||||
|
||||
Screeshots
|
||||
==========
|
||||
|
|
|
|||
35
kalolo.kak
35
kalolo.kak
|
|
@ -126,21 +126,14 @@ set-face global LineNumbersWrapped "%opt(kalolo_dark_black)"
|
|||
set-face global MenuForeground "%opt{kalolo_light_white},%opt{kalolo_dark_yellow}+b"
|
||||
set-face global MenuBackground "%opt{kalolo_light_white},%opt{kalolo_dark_blue}"
|
||||
set-face global MenuInfo "%opt{kalolo_light_white},%opt{kalolo_blue}+i"
|
||||
set-face global Information "%opt{kalolo_white},%opt{kalolo_light_black}"
|
||||
set-face global Error "%opt{kalolo_light_yellow},%opt{kalolo_red}"
|
||||
set-face global StatusLine "%opt{kalolo_dark_black},%opt{kalolo_dark_blue}+b"
|
||||
set-face global StatusLineMode "%opt{kalolo_light_white},%opt{kalolo_dark_yellow}+b"
|
||||
set-face global StatusLineInfo "%opt{kalolo_light_white},%opt{kalolo_black}"
|
||||
set-face global StatusLineValue "%opt{kalolo_black},%opt{kalolo_dark_yellow}"
|
||||
set-face global StatusCursor "%opt{kalolo_light_white},%opt{kalolo_yellow}"
|
||||
set-face global Prompt "%opt{kalolo_dark_black},%opt{kalolo_dark_blue}+b"
|
||||
|
||||
# Additional UI
|
||||
# Like a temporary comment: light green.
|
||||
set-face global Search "%opt{kalolo_black},%opt{kalolo_light_green}+i"
|
||||
|
||||
##### Default normal #####
|
||||
# Cursors varying with mode
|
||||
# Default normal
|
||||
set-face global PrimarySelection "default,rgba:cf820075"
|
||||
set-face global PrimaryCursor "%opt{kalolo_black},%opt{kalolo_light_yellow}+F"
|
||||
set-face global PrimaryCursorEol "default,%opt{kalolo_light_red}+F"
|
||||
|
|
@ -149,6 +142,15 @@ set-face global SecondarySelection "default,rgba:cf820045"
|
|||
set-face global SecondaryCursor "%opt{kalolo_white},%opt{kalolo_dark_yellow}+F"
|
||||
set-face global SecondaryCursorEol "default,%opt{kalolo_dark_red}+F"
|
||||
|
||||
# mode-dependent UI
|
||||
set-face global StatusLine "%opt{kalolo_dark_black},%opt{kalolo_yellow}"
|
||||
set-face global StatusLineMode "%opt{kalolo_light_white},%opt{kalolo_dark_black}"
|
||||
set-face global StatusLineInfo "%opt{kalolo_light_white},%opt{kalolo_dark_blue}+b"
|
||||
set-face global StatusLineValue "%opt{kalolo_black},%opt{kalolo_dark_blue}"
|
||||
set-face global StatusCursor "%opt{kalolo_light_white},%opt{kalolo_light_yellow}"
|
||||
set-face global Prompt "%opt{kalolo_light_white},%opt{kalolo_dark_black}+b"
|
||||
set-face global Information "%opt{kalolo_light_white},%opt{kalolo_dark_blue}+b"
|
||||
|
||||
# Switching to normal = shades of yellows
|
||||
hook global ModeChange '.*:normal' %{
|
||||
set-face global PrimarySelection "default,rgba:cf820075"
|
||||
|
|
@ -158,6 +160,14 @@ hook global ModeChange '.*:normal' %{
|
|||
set-face global SecondarySelection "default,rgba:cf820045"
|
||||
set-face global SecondaryCursor "%opt{kalolo_white},%opt{kalolo_dark_yellow}+F"
|
||||
set-face global SecondaryCursorEol "default,%opt{kalolo_dark_red}+F"
|
||||
|
||||
set-face global StatusLine "%opt{kalolo_dark_black},%opt{kalolo_yellow}"
|
||||
set-face global StatusLineMode "%opt{kalolo_light_white},%opt{kalolo_dark_black}"
|
||||
set-face global StatusLineInfo "%opt{kalolo_light_white},%opt{kalolo_dark_blue}+b"
|
||||
set-face global StatusLineValue "%opt{kalolo_black},%opt{kalolo_dark_black}"
|
||||
set-face global StatusCursor "%opt{kalolo_light_white},%opt{kalolo_light_yellow}"
|
||||
set-face global Prompt "%opt{kalolo_light_white},%opt{kalolo_dark_black}+b"
|
||||
set-face global Information "%opt{kalolo_light_white},%opt{kalolo_dark_blue}+b"
|
||||
}
|
||||
|
||||
# Switching to insert = shades of blue
|
||||
|
|
@ -169,5 +179,12 @@ hook global ModeChange '.*:insert' %{
|
|||
set-face global SecondarySelection "default,rgba:6f9dfe45"
|
||||
set-face global SecondaryCursor "%opt{kalolo_light_white},%opt{kalolo_dark_blue}+F"
|
||||
set-face global SecondaryCursorEol "default,%opt{kalolo_magenta}+F"
|
||||
}
|
||||
|
||||
set-face global StatusLine "%opt{kalolo_dark_black},%opt{kalolo_dark_blue}"
|
||||
set-face global StatusLineMode "%opt{kalolo_light_white},%opt{kalolo_dark_black}"
|
||||
set-face global StatusLineInfo "%opt{kalolo_light_white},%opt{kalolo_dark_yellow}+b"
|
||||
set-face global StatusLineValue "%opt{kalolo_black},%opt{kalolo_dark_blue}"
|
||||
set-face global StatusCursor "%opt{kalolo_light_white},%opt{kalolo_light_blue}"
|
||||
set-face global Prompt "%opt{kalolo_dark_black},%opt{kalolo_dark_black}+b"
|
||||
set-face global Information "%opt{kalolo_light_white},%opt{kalolo_dark_yellow}+b"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue