From cb5b426f71d7882ea06bd4da44b4c9ae01dc2402 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 6 Apr 2015 14:09:47 -0400 Subject: [PATCH] colorclass: add focus glow to color type selector --- data/themes/edc/elm/colorclass.edc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/data/themes/edc/elm/colorclass.edc b/data/themes/edc/elm/colorclass.edc index ee9746b..bda0ad7 100644 --- a/data/themes/edc/elm/colorclass.edc +++ b/data/themes/edc/elm/colorclass.edc @@ -156,6 +156,11 @@ group { "colorclass/colors"; program_source: "elm"; nobroadcast; } program { signal: "mouse,down,1"; source: "color1"; action: SIGNAL_EMIT "select,1" "elm"; + sequence { + action: STATE_SET "default"; + transition: LINEAR 0.2; + target: "glow"; + } } } group { "color2"; source: "colorclass/color2"; @@ -171,6 +176,11 @@ group { "colorclass/colors"; program_source: "elm"; nobroadcast; } program { signal: "mouse,down,1"; source: "color2"; action: SIGNAL_EMIT "select,2" "elm"; + sequence { + action: STATE_SET "color2"; + transition: LINEAR 0.2; + target: "glow"; + } } } group { "color3"; source: "colorclass/color3"; @@ -187,6 +197,33 @@ group { "colorclass/colors"; program_source: "elm"; nobroadcast; } program { signal: "mouse,down,1"; source: "color3"; action: SIGNAL_EMIT "select,3" "elm"; + sequence { + action: STATE_SET "color3"; + transition: LINEAR 0.2; + target: "glow"; + } + } + } + image { "glow"; nomouse; + desc { + image.normal: "box_glow.png"; + image.border: 12 12 12 12; + image.middle: 0; + fill.smooth: 0; + rel1.offset: -7 -8; + rel1.to: "color1"; + rel2.offset: 7 7; + rel2.to: "color1"; + rel2.relative: 1 1; + fixed: 1 1; + } + desc { "color2"; inherit: "default"; + rel1.to: "color2"; + rel2.to: "color2"; + } + desc { "color3"; inherit: "default"; + rel1.to: "color3"; + rel2.to: "color3"; } } swallow { "colors"; -- 2.7.4