diff --git a/README.md b/README.md index e7d016d..ec486d7 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,11 @@ If this setting is set to `'false'`, then `$SOBOLE_SYNTAX_THEME` is not exported `$SOBOLE_FZF_THEME` - tweaks `fzf` theme if it installed. Set it to `'false'` if you do not want these tweaks. That's how it looks like: -![sobole-syntax-highlighting-showcase](https://raw.githubusercontent.com/sobolevn/sobole-zsh-theme/master/showcases/fzf-tweaks.png) +![sobole-fzf-tweaks](https://raw.githubusercontent.com/sobolevn/sobole-zsh-theme/master/showcases/fzf-tweaks.png) + +`$SOBOLE_LESS_THEME` - tweaks `less` pager. Set it to `'false'` if you do not want these tweaks. That's how it looks like: + +![sobole-less-tweaks](https://raw.githubusercontent.com/sobolevn/sobole-zsh-theme/master/showcases/less-tweaks.png) ## Indications diff --git a/docs/index.html b/docs/index.html index a60c6b9..ff6beb4 100755 --- a/docs/index.html +++ b/docs/index.html @@ -86,6 +86,17 @@

Still not convinced? Look at the showcase!

+
+

less theme

+
+ +
+
+ diff --git a/showcases/less-tweaks-dark.png b/showcases/less-tweaks-dark.png new file mode 100644 index 0000000..9429226 Binary files /dev/null and b/showcases/less-tweaks-dark.png differ diff --git a/showcases/less-tweaks.png b/showcases/less-tweaks.png new file mode 100644 index 0000000..2c9169f Binary files /dev/null and b/showcases/less-tweaks.png differ diff --git a/sobole.zsh-theme b/sobole.zsh-theme index 09577d4..16c5bc9 100644 --- a/sobole.zsh-theme +++ b/sobole.zsh-theme @@ -195,8 +195,13 @@ fi # ---------------------------------------------------------------------------- if [[ "$SOBOLE_LESS_THEME" != 'false' ]]; then - export LESS_TERMCAP_mb="$(printf '\e[1;34m')" - export LESS_TERMCAP_md="$(printf '\e[1;34m')" + if [[ "$SOBOLE_THEME_MODE" == 'dark' ]]; then + export LESS_TERMCAP_mb="$(printf '\e[1;35m')" + export LESS_TERMCAP_md="$(printf '\e[1;35m')" + else + export LESS_TERMCAP_mb="$(printf '\e[1;34m')" + export LESS_TERMCAP_md="$(printf '\e[1;34m')" + fi export LESS_TERMCAP_me="$(printf '\e[0m')" export LESS_TERMCAP_se=$(printf '\e[0m') export LESS_TERMCAP_so=$(printf '\e[30m')