Skip to content

Commit

Permalink
------- Generate Themes -------
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 13, 2024
1 parent 54cf987 commit d352aaa
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/themes.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions gogh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ declare -a THEMES=(
'flat-remix.sh'
'flat.sh'
'flatland.sh'
'flexoki-dark.sh'
'flexoki-light.sh'
'foxnightly.sh'
'freya.sh'
'frontend-delight.sh'
Expand Down
51 changes: 51 additions & 0 deletions installs/flexoki-dark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/env bash

export PROFILE_NAME="Flexoki Dark"

export COLOR_01="#282726" # Black (Host)
export COLOR_02="#AF3029" # Red (Syntax string)
export COLOR_03="#66800B" # Green (Command)
export COLOR_04="#AD8301" # Yellow (Command second)
export COLOR_05="#205EA6" # Blue (Path)
export COLOR_06="#A02F6F" # Magenta (Syntax var)
export COLOR_07="#24837B" # Cyan (Prompt)
export COLOR_08="#E6E4D9" # White

export COLOR_09="#343331" # Bright Black
export COLOR_10="#D14D41" # Bright Red (Command error)
export COLOR_11="#879A39" # Bright Green (Exec)
export COLOR_12="#D0A215" # Bright Yellow
export COLOR_13="#4385BE" # Bright Blue (Folder)
export COLOR_14="#CE5D97" # Bright Magenta
export COLOR_15="#3AA99F" # Bright Cyan
export COLOR_16="#FFFCF0" # Bright White

export BACKGROUND_COLOR="#100F0F" # Background
export FOREGROUND_COLOR="#878580" # Foreground (Text)

export CURSOR_COLOR="#CECDC3" # Cursor

apply_theme() {
if [[ -e "${GOGH_APPLY_SCRIPT}" ]]; then
bash "${GOGH_APPLY_SCRIPT}"
elif [[ -e "${PARENT_PATH}/apply-colors.sh" ]]; then
bash "${PARENT_PATH}/apply-colors.sh"
elif [[ -e "${SCRIPT_PATH}/apply-colors.sh" ]]; then
bash "${SCRIPT_PATH}/apply-colors.sh"
else
printf '\n%s\n' "Error: Couldn't find apply-colors.sh" 1>&2
exit 1
fi
}

# | ===========================================================================
# | Apply Colors
# | ===========================================================================
SCRIPT_PATH="${SCRIPT_PATH:-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
PARENT_PATH="$(dirname "${SCRIPT_PATH}")"

if [ -z "${GOGH_NONINTERACTIVE+no}" ]; then
apply_theme
else
apply_theme 1>/dev/null
fi
51 changes: 51 additions & 0 deletions installs/flexoki-light.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/env bash

export PROFILE_NAME="Flexoki Light"

export COLOR_01="#282726" # Black (Host)
export COLOR_02="#AF3029" # Red (Syntax string)
export COLOR_03="#66800B" # Green (Command)
export COLOR_04="#AD8301" # Yellow (Command second)
export COLOR_05="#205EA6" # Blue (Path)
export COLOR_06="#A02F6F" # Magenta (Syntax var)
export COLOR_07="#24837B" # Cyan (Prompt)
export COLOR_08="#878580" # White

export COLOR_09="#1C1B1A" # Bright Black
export COLOR_10="#D14D41" # Bright Red (Command error)
export COLOR_11="#879A39" # Bright Green (Exec)
export COLOR_12="#D0A215" # Bright Yellow
export COLOR_13="#4385BE" # Bright Blue (Folder)
export COLOR_14="#CE5D97" # Bright Magenta
export COLOR_15="#3AA99F" # Bright Cyan
export COLOR_16="#6F6E69" # Bright White

export BACKGROUND_COLOR="#FFFCF0" # Background
export FOREGROUND_COLOR="#100F0F" # Foreground (Text)

export CURSOR_COLOR="#100F0F" # Cursor

apply_theme() {
if [[ -e "${GOGH_APPLY_SCRIPT}" ]]; then
bash "${GOGH_APPLY_SCRIPT}"
elif [[ -e "${PARENT_PATH}/apply-colors.sh" ]]; then
bash "${PARENT_PATH}/apply-colors.sh"
elif [[ -e "${SCRIPT_PATH}/apply-colors.sh" ]]; then
bash "${SCRIPT_PATH}/apply-colors.sh"
else
printf '\n%s\n' "Error: Couldn't find apply-colors.sh" 1>&2
exit 1
fi
}

# | ===========================================================================
# | Apply Colors
# | ===========================================================================
SCRIPT_PATH="${SCRIPT_PATH:-$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)}"
PARENT_PATH="$(dirname "${SCRIPT_PATH}")"

if [ -z "${GOGH_NONINTERACTIVE+no}" ]; then
apply_theme
else
apply_theme 1>/dev/null
fi
1 change: 1 addition & 0 deletions json/flexoki-dark.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"color_01": "#282726", "color_02": "#AF3029", "color_03": "#66800B", "color_04": "#AD8301", "color_05": "#205EA6", "color_06": "#A02F6F", "color_07": "#24837B", "color_08": "#E6E4D9", "color_09": "#343331", "color_10": "#D14D41", "color_11": "#879A39", "color_12": "#D0A215", "color_13": "#4385BE", "color_14": "#CE5D97", "color_15": "#3AA99F", "color_16": "#FFFCF0", "name": "Flexoki Dark", "foreground": "#878580", "background": "#100F0F", "cursor": "#CECDC3", "hash": "030471476a25876884d04b100e82f8e5476c57c6745999505c4ee3f79abcac06"}
1 change: 1 addition & 0 deletions json/flexoki-light.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"color_01": "#282726", "color_02": "#AF3029", "color_03": "#66800B", "color_04": "#AD8301", "color_05": "#205EA6", "color_06": "#A02F6F", "color_07": "#24837B", "color_08": "#878580", "color_09": "#1C1B1A", "color_10": "#D14D41", "color_11": "#879A39", "color_12": "#D0A215", "color_13": "#4385BE", "color_14": "#CE5D97", "color_15": "#3AA99F", "color_16": "#6F6E69", "name": "Flexoki Light", "foreground": "#100F0F", "background": "#FFFCF0", "cursor": "#100F0F", "hash": "6fb9820a41e6f97d135e2b67d14e2110983ce20be6f5025273696b7bb6648fc7"}

0 comments on commit d352aaa

Please sign in to comment.