Skip to content

Commit 3546122

Browse files
authored
feat(tui)!: use transparent background by default (#193)
* feat(tui)!: Use transparent background by default Right now the default background color of systeroid-tui is black, which is not great when it comes to different color schemes. This change replaces `black` with `reset` as the default. (reset means transparent in this context) BREAKING CHANGE: Use transparent background by default * docs(README): add info * refactor: change version number 0.5.0 -> 0.4.6
1 parent dbbc377 commit 3546122

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ Press <kbd>c</kbd> to show the options menu for copying the name, value, or docu
572572
#### Changing the colors
573573

574574
Use `--bg-color` and `--fg-color` arguments to customize the colors of the terminal user interface.
575+
A transparent background is used by default.
575576

576577
```sh
577578
# use a color name for setting the foreground color
@@ -580,7 +581,7 @@ systeroid-tui --fg-color blue
580581
# use hexadecimal values for setting foreground/background colors
581582
systeroid-tui --bg-color ffff99 --fg-color 003366
582583

583-
# use transparent background
584+
# use transparent background (default as of 0.4.6)
584585
systeroid-tui --bg-color reset
585586
```
586587

systeroid-tui/src/args.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl Args {
7070
opts.optopt(
7171
"",
7272
"bg-color",
73-
"set the background color [default: black]",
73+
"set the background color [default: reset (transparent)]",
7474
"<color>",
7575
);
7676
opts.optopt(
@@ -134,7 +134,7 @@ impl Args {
134134
.unwrap_or_else(|| String::from("white")),
135135
bg_color: matches
136136
.opt_str("bg-color")
137-
.unwrap_or_else(|| String::from("black")),
137+
.unwrap_or_else(|| String::from("reset")),
138138
no_docs: matches.opt_present("n"),
139139
display_deprecated: matches.opt_present("deprecated"),
140140
config: matches

0 commit comments

Comments
 (0)