do not show built-in palettes by default

master
Daniel Napora 2021-10-26 20:42:46 +02:00
parent 6ebae82229
commit 808d47b266
1 changed files with 14 additions and 4 deletions

View File

@ -20,9 +20,11 @@ format=hex
#Action when color is clicked: paste (imadietely) or copy (to clipboard)
action=paste
#What thing to expose on top of main menu: recently picked colors, last used colors or last used palette
expose=picked
expose=html
#Show HTML colors? yes|no
htmlcolors=yes
htmlcolors=no
#Show built in palettes? (slow)
builin_palettes=no
#Position on screen: topleft, top, topright, left, center, right, bottomleft, bottom, bottomright
position=left
EOF
@ -92,6 +94,7 @@ newpalette() {
touch "$CNF_DIR/palettes/New_$DATE.clr"
}
palettes() {
out1+=("^sep(Color palettes)")
for file in "$CNF_DIR"/palettes/*.clr;do
filename=${file##*/}
palette=${filename%.*}
@ -300,8 +303,9 @@ case "$expose" in
;;
esac
out1+=("^sep(Color palettes)")
if [[ $builtin_palettes == "yes" ]];then
palettes
fi
out1+=("^sep(Settings)")
out1+=("Preferences,^pipe($ME preferences)")
@ -329,7 +333,8 @@ out2+=("<tt>$(printf "%-20s %20s" "Color click action:" "[<b>$action</b>]")</tt>
out2+=("<tt>$(printf "%-20s %20s" "Format:" "[<b>$format</b>]")</tt>,^checkout(format)")
out2+=("^sep()")
out2+=("<tt>$(printf "%-20s %20s" "Expose on top:" "[<b>$expose</b>]")</tt>,^checkout(expose)")
out2+=("<tt>$(printf "%-20s %20s" "Show HTML colors:" "[<b>$htmlcolors</b>]")</tt>,^checkout(showhtml)")
out2+=("<tt>$(printf "%-20s %20s" "HTML colors:" "[<b>$htmlcolors</b>]")</tt>,^checkout(showhtml)")
out2+=("<tt>$(printf "%-20s %20s" "Built-in palettes:" "[<b>$builtin_palettes</b>]")</tt>,^checkout(builtinpalettes)")
out2+=("^sep()")
out2+=("<tt>$(printf "%-20s %20s" "Position:" "[<b>$position</b>]")</tt>,^checkout(position)")
out2+=("^sep()")
@ -361,6 +366,11 @@ out2+=("^sep(Show HTML colors?)")
out2+=("yes,$ME setvar htmlcolors=yes;$ME")
out2+=("no,$ME setvar htmlcolors=no;$ME")
out2+=("^tag(builtinpalettes)")
out2+=("^sep(Show Built-in palettes?)")
out2+=("yes,$ME setvar builtin_palettes=yes;$ME")
out2+=("no,$ME setvar builtin_palettes=no;$ME")
out2+=("^tag(position)")
out2+=("^sep(Position on screen)")
out2+=("center,$ME setvar position=center;$ME")