summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-05-29 22:49:06 +0200
committerCanop <cano.petrole@gmail.com>2020-05-29 22:49:06 +0200
commit928365ae4bf4370b6bed57de1488d347fc5cc644 (patch)
tree9b393765ab35ef127f7865e54135641b8ac8bbb1
parentd1e2d7ad70c204ff3ede4ac2efa57e185d5ae82a (diff)
doc now explicitely explains how to have a tranparent background
-rw-r--r--src/conf.rs7
-rw-r--r--src/skin/style_map.rs10
-rw-r--r--website/docs/img/20200529-transparent-broot.pngbin0 -> 400303 bytes
-rw-r--r--website/docs/skins.md10
4 files changed, 17 insertions, 10 deletions
diff --git a/src/conf.rs b/src/conf.rs
index d0728be..80f6474 100644
--- a/src/conf.rs
+++ b/src/conf.rs
@@ -329,12 +329,9 @@ execution = "$PAGER {file}"
# If you want to change the colors of broot,
# uncomment the following bloc and start messing
# with the various values.
-# Note that some of those colors might not correcly
-# render on terminals with low capabilities.
#
-
# [skin]
-# default = "gray(23) gray(1) / gray(20) gray(1)"
+# default = "gray(23) none / gray(20) none"
# tree = "ansi(94) None / gray(3) None"
# file = "gray(18) None / gray(15) None"
# directory = "ansi(208) None Bold / ansi(172) None bold"
@@ -384,7 +381,7 @@ execution = "$PAGER {file}"
# help_headers = "ansi(208) None"
# help_table_border = "ansi(239) None"
-# You may find other skins on
+# You may find explanations and other skins on
# https://dystroy.org/broot/skins
# for example a skin suitable for white backgrounds
diff --git a/src/skin/style_map.rs b/src/skin/style_map.rs
index d0ac5af..b3ec6f5 100644
--- a/src/skin/style_map.rs
+++ b/src/skin/style_map.rs
@@ -113,7 +113,7 @@ macro_rules! StyleMap {
// The optional part after a '/' is the style for unfocused panels
// (if missing the style is the same than for focused panels)
StyleMap! {
- default: gray(22), gray(1), [] / gray(20), gray(1), []
+ default: gray(22), gray(2), [] / gray(20), gray(2), []
tree: gray(7), None, [] / gray(3), None, []
file: gray(18), None, [] / gray(15), None, []
directory: ansi(110), None, [Bold] / ansi(110), None, []
@@ -145,10 +145,10 @@ StyleMap! {
input: Some(White), None, [] / gray(15), gray(2), []
status_error: gray(22), ansi(124), []
status_job: ansi(220), gray(5), []
- status_normal: gray(20), gray(3), [] / gray(2), gray(2), []
- status_italic: ansi(178), gray(3), [] / gray(2), gray(2), []
- status_bold: ansi(178), gray(3), [Bold] / gray(2), gray(2), []
- status_code: ansi(229), gray(3), [] / gray(2), gray(2), []
+ status_normal: gray(20), gray(4), [] / gray(2), gray(2), []
+ status_italic: ansi(178), gray(4), [] / gray(2), gray(2), []
+ status_bold: ansi(178), gray(4), [Bold] / gray(2), gray(2), []
+ status_code: ansi(229), gray(4), [] / gray(2), gray(2), []
status_ellipsis: gray(19), gray(1), [] / gray(2), gray(2), []
purpose_normal: gray(20), gray(2), []
purpose_italic: ansi(178), gray(2), []
diff --git a/website/docs/img/20200529-transparent-broot.png b/website/docs/img/20200529-transparent-broot.png
new file mode 100644
index 0000000..5f579dc
--- /dev/null
+++ b/website/docs/img/20200529-transparent-broot.png
Binary files differ
diff --git a/website/docs/skins.md b/website/docs/skins.md
index 524bfcd..3ed459b 100644
--- a/website/docs/skins.md
+++ b/website/docs/skins.md
@@ -95,6 +95,16 @@ Currently supported attributes are:
Note that some of them may be ignored by your terminal. Windows supports about none of them, for example.
+## Transparent background
+
+If you want to set the background of broot transparent (i.e. to be the background of your terminal), you can set the default style like this:
+
+```toml
+default = "gray(23) none / gray(20) none"
+```
+
+![transparent](../img/20200529-transparent-broot.png)
+
# White Background Skin
This skin is suitable if you're used to black on white: