gradient reverse for menus

master 0.8.1
Daniel Napora 2022-09-21 13:37:15 +02:00
parent 0e5a3f9c6b
commit 2a438d003c
1 changed files with 5 additions and 1 deletions

View File

@ -42,6 +42,7 @@ case "$LANG" in
BOTTOM_LEFT="z dołu od lewej (bottom_left)"
BOTTOM_RIGHT="z dołu od prawej (bottom_right)"
PRE_GRADIENTS="Gotowe gradienty"
GRADIENT_REVERSE="Odwróć kolory Gradientu"
ITEM="pozycja menu (element)"
COLOR_NORM_FG="Kolor tekstu"
COLOR_SEL_BG="Tło aktywnej pozycji"
@ -86,6 +87,7 @@ case "$LANG" in
BOTTOM_LEFT="bottom_left"
BOTTOM_RIGHT="bottom_right"
PRE_GRADIENTS="Predefined gradients"
GRADIENT_REVERSE="Reverse Gradient"
ITEM="item"
COLOR_NORM_FG="Text Color"
COLOR_SEL_BG="Selected Item Background"
@ -149,6 +151,7 @@ out+=("<tt><small>$(printf '%3s' "$MBORDERA")</small> <span bgcolor='$MBORDER' b
out+=("^sep()")
out+=("$GRADIENT_POS [ <b>$GRADIENT</b> ],^checkout(gradientpos)")
out+=("$PRE_GRADIENTS,^pipe(mbgrad menu)")
out+=(" $GRADIENT_REVERSE,jgctl gradient '${MBGT}' '${MBG}';$me")
out+=("^sep($ITEM)")
out+=("<tt><small>$(printf '%3s' "$NFGA")</small> <span weight='bold' fgcolor='$NFG' fgalpha='${NFGA/#[0]/1}%'> AbCd </span></tt> $COLOR_NORM_FG,^pipe(mbclr '$NFG' jgctl color_norm_fg '${COLOR_NORM_FG}' '$me')")
@ -215,7 +218,8 @@ if [ -f "${THEMERC}.bak" ]; then
out+=(" $RESET <i>${jgmenu_theme}</i> $TO_DEFAULT,jgctl reset;$me")
fi
out+=(" $EDIT <i>${jgmenu_theme}</i> $FILE,xdg-open $THEMERC")
out+=(" $SET_RANDOM,mb-setvar jgmenu_theme=$(basename -s .colorrc $(ls ~/.config/mabox/jgobthemes/*.colorrc | shuf -n 1));$me")
### We don't need many menu themes anymore
#out+=(" $SET_RANDOM,mb-setvar jgmenu_theme=$(basename -s .colorrc $(ls ~/.config/mabox/jgobthemes/*.colorrc | shuf -n 1));$me")
### RUN
if [[ "$1" == "-s" ]]; then