mirror of
https://github.com/arzzen/git-quick-stats.git
synced 2026-09-10 07:36:19 -04:00
Merge pull request #188 from git-quick-stats/task/issue-116
_MENU_THEME=none
This commit is contained in:
commit
cebb5a8f48
|
|
@ -212,10 +212,13 @@ export _GIT_IGNORE_AUTHORS="(author@examle.com|username)"
|
||||||
|
|
||||||
### Color themes
|
### Color themes
|
||||||
|
|
||||||
You can change to the legacy color scheme by toggling the variable `_MENU_THEME` between `default` and `legacy`
|
You can change to the legacy color scheme by toggling the variable `_MENU_THEME` between `default` and `legacy`.
|
||||||
|
You can completely disable the color theme by setting the `_MENU_THEME` variable to `none`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export _MENU_THEME="legacy"
|
export _MENU_THEME="legacy"
|
||||||
|
# or
|
||||||
|
export _MENU_THEME="none"
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,8 @@ ADDITIONAL USAGE
|
||||||
ex: export _GIT_MERGE_VIEW=enable
|
ex: export _GIT_MERGE_VIEW=enable
|
||||||
You can also set _GIT_MERGE_VIEW to only show merge commits
|
You can also set _GIT_MERGE_VIEW to only show merge commits
|
||||||
ex: export _GIT_MERGE_VIEW=exclusive
|
ex: export _GIT_MERGE_VIEW=exclusive
|
||||||
You can set _MENU_THEME to display the legacy color scheme
|
You can change to the legacy color scheme by toggling the variable \"_MENU_THEME\" between \"default\" and \"legacy\".
|
||||||
|
You can completely disable the color theme by setting the \"_MENU_THEME\" variable to \"none\".
|
||||||
ex: export _MENU_THEME=legacy
|
ex: export _MENU_THEME=legacy
|
||||||
You can set _GIT_BRANCH to set the branch of the stats
|
You can set _GIT_BRANCH to set the branch of the stats
|
||||||
ex: export _GIT_BRANCH=master
|
ex: export _GIT_BRANCH=master
|
||||||
|
|
@ -292,19 +293,29 @@ function showMenu() {
|
||||||
EXIT_TXT=""
|
EXIT_TXT=""
|
||||||
|
|
||||||
# Adjustable color menu option
|
# Adjustable color menu option
|
||||||
if [[ "${_theme}" == "legacy" ]]; then
|
case "${_theme}" in
|
||||||
TITLES="${BOLD}${RED}"
|
"legacy" )
|
||||||
TEXT="${NORMAL}${CYAN}"
|
TITLES="${BOLD}${RED}"
|
||||||
NUMS="${BOLD}${YELLOW}"
|
TEXT="${NORMAL}${CYAN}"
|
||||||
HELP_TXT="${NORMAL}${YELLOW}"
|
NUMS="${BOLD}${YELLOW}"
|
||||||
EXIT_TXT="${BOLD}${RED}"
|
HELP_TXT="${NORMAL}${YELLOW}"
|
||||||
else
|
EXIT_TXT="${BOLD}${RED}"
|
||||||
TITLES="${BOLD}${CYAN}"
|
;;
|
||||||
TEXT="${NORMAL}${WHITE}"
|
"none" )
|
||||||
NUMS="${NORMAL}${BOLD}${WHITE}"
|
TITLES="${BOLD}"
|
||||||
HELP_TXT="${NORMAL}${CYAN}"
|
TEXT="${NORMAL}"
|
||||||
EXIT_TXT="${BOLD}${CYAN}"
|
NUMS="${BOLD}"
|
||||||
fi
|
HELP_TXT="${NORMAL}"
|
||||||
|
EXIT_TXT="${BOLD}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
TITLES="${BOLD}${CYAN}"
|
||||||
|
TEXT="${NORMAL}${WHITE}"
|
||||||
|
NUMS="${NORMAL}${BOLD}${WHITE}"
|
||||||
|
HELP_TXT="${NORMAL}${CYAN}"
|
||||||
|
EXIT_TXT="${BOLD}${CYAN}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
printf %b "\\n${TITLES} Generate:${NORMAL}\\n"
|
printf %b "\\n${TITLES} Generate:${NORMAL}\\n"
|
||||||
printf %b "${NUMS} 1)${TEXT} Contribution stats (by author)\\n"
|
printf %b "${NUMS} 1)${TEXT} Contribution stats (by author)\\n"
|
||||||
|
|
|
||||||
|
|
@ -165,10 +165,13 @@ You can also set _GIT_MERGE_VIEW to only show merge commits, example:
|
||||||
.PP
|
.PP
|
||||||
.B export _GIT_MERGE_VIEW="exclusive"
|
.B export _GIT_MERGE_VIEW="exclusive"
|
||||||
.PP
|
.PP
|
||||||
You can switch to the legacy color scheme, example:
|
You can change to the legacy color scheme by toggling the variable `_MENU_THEME` between `default` and `legacy`. You can completely disable the color theme by setting the `_MENU_THEME` variable to `none`, example:
|
||||||
.PP
|
.PP
|
||||||
.B export _MENU_THEME=legacy
|
.B export _MENU_THEME=legacy
|
||||||
.PP
|
.PP
|
||||||
|
or
|
||||||
|
.B export _MENU_THEME=none
|
||||||
|
.PP
|
||||||
You can set _GIT_BRANCH to set the branch of the stats, example:
|
You can set _GIT_BRANCH to set the branch of the stats, example:
|
||||||
.PP
|
.PP
|
||||||
.B export _GIT_BRANCH="master"
|
.B export _GIT_BRANCH="master"
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,8 @@ ADDITIONAL USAGE
|
||||||
ex: export _GIT_MERGE_VIEW=enable
|
ex: export _GIT_MERGE_VIEW=enable
|
||||||
You can also set _GIT_MERGE_VIEW to only show merge commits
|
You can also set _GIT_MERGE_VIEW to only show merge commits
|
||||||
ex: export _GIT_MERGE_VIEW=exclusive
|
ex: export _GIT_MERGE_VIEW=exclusive
|
||||||
You can set _MENU_THEME to display the legacy color scheme
|
You can change to the legacy color scheme by toggling the variable \"_MENU_THEME\" between \"default\" and \"legacy\".
|
||||||
|
You can completely disable the color theme by setting the \"_MENU_THEME\" variable to \"none\".
|
||||||
ex: export _MENU_THEME=legacy
|
ex: export _MENU_THEME=legacy
|
||||||
You can set _GIT_BRANCH to set the branch of the stats
|
You can set _GIT_BRANCH to set the branch of the stats
|
||||||
ex: export _GIT_BRANCH=master
|
ex: export _GIT_BRANCH=master
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue