update
This commit is contained in:
parent
2a47f2d6b6
commit
18d34168c7
@ -4,7 +4,7 @@
|
||||
# TODO check for other color-tools like gpick,gcolor2 and add launchers to menu
|
||||
# TODO export to .gpl (GIMP,Inkscape)
|
||||
|
||||
VERSION="0.1.7"
|
||||
VERSION="0.2.0"
|
||||
TEMP_DIR=/tmp/colormenu
|
||||
ME=${0##*/}
|
||||
|
||||
@ -72,6 +72,8 @@ pickcolor() {
|
||||
fi
|
||||
$ME
|
||||
}
|
||||
|
||||
## pycolor pick color by pyqt color dialog - not used yet
|
||||
pycolor() {
|
||||
read -r -d '' script <<-"----EOF"
|
||||
import sys
|
||||
@ -91,6 +93,7 @@ if __name__ == "__main__":
|
||||
----EOF
|
||||
python -c "$script"
|
||||
}
|
||||
|
||||
addcolor() {
|
||||
color=$(gcolor3)
|
||||
if [ -n "${color}" ]; then
|
||||
@ -154,7 +157,7 @@ palettes() {
|
||||
#name=$(printf "%22s %s\n" "$name")
|
||||
#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><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"
|
||||
if [[ -n "$1" ]] ; then
|
||||
out2+=("^sep()")
|
||||
@ -180,6 +183,7 @@ palettes() {
|
||||
fi
|
||||
}
|
||||
|
||||
## not used anymore(?)
|
||||
htmlcolors() {
|
||||
out+=("<b>HTML</b> colors,^checkout(html)")
|
||||
out2+=("^tag(html)")
|
||||
|
Loading…
Reference in New Issue
Block a user