This commit allows the following configuration:
```
wezterm -n --config 'colors = { selection_fg = "clear", selection_bg = "rgba:50% 50% 50% 50%" }'
```
which sets the selection_bg to fully transparent, and selection_bg to
50% transparent gray.
When selection_fg is fully transparent we'll use the normal fg color.
When selection_bg is partially (or fully!) transparent, it will be
alpha blended over the current cell background color.
To support this, the config file will now accept rgba colors specified
as 4 whitespace delimited numeric values. If a value ends with `%` it
is interpreted as a number in the range 0-100. Otherwise, it is
interpreted as a number in the range 0-255. The 4 values are
red, green, blue, alpha.
At this time, only the selection_fg and selection_bg settings accept
alpha values.
refs: #1615
49 lines
1.3 KiB
TOML
49 lines
1.3 KiB
TOML
[package]
|
|
name = "config"
|
|
version = "0.1.0"
|
|
authors = ["Wez Furlong <wez@wezfurlong.org>"]
|
|
edition = "2018"
|
|
build = "build.rs"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dev-dependencies]
|
|
pretty_env_logger = "0.4"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
battery = "0.7"
|
|
bitflags = "1.3"
|
|
bstr = "0.2"
|
|
chrono = {version="0.4", features=["unstable-locales"]}
|
|
colorgrad = "0.5"
|
|
dirs-next = "2.0"
|
|
enum-display-derive = "0.1"
|
|
filenamegen = "0.2"
|
|
hostname = "0.3"
|
|
lazy_static = "1.4"
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
luahelper = { path = "../luahelper" }
|
|
mlua = {version="0.7", features=["vendored", "lua54", "async", "send"]}
|
|
# file change notification
|
|
notify = "4.0"
|
|
open = "2.0"
|
|
ordered-float = { version = "2.10", features = ["serde"] }
|
|
portable-pty = { path = "../pty", features = ["serde_support"]}
|
|
promise = { path = "../promise" }
|
|
serde = {version="1.0", features = ["rc", "derive"]}
|
|
serde_json = "1.0"
|
|
smol = "1.2"
|
|
terminfo = "0.7"
|
|
termwiz = { path = "../termwiz", features=["use_serde"] }
|
|
toml = "0.5"
|
|
umask = { path = "../umask" }
|
|
unicode-segmentation = "1.8"
|
|
wezterm-bidi = { path = "../bidi", features=["use_serde"] }
|
|
wezterm-input-types = { path = "../wezterm-input-types" }
|
|
wezterm-term = { path = "../term", features=["use_serde"] }
|
|
|
|
[target."cfg(windows)".dependencies]
|
|
winapi = { version = "0.3", features = ["winuser"]}
|