forked from enlightenment/efl
colorclass: add focus glow to color type selector
This commit is contained in:
parent
c9e85eb2e1
commit
1ee3041767
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue