font settings for menu
This commit is contained in:
parent
c208149bf9
commit
1df88f36cb
@ -335,8 +335,8 @@ out2+=("$TOPMARGIN [ <b>${panels_topmargin:-0}</b> ],^checkout(topmargin)")
|
||||
|
||||
# FONTS
|
||||
out+=("^sep(<i>$SIZE</i>)")
|
||||
out+=("$ITEM_FONT [ <b>$menu_font_family $menu_font_size</b> ],^checkout(itemfont)")
|
||||
out+=("$TITLE_FONT [ <b>$menu_sep_font_family $menu_sep_font_size</b> ],^checkout(titlefont)")
|
||||
out+=("<big></big> $ITEM_FONT [ <b>$menu_font_family $menu_font_size</b> ],^checkout(itemfont)")
|
||||
out+=("<big></big> $TITLE_FONT [ <b>$menu_sep_font_family $menu_sep_font_size</b> ],^checkout(titlefont)")
|
||||
#out+=("$FONT_FAMILY [ <b>${menu_font_family:-0}</b> ],^checkout(fonty)")
|
||||
#out+=("$FONT_SIZE [ <b>${menu_font_size:-0}</b> ],^checkout(fontsize)")
|
||||
out+=("$LINEHEIGHT [ <b>$item_height_factor%</b> ],^checkout(lineheight)")
|
||||
@ -352,27 +352,58 @@ case $menu_font_family in
|
||||
esac
|
||||
|
||||
out2+=("^tag(itemfont)")
|
||||
out2+=("^sep($FONT_FAMILY)")
|
||||
out2+=("$FONT_CUSTOM,mb-setfont menu_item;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=(" <tt>++</tt> $INCREASE ( $((menu_font_size+1)) ),mb-setvar menu_font_size=$((menu_font_size+1));$me")
|
||||
out2+=(" <tt>--</tt> $DECREASE ( $((menu_font_size-1)) ),mb-setvar menu_font_size=$((menu_font_size-1));$me")
|
||||
out2+=("^sep($ITEM_FONT)")
|
||||
out2+=("<big></big> $FONT_CUSTOM,mb-setfont menu_item;$me")
|
||||
out2+=("^sep()")
|
||||
|
||||
out2+=("<span size=\"x-large\" font_family=\"Noto Sans Light\">$nol Noto Sans Light</span>,mb-setvar \"menu_font_family='Noto Sans Light'\";$me")
|
||||
out2+=("<span size=\"x-large\" font_family=\"Noto Sans Medium\">$nom Noto Sans Medium</span>,mb-setvar \"menu_font_family='Noto Sans Medium'\";$me")
|
||||
out2+=("<span size=\"x-large\" font_family=\"DejaVu Serif\">$de DejaVu Serif</span>,mb-setvar \"menu_font_family='DejaVu Serif'\";$me")
|
||||
out2+=("<span size=\"x-large\" font_family=\"Roboto Light\">$ro Roboto Light</span>,mb-setvar \"menu_font_family='Roboto Light'\";$me")
|
||||
out2+=("<span size=\"x-large\" font_family=\"Inconsolata\">$in Inconsolata</span>,mb-setvar menu_font_family=Inconsolata;$me")
|
||||
out2+=("<span size=\"x-large\" font_family=\"Ubuntu Regular\">$ub Ubuntu Regular</span>,mb-setvar \"menu_font_family='Ubuntu Regular'\";$me")
|
||||
if [ -f "$HOME/.config/mabox/fonts.list" ];then
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" ~/.config/mabox/fonts.list)
|
||||
else
|
||||
mapfile -t favfonts < <( grep -vE "^($|#)" /usr/share/mabox-colorizer/fonts.list)
|
||||
cp /usr/share/mabox-colorizer/fonts.list ~/.config/mabox/
|
||||
fi
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$menu_font_family" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_font_family='${fon}'\";$me")
|
||||
done
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
out2+=("<small> Edit favorited fonts list</small>,geany ~/.config/mabox/fonts.list")
|
||||
out2+=("^sep($FONT_SIZE)")
|
||||
out2+=("<big></big> $INCREASE <b>$((menu_font_size+1)) px</b>,mb-setvar menu_font_size=$((menu_font_size+1));$me")
|
||||
out2+=("<big></big> $DECREASE <b>$((menu_font_size-1)) px</b>,mb-setvar menu_font_size=$((menu_font_size-1));$me")
|
||||
out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$menu_font_size" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,mb-setvar menu_font_size=$i;$me")
|
||||
done
|
||||
|
||||
|
||||
out2+=("^tag(titlefont)")
|
||||
out2+=("^sep($TITLE_FONT)")
|
||||
out2+=("$FONT_CUSTOM,mb-setfont menu_sep;$me")
|
||||
out2+=("<big></big> $FONT_CUSTOM,mb-setfont menu_sep;$me")
|
||||
out2+=("^sep()")
|
||||
out2+=(" <tt>++</tt> $INCREASE ( $((menu_sep_font_size+1)) ),mb-setvar menu_sep_font_size=$((menu_sep_font_size+1));$me")
|
||||
out2+=(" <tt>--</tt> $DECREASE ( $((menu_sep_font_size-1)) ),mb-setvar menu_sep_font_size=$((menu_sep_font_size-1));$me")
|
||||
|
||||
if [ "${#favfonts[@]}" -gt 0 ];then
|
||||
out2+=("^sep($FONT_FAMILY)")
|
||||
for fon in "${favfonts[@]}";do
|
||||
[[ "$menu_sep_font_family" == "$fon" ]] && out2+=("<big>綠</big> <span font_family=\"${fon}\">${fon}</span>,$me") || out2+=("<big>祿</big> <span font_family=\"${fon}\">${fon}</span>,mb-setvar \"menu_sep_font_family='${fon}'\";$me")
|
||||
done
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
out2+=("<small> Edit favorited fonts list</small>,geany ~/.config/mabox/fonts.list")
|
||||
out2+=("^sep($FONT_SIZE)")
|
||||
out2+=("<big></big> $INCREASE <b>$((menu_sep_font_size+1)) px</b>,mb-setvar menu_sep_font_size=$((menu_sep_font_size+1));$me")
|
||||
out2+=("<big></big> $DECREASE <b>$((menu_sep_font_size-1)) px</b>,mb-setvar menu_sep_font_size=$((menu_sep_font_size-1));$me")
|
||||
out2+=("^sep()")
|
||||
sizes=(14 13 12 11 10 9 8)
|
||||
for i in "${sizes[@]}"
|
||||
do
|
||||
[[ "$menu_sep_font_size" == "$i" ]] && out2+=("<big>綠</big> <b>$i px</b>,$me") || out2+=("<big>祿</big> $i px,mb-setvar menu_sep_font_size=$i;$me")
|
||||
done
|
||||
|
||||
out2+=("^tag(lineheight)")
|
||||
for i in 160 180 200 240 280 300 400; do out2+=("$(printf "<tt>%4s%%</tt>,%s" "$i" "mb-setvar item_height_factor=${i};$me")");done
|
||||
|
Loading…
Reference in New Issue
Block a user