master
Daniel Napora 2021-10-28 22:31:59 +02:00
parent 2a47f2d6b6
commit 18d34168c7
1 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@
# TODO check for other color-tools like gpick,gcolor2 and add launchers to menu # TODO check for other color-tools like gpick,gcolor2 and add launchers to menu
# TODO export to .gpl (GIMP,Inkscape) # TODO export to .gpl (GIMP,Inkscape)
VERSION="0.1.7" VERSION="0.2.0"
TEMP_DIR=/tmp/colormenu TEMP_DIR=/tmp/colormenu
ME=${0##*/} ME=${0##*/}
@ -72,6 +72,8 @@ pickcolor() {
fi fi
$ME $ME
} }
## pycolor pick color by pyqt color dialog - not used yet
pycolor() { pycolor() {
read -r -d '' script <<-"----EOF" read -r -d '' script <<-"----EOF"
import sys import sys
@ -91,6 +93,7 @@ if __name__ == "__main__":
----EOF ----EOF
python -c "$script" python -c "$script"
} }
addcolor() { addcolor() {
color=$(gcolor3) color=$(gcolor3)
if [ -n "${color}" ]; then if [ -n "${color}" ]; then
@ -154,7 +157,7 @@ palettes() {
#name=$(printf "%22s %s\n" "$name") #name=$(printf "%22s %s\n" "$name")
#fg=$(fgcolor $color) #fg=$(fgcolor $color)
#out2+=("<tt><span bgcolor='$color' fgcolor='$fg'><sub> </sub>$color<sup>$name </sup></span></tt>,$ME getcolorcode '$color' '$file',,,#${palette}") #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}") out2+=("<tt><small>$color</small> <span bgcolor='$color'><sub> </sub> <sup> </sup></span></tt>,$ME getcolorcode '$color' '$file';$ME setvar expose=palette,,,#${palette}")
done < "$file" done < "$file"
if [[ -n "$1" ]] ; then if [[ -n "$1" ]] ; then
out2+=("^sep()") out2+=("^sep()")
@ -180,6 +183,7 @@ palettes() {
fi fi
} }
## not used anymore(?)
htmlcolors() { htmlcolors() {
out+=("<b>HTML</b> colors,^checkout(html)") out+=("<b>HTML</b> colors,^checkout(html)")
out2+=("^tag(html)") out2+=("^tag(html)")