parent
e9a3fd7333
commit
f36aa54f40
|
@ -156,14 +156,21 @@ palettes() {
|
|||
#out2+=("<tt><span bgcolor='$color' fgcolor='$fg'><sub> </sub>$color<sup>$name </sup></span></tt>,$ME getcolorcode '$color' '$file',,,#${palette}")
|
||||
out2+=("<tt><small>$color</small> <span bgcolor='$color'><sub> </sub> <sup> </sup></span></tt>,$ME getcolorcode '$color' '$file',,,#${palette}")
|
||||
done < "$file"
|
||||
if [[ -n "$1" ]] ; then
|
||||
out2+=("^sep()")
|
||||
out2+=("<b>Add color...</b> from screen,$ME pickcolor '$file'")
|
||||
if hash pyuic5 2>/dev/null; then
|
||||
out2+=("^sep()")
|
||||
out2+=("<b>Add</b> color from selector...,$ME addcolor")
|
||||
fi
|
||||
out2+=("^sep()")
|
||||
out2+=("<b>Add color...</b> (colorpicker),$ME pickcolor '$file'")
|
||||
out2+=("<b>Edit</b> palette file,xdg-open '$file'")
|
||||
out2+=("^sep(Danger zone...)")
|
||||
out2+=("<b>Delete</b> palette: ${palette^},^checkout($tagname-del)")
|
||||
out3+=("^tag($tagname-del)")
|
||||
out3+=("^sep(Are you sure?)")
|
||||
out3+=("Yes,rm '$file';$ME")
|
||||
fi
|
||||
done
|
||||
#if [[ $# = 0 ]] ; then
|
||||
if [[ -n "$1" ]] ; then
|
||||
|
@ -310,7 +317,10 @@ trap "rm -f ${CONFIG_FILE} ${MENU_ITEMS}" EXIT
|
|||
out+=("^sep(mbxcolors <sup><span font_weight='light'> [$action $format]</span></sup>)")
|
||||
#out+=("^sep(<span bgcolor='#800000'> </span><span fgcolor='#800000' bgcolor='#FABD2F'> mbx </span><span fgcolor='#FABD2F' bgcolor='#800000'> colors </span><span bgcolor='#FABD2F'> </span> <sup><span font_weight='light'>[$action $format]</span></sup>)")
|
||||
out+=("<b>Pick</b> color from screen...,$ME pickcolor")
|
||||
out+=("<b>Add</b> color...,$ME addcolor")
|
||||
if hash pyuic5 2>/dev/null; then
|
||||
out+=("^sep()")
|
||||
out+=("<b>Add</b> color from selector...,$ME addcolor")
|
||||
fi
|
||||
# exposed thing
|
||||
case "$expose" in
|
||||
used)
|
||||
|
|
Loading…
Reference in New Issue