-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
console.lua: give a different background color to the selected item
The default item also has the same background color but with transparency. Also stop bolding selections since inverted black and white backgrounds should be visible even with color blindness. It was annoying with proportional fonts because it misalignes similar strings. As mpv's default text colors are white on black border or background, --osd-selected-color's default of a bright yellow meant to be used with a black border becomes unreadable with the inverted white background. We could default to a dark --osd-selected-color and a a light --osd-selected-outline-color and use --osd-selected-outline-color as the selected back color. However in show-text commands having only the selected item with a different white border doesn't look good. This therefore adds indipendent selected_color and selected_back_color script-opts. --osd-selected-color is only used for completions and for the selected item when searching the command history with outline-and-shadow.
- Loading branch information
1 parent
ac3dec1
commit cc0d027
Showing
3 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
add `console-background_alpha` `console-menu_outline_size` `console-menu_outline_color` `console-corner_radius` script-opts | ||
add `console-background_alpha` `console-menu_outline_size` `console-menu_outline_color` `console-corner_radius` `console-selected_color` and `console-selected_back_color` script-opts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters