1
0
mirror of https://github.com/Mayccoll/Gogh.git synced 2023-08-10 21:12:46 +03:00

Testing and improvements for colorcli and relaxed themes. Add transparency handling

This commit is contained in:
Rawiri Blundell 2019-08-22 00:12:12 +12:00
parent 3d20359d6c
commit f8538c3f19
3 changed files with 18 additions and 13 deletions

View File

@ -239,8 +239,10 @@ set_theme() {
if [[ -n "${HIGHLIGHT_BG_COLOR:-}" ]]; then
dset highlight-colors-set "true"
dset highlight-background-color "${HIGHLIGHT_BG_COLOR}"
dset highlight-foreground-color "${HIGHLIGHT_FG_COLOR:-$FOREGROUND_COLOR}"
dset highlight-background-color "'${HIGHLIGHT_BG_COLOR}'"
if [[ -n "${HIGHLIGHT_FG_COLOR:-}" ]]; then
dset highlight-foreground-color "'${HIGHLIGHT_FG_COLOR}'"
fi
fi
if [[ -n "${BOLD_COLOR:-}" ]]; then
@ -252,6 +254,7 @@ set_theme() {
fi
dset use-theme-colors "false"
dset use-theme-background "false"
dset use-theme-transparency "${USE_SYS_TRANSPARENCY:-false}"
}
legacy_set_theme() {
@ -439,6 +442,8 @@ apply_gtk() {
BACKGROUND_COLOR=$(gnome_color "$BACKGROUND_COLOR")
FOREGROUND_COLOR=$(gnome_color "$FOREGROUND_COLOR")
HIGHLIGHT_BG_COLOR=$(gnome_color "$HIGHLIGHT_BG_COLOR")
HIGHLIGHT_FG_COLOR=$(gnome_color "$HIGHLIGHT_FG_COLOR")
COLOR_01=$(gnome_color "$COLOR_01")
COLOR_02=$(gnome_color "$COLOR_02")
COLOR_03=$(gnome_color "$COLOR_03")

18
themes/colorcli.sh Normal file → Executable file
View File

@ -5,7 +5,7 @@
export COLOR_01="#000000" # HOST (black - system)
export COLOR_02="#D70000" # SYNTAX_STRING (red3)
export COLOR_03="#5FAF00" # COMMAND (Chartreuse3)
export COLOR_04="#FFFF00" # COMMAND_COLOR2 (yellow1)
export COLOR_04="#5FAF00" # COMMAND_COLOR2 (Chartreuse3)
export COLOR_05="#005F87" # PATH (deepskyblue4)
export COLOR_06="#D70000" # SYNTAX_VAR (red3)
export COLOR_07="#5F5F5F" # PROMPT (gray37)
@ -13,7 +13,7 @@ export COLOR_08="#E4E4E4" # (gray89)
export COLOR_09="#5F5F5F" # Dark gray (gray37)
export COLOR_10="#D70000" # COMMAND_ERROR (red3)
export COLOR_11="#FF8700" # EXEC (DarkOrange)
export COLOR_11="#5F5F5F" # EXEC (gray37)
export COLOR_12="#FFFF00" # Light Yellow (yellow1)
export COLOR_13="#0087AF" # Light Blue (deepskyblue3)
export COLOR_14="#0087AF" # Light Magenta (deepskyblue3)
@ -21,11 +21,12 @@ export COLOR_15="#0087AF" # Light Cyan (deepskyblue3)
export COLOR_16="#FFFFFF" # White (white - system)
export BACKGROUND_COLOR="#FFFFFF" # Background Color
export FOREGROUND_COLOR="#5F5F5F" # Foreground Color (text - gray37)
export FOREGROUND_COLOR="#005F87" # Foreground Color (text - deepskyblue4)
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
export HIGHLIGHT_FG_COLOR="$FOREGROUND_COLOR" # Text color within highlight
export HIGHLIGHT_FG_COLOR="#0087AF" # Text color within highlight (deepskyblue3)
export HIGHLIGHT_BG_COLOR="#BCBCBC" # Highlight color (gray74)
export PROFILE_NAME="colorcli"
export USE_SYS_TRANSPARENCY="false"
export PROFILE_NAME="Colorcli"
# =============================================================== #
@ -43,11 +44,10 @@ BASE_URL=${BASE_URL:-"https://raw.githubusercontent.com/Mayccoll/Gogh/master"}
if [[ -e "${PARENT_PATH}/apply-colors.sh" ]]; then
bash "${PARENT_PATH}/apply-colors.sh"
else
if [[ "$(uname)" = "Darwin" ]]; then
# OSX ships with curl and ancient bash
if command -v curl >/dev/null 2>&1; then
bash -c "$(curl -so- "${BASE_URL}/apply-colors.sh")"
else
# Linux ships with wget
elif command -v wget >/dev/null 2>&1; then
bash -c "$(wget -qO- "${BASE_URL}/apply-colors.sh")"
fi
fi

4
themes/relaxed.sh Normal file → Executable file
View File

@ -24,8 +24,8 @@ export BACKGROUND_COLOR="#353A44" # Background Color
export FOREGROUND_COLOR="#D9D9D9" # Foreground Color
export CURSOR_COLOR="$FOREGROUND_COLOR" # Cursor color
export HIGHLIGHT_FG_COLOR="$FOREGROUND_COLOR" # Text color within highlight
export HIGHLIGHT_BG_COLOR="#ACBBD0" # Highlight color
export PROFILE_NAME="relaxed"
export HIGHLIGHT_BG_COLOR="#6A8799" # Highlight color
export PROFILE_NAME="Relaxed"
# =============================================================== #