dont blink curosr while not focused in elm and... make cursor a blink

not fade - less wakeups :)



SVN revision: 77037
This commit is contained in:
Carsten Haitzler 2012-09-24 14:45:54 +00:00
parent 4f0e673c1d
commit 4e4f0c40c1
2 changed files with 195 additions and 165 deletions

View File

@ -1907,153 +1907,168 @@ collections {
} }
} }
group { name: "elm/entry/cursor/default"; group { name: "elm/entry/cursor/default";
images { images {
image: "cur_box.png" COMP; image: "cur_box.png" COMP;
image: "cur_hi.png" COMP; image: "cur_hi.png" COMP;
image: "cur_shad.png" COMP; image: "cur_shad.png" COMP;
image: "cur_shine.png" COMP; image: "cur_shine.png" COMP;
image: "cur_glow.png" COMP; image: "cur_glow.png" COMP;
} }
parts { parts {
part { name: "clip2"; part { name: "clip2";
type: RECT; type: RECT;
mouse_events: 0; mouse_events: 0;
description { state: "default" 0.0; description { state: "default" 0.0;
rel1.to: "clip"; rel1.to: "clip";
rel2.to: "clip"; rel2.to: "clip";
visible: 0; visible: 0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
visible: 1;
}
} }
part { name: "clip"; description { state: "focused" 0.0;
type: RECT; inherit: "default" 0.0;
mouse_events: 0; visible: 1;
clip_to: "clip2";
description { state: "default" 0.0;
rel1.offset: -10 0;
rel2.offset: 9 9;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "bg";
mouse_events: 0;
clip_to: "clip";
description { state: "default" 0.0;
rel1.to: "base";
rel1.offset: -2 0;
rel2.to: "base";
rel2.offset: 1 1;
image.border: 2 2 2 2;
image.normal: "cur_shad.png";
}
}
part { name: "base";
mouse_events: 0;
scale: 1;
clip_to: "clip";
description { state: "default" 0.0;
min: 2 2;
align: 0.5 1.0;
rel1.relative: 0.0 1.0;
rel1.offset: 0 -1;
rel2.relative: 1.0 1.0;
rel2.offset: -1 -1;
image.normal: "cur_box.png";
}
}
part { name: "hi";
mouse_events: 0;
clip_to: "clip";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
rel2.relative: 1.0 0.5;
image.normal: "cur_hi.png";
}
}
part { name: "shine";
mouse_events: 0;
clip_to: "clip";
clip_to: "clip2";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
rel2.relative: 1.0 0.75;
image.border: 2 2 1 0;
image.normal: "cur_shine.png";
fill.smooth: 0;
}
}
part { name: "glow";
mouse_events: 0;
clip_to: "clip2";
description { state: "default" 0.0;
rel1.to: "base";
rel1.relative: 0.0 -2.0;
rel1.offset: -2 0;
rel2.to: "base";
rel2.relative: 1.0 0.0;
rel2.offset: 1 1;
image.border: 2 2 0 4;
image.normal: "cur_glow.png";
fill.smooth: 0;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
}
} }
} }
programs { part { name: "clip";
program { name: "show"; type: RECT;
signal: "show"; mouse_events: 0;
source: ""; clip_to: "clip2";
action: STATE_SET "hidden" 0.0; description { state: "default" 0.0;
in: 1.0 0.0; rel1.offset: -10 0;
transition: DECELERATE 2.0; rel2.offset: 9 9;
target: "glow"; visible: 0;
after: "show2";
} }
program { name: "show2"; description { state: "visible" 0.0;
action: STATE_SET "hidden" 0.0; inherit: "default" 0.0;
in: 0.2 0.0; visible: 1;
target: "clip";
after: "show3";
} }
program { name: "show3"; }
action: STATE_SET "default" 0.0; part { name: "bg";
in: 0.5 0.0; mouse_events: 0;
target: "clip"; clip_to: "clip";
after: "show4"; description { state: "default" 0.0;
rel1.to: "base";
rel1.offset: -2 0;
rel2.to: "base";
rel2.offset: 1 1;
image.border: 2 2 2 2;
image.normal: "cur_shad.png";
} }
program { name: "show4"; }
action: STATE_SET "default" 0.0; part { name: "base";
in: 0.5 0.0; mouse_events: 0;
transition: DECELERATE 0.5; scale: 1;
target: "glow"; clip_to: "clip";
after: "show"; description { state: "default" 0.0;
min: 2 2;
align: 0.5 1.0;
rel1.relative: 0.0 1.0;
rel1.offset: 0 -1;
rel2.relative: 1.0 1.0;
rel2.offset: -1 -1;
image.normal: "cur_box.png";
} }
program { name: "focused"; }
signal: "elm,action,focus"; part { name: "hi";
source: "elm"; mouse_events: 0;
action: STATE_SET "focused" 0.0; clip_to: "clip";
target: "clip2"; description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
rel2.relative: 1.0 0.5;
image.normal: "cur_hi.png";
} }
program { name: "unfocused"; }
signal: "elm,action,unfocus"; part { name: "shine";
source: "elm"; mouse_events: 0;
action: STATE_SET "default" 0.0; clip_to: "clip";
target: "clip2"; clip_to: "clip2";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
rel2.relative: 1.0 0.75;
image.border: 2 2 1 0;
image.normal: "cur_shine.png";
fill.smooth: 0;
}
}
part { name: "glow";
mouse_events: 0;
clip_to: "clip2";
description { state: "default" 0.0;
rel1.to: "base";
rel1.relative: 0.0 -2.0;
rel1.offset: -2 0;
rel2.to: "base";
rel2.relative: 1.0 0.0;
rel2.offset: 1 1;
image.border: 2 2 0 4;
image.normal: "cur_glow.png";
fill.smooth: 0;
color: 255 255 255 0;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 55;
visible: 1;
} }
} }
} }
programs {
program { name: "blink";
action: STATE_SET "visible" 0.0;
in: 0.2 0.0;
target: "clip";
after: "blink2";
}
program { name: "blink2";
action: STATE_SET "visible" 0.0;
in: 0.2 0.0;
target: "glow";
after: "blink3";
}
program { name: "blink3";
action: STATE_SET "default" 0.0;
in: 0.2 0.0;
target: "glow";
after: "blink4";
}
program { name: "blink4";
action: STATE_SET "default" 0.0;
in: 0.2 0.0;
target: "clip";
after: "blink";
}
program { name: "noblink";
action: ACTION_STOP;
target: "blink";
target: "blink2";
target: "blink3";
target: "blink4";
after: "noblink2";
}
program { name: "noblink2";
action: STATE_SET "default" 0.0;
target: "clip";
target: "glow";
}
program { name: "focused";
signal: "elm,action,focus";
source: "elm";
action: STATE_SET "focused" 0.0;
target: "clip2";
after: "blink";
}
program { name: "unfocused";
signal: "elm,action,unfocus";
source: "elm";
action: STATE_SET "default" 0.0;
target: "clip2";
after: "noblink";
}
}
}
group { name: "elm/entry/selection/default"; group { name: "elm/entry/selection/default";
parts { parts {

View File

@ -1251,11 +1251,12 @@ group { name: "elm/entry/cursor/default";
description { state: "default" 0.0; description { state: "default" 0.0;
rel1.offset: -10 0; rel1.offset: -10 0;
rel2.offset: 9 9; rel2.offset: 9 9;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0; visible: 0;
} }
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
}
} }
part { name: "bg"; part { name: "bg";
mouse_events: 0; mouse_events: 0;
@ -1319,53 +1320,67 @@ group { name: "elm/entry/cursor/default";
image.border: 2 2 0 4; image.border: 2 2 0 4;
image.normal: "cur_glow.png"; image.normal: "cur_glow.png";
fill.smooth: 0; fill.smooth: 0;
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0; color: 255 255 255 0;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 55;
visible: 1;
} }
} }
} }
programs { programs {
program { name: "show"; program { name: "blink";
signal: "show"; action: STATE_SET "visible" 0.0;
source: "";
action: STATE_SET "hidden" 0.0;
in: 1.0 0.0;
transition: DECELERATE 2.0;
target: "glow";
after: "show2";
}
program { name: "show2";
action: STATE_SET "hidden" 0.0;
in: 0.2 0.0; in: 0.2 0.0;
target: "clip"; target: "clip";
after: "show3"; after: "blink2";
} }
program { name: "show3"; program { name: "blink2";
action: STATE_SET "default" 0.0; action: STATE_SET "visible" 0.0;
in: 0.5 0.0; in: 0.2 0.0;
target: "clip"; target: "glow";
after: "show4"; after: "blink3";
} }
program { name: "show4"; program { name: "blink3";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
in: 0.5 0.0; in: 0.2 0.0;
transition: DECELERATE 0.5; target: "glow";
after: "blink4";
}
program { name: "blink4";
action: STATE_SET "default" 0.0;
in: 0.2 0.0;
target: "clip";
after: "blink";
}
program { name: "noblink";
action: ACTION_STOP;
target: "blink";
target: "blink2";
target: "blink3";
target: "blink4";
after: "noblink2";
}
program { name: "noblink2";
action: STATE_SET "default" 0.0;
target: "clip";
target: "glow"; target: "glow";
after: "show";
} }
program { name: "focused"; program { name: "focused";
signal: "elm,action,focus"; signal: "elm,action,focus";
source: "elm"; source: "elm";
action: STATE_SET "focused" 0.0; action: STATE_SET "focused" 0.0;
target: "clip2"; target: "clip2";
after: "blink";
} }
program { name: "unfocused"; program { name: "unfocused";
signal: "elm,action,unfocus"; signal: "elm,action,unfocus";
source: "elm"; source: "elm";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
target: "clip2"; target: "clip2";
after: "noblink";
} }
} }
} }