feat(menu): add menu style options (#247)
add menu style options to allow `#{thm_x}` styling of menus. - @catppuccin_menu_style (`menu-style`) - @catppuccin_menu_selected_style (`menu-selected-style`) - @catppuccin_menu_border_style (`menu-border-style`)
This commit is contained in:
parent
33c4fd62df
commit
49972658aa
2 changed files with 28 additions and 0 deletions
19
README.md
19
README.md
|
@ -208,6 +208,25 @@ set -g @catppuccin_pane_border_style "fg=#{thm_gray}" # Use a value compatible w
|
|||
set -g @catppuccin_pane_active_border_style "fg=#{thm_orange}" # Use a value compatible with the standard tmux 'pane-border-active-style'
|
||||
```
|
||||
|
||||
### Menu
|
||||
|
||||
#### Set the menu style:
|
||||
|
||||
```sh
|
||||
set -g @catppuccin_menu_style "default" # Use a value compatible with the standard tmux `menu-style`
|
||||
```
|
||||
|
||||
#### Set the menu selected style:
|
||||
|
||||
```sh
|
||||
set -g @catppuccin_menu_selected_style "fg=#{thm_gray},bg=#{thm_yellow}" # Use a value compatible with the standard tmux `menu-selected-style`
|
||||
```
|
||||
|
||||
### Set the menu border style:
|
||||
|
||||
```sh
|
||||
set -g @catppuccin_menu_border_style "default" # Use a value compatible with the standard tmux `menu-border-style`
|
||||
```
|
||||
|
||||
### Status
|
||||
#### Set the default status bar visibility
|
||||
|
|
|
@ -85,6 +85,15 @@ main() {
|
|||
set message-style "fg=${thm_cyan},bg=${message_background},align=centre"
|
||||
set message-command-style "fg=${thm_cyan},bg=${message_background},align=centre"
|
||||
|
||||
# menu
|
||||
local menu_style menu_selected_style menu_border_style
|
||||
menu_style=$(get_interpolated_tmux_option "@catppuccin_menu_style" "default")
|
||||
menu_selected_style=$(get_interpolated_tmux_option "@catppuccin_menu_selected_style" "fg=${thm_gray},bg=${thm_yellow}")
|
||||
menu_border_style=$(get_interpolated_tmux_option "@catppuccin_menu_border_style" "default")
|
||||
set menu-style "$menu_style"
|
||||
set menu-selected-style "$menu_selected_style"
|
||||
set menu-border-style "$menu_border_style"
|
||||
|
||||
# panes
|
||||
local pane_border_status pane_border_style \
|
||||
pane_active_border_style pane_left_separator pane_middle_separator \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue