mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix inverted outset color
Update the `theme` screenshot
This commit is contained in:
parent
fa82690c10
commit
053544d192
@ -1,26 +1,36 @@
|
||||
# Every field in a theme file is optional.
|
||||
|
||||
shadow = false
|
||||
borders = "simple" # Alternatives are "none" and "outset"
|
||||
borders = "outset" # Alternatives are "none" and "simple"
|
||||
|
||||
# Base colors are red, green, blue,
|
||||
# cyan, magenta, yellow, white and black.
|
||||
[colors]
|
||||
background = ["454", "#923456", "401", "magenta"]
|
||||
# If the value is an array, the first valid color will be used.
|
||||
# If the terminal doesn't support custom color,
|
||||
# There are 3 ways to select a color:
|
||||
# - The 16 base colors are selected by name:
|
||||
# "blue", "light red", "magenta", ...
|
||||
# - Low-resolution colors use 3 characters, each <= 5:
|
||||
# "541", "003", ...
|
||||
# - Full-resolution colors start with '#' and can be 3 or 6 hex digits:
|
||||
# "#1A6", "#123456", ...
|
||||
|
||||
# If the value is an array, the first valid
|
||||
# and supported color will be used.
|
||||
background = ["#cdf6cd", "454", "magenta"]
|
||||
|
||||
# If the terminal doesn't support custom color (like the linux TTY),
|
||||
# non-base colors will be skipped.
|
||||
shadow = ["#222288", "blue"]
|
||||
view = "111"
|
||||
|
||||
# Array and simple values have the same effect.
|
||||
# An array with a single value has the same effect as a simple value.
|
||||
primary = ["white"]
|
||||
secondary = "#EEEEEE"
|
||||
tertiary = "#444444"
|
||||
tertiary = "#252521"
|
||||
|
||||
# Hex values can use lower or uppercase.
|
||||
# (base color MUST be lowercase)
|
||||
title_primary = "yellow"
|
||||
title_primary = ["BLUE", "yellow"] # `BLUE` will be skipped.
|
||||
title_secondary = "#ffff55"
|
||||
|
||||
# Lower precision values can use only 3 digits.
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.7 KiB |
@ -212,7 +212,7 @@ impl<'a> Printer<'a> {
|
||||
{
|
||||
let color = match self.theme.borders {
|
||||
None => return,
|
||||
Some(BorderStyle::Outset) if invert => ColorStyle::Secondary,
|
||||
Some(BorderStyle::Outset) if invert => ColorStyle::Tertiary,
|
||||
_ => ColorStyle::Primary,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user