nyanology: add tab-related stuff (copy/paste from default)

This commit is contained in:
Boris Faure 2014-05-10 14:26:45 +02:00
parent 2c368e89b5
commit 97ab760016
1 changed files with 291 additions and 0 deletions

View File

@ -10,6 +10,7 @@ collections {
image: "pm_shadow.png" COMP;
image: "pm_overlay.png" COMP;
image: "pm_fill.png" COMP;
image: "cr_glow.png" COMP;
}
parts {
// other signals sent not handled here
@ -118,6 +119,296 @@ collections {
}
}
////////////////////////////////////////////////////////////////////
// indicator of other tabs and control
part { name: "tabcount_clip"; type: RECT;
description { state: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
description { state: "on" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
}
}
part { name: "terminology.tabmissed.label"; type: TEXT; mouse_events: 0;
effect: GLOW;
scale: 1;
clip_to: "tabcount_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "terminology.tabcount.label";
rel2.to: "terminology.tabcount.label";
rel1.offset: -4 0;
rel2.relative: 0.0 1.0;
rel2.offset: -5 -1;
color: 255 153 51 64;
color2: 255 51 0 18;
color3: 255 0 0 8;
align: 1.0 0.5;
text { font: "Sans"; size: 8;
align: 1.0 0.5;
min: 1 1;
}
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 255 255 64 255;
color2: 255 153 51 128;
color3: 255 0 0 20;
}
}
part { name: "terminology.tabcount.label"; type: TEXT; mouse_events: 0;
effect: GLOW;
scale: 1;
clip_to: "tabcount_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "terminology.tabcount.control";
rel2.to: "terminology.tabcount.control";
rel1.relative: -0.2 0.0;
rel2.relative: -0.2 1.0;
color: 51 153 255 64;
color2: 51 153 255 18;
color3: 51 153 255 8;
align: 1.0 0.5;
text { font: "Sans"; size: 8;
align: 1.0 0.5;
min: 1 1;
}
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
color2: 51 153 255 128;
color3: 51 153 255 20;
}
}
part { name: "tabcount_glow_r0";
clip_to: "tabcount_clip";
description { state: "default" 0.0;
rel1.to: "tabcount_r0";
rel2.to: "tabcount_r0";
rel1.offset: -4 -4;
rel2.offset: 3 3;
image {
normal: "cr_glow.png";
border: 9 9 9 9;
}
color: 51 153 255 32;
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
}
part { name: "tabcount_glow_r1";
clip_to: "tabcount_clip";
description { state: "default" 0.0;
rel1.to: "tabcount_r1";
rel2.to: "tabcount_r1";
rel1.offset: -4 -4;
rel2.offset: 3 3;
image {
normal: "cr_glow.png";
border: 9 9 9 9;
}
color: 51 153 255 32;
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
}
part { name: "tabcount_glow_r2";
clip_to: "tabcount_clip";
description { state: "default" 0.0;
rel1.to: "tabcount_r2";
rel2.to: "tabcount_r2";
rel1.offset: -4 -4;
rel2.offset: 3 3;
image {
normal: "cr_glow.png";
border: 9 9 9 9;
}
color: 51 153 255 32;
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
}
part { name: "tabcount_glow_r3";
clip_to: "tabcount_clip";
description { state: "default" 0.0;
rel1.to: "tabcount_r3";
rel2.to: "tabcount_r3";
rel1.offset: -4 -4;
rel2.offset: 3 3;
image {
normal: "cr_glow.png";
border: 9 9 9 9;
}
color: 51 153 255 32;
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
}
part { name: "tabcount_r0"; type: RECT;
clip_to: "tabcount_clip";
description { state: "default" 0.0;
rel1.to: "terminology.tabcount.control";
rel2.to: "terminology.tabcount.control";
rel1.relative: 0.05 0.05;
rel2.relative: 0.45 0.45;
color: 255 255 255 32;
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
part { name: "tabcount_r1"; type: RECT;
clip_to: "tabcount_clip";
description { state: "default" 0.0;
rel1.to: "terminology.tabcount.control";
rel2.to: "terminology.tabcount.control";
rel1.relative: 0.55 0.05;
rel2.relative: 0.95 0.45;
color: 255 255 255 32;
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
part { name: "tabcount_r2"; type: RECT;
clip_to: "tabcount_clip";
description { state: "default" 0.0;
rel1.to: "terminology.tabcount.control";
rel2.to: "terminology.tabcount.control";
rel1.relative: 0.05 0.55;
rel2.relative: 0.45 0.95;
color: 255 255 255 32;
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
part { name: "tabcount_r3"; type: RECT;
clip_to: "tabcount_clip";
description { state: "default" 0.0;
rel1.to: "terminology.tabcount.control";
rel2.to: "terminology.tabcount.control";
rel1.relative: 0.55 0.55;
rel2.relative: 0.95 0.95;
color: 255 255 255 32;
}
description { state: "over" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
part { name: "terminology.tabcount.control"; type: SWALLOW;
clip_to: "tabcount_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.relative: 1.0 0.0;
rel1.offset: -3 2;
rel2.relative: 1.0 0.0;
rel2.offset: -3 2;
align: 1.0 0.0;
min: 16 16;
}
}
part { name: "tabcount_ev"; type: RECT; repeat_events: 1;
clip_to: "tabcount_clip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "terminology.tabcount.control";
rel2.to: "terminology.tabcount.control";
color: 0 0 0 0;
}
}
program {
signal: "mouse,in"; source: "tabcount_ev";
action: STATE_SET "over" 0.0;
transition: DECELERATE 0.5;
target: "tabcount_r0";
target: "tabcount_r1";
target: "tabcount_r2";
target: "tabcount_r3";
target: "tabcount_glow_r0";
target: "tabcount_glow_r1";
target: "tabcount_glow_r2";
target: "tabcount_glow_r3";
target: "terminology.tabcount.label";
target: "terminology.tabmissed.label";
}
program {
signal: "mouse,out"; source: "tabcount_ev";
action: STATE_SET "default" 0.0;
transition: DECELERATE 2.0;
target: "tabcount_r0";
target: "tabcount_r1";
target: "tabcount_r2";
target: "tabcount_r3";
target: "tabcount_glow_r0";
target: "tabcount_glow_r1";
target: "tabcount_glow_r2";
target: "tabcount_glow_r3";
target: "terminology.tabcount.label";
target: "terminology.tabmissed.label";
}
program {
signal: "mouse,clicked,1"; source: "tabcount_ev";
action: SIGNAL_EMIT "tabcount,go" "terminology";
}
program {
signal: "mouse,wheel,0,-1"; source: "tabcount_ev";
action: SIGNAL_EMIT "tabcount,prev" "terminology";
}
program {
signal: "mouse,wheel,0,1"; source: "tabcount_ev";
action: SIGNAL_EMIT "tabcount,next" "terminology";
}
program {
signal: "tabcount,off"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.5;
target: "tabcount_clip";
}
program {
signal: "tabcount,on"; source: "terminology";
action: STATE_SET "on" 0.0;
transition: DECELERATE 0.5;
target: "tabcount_clip";
}
program {
signal: "tabmissed,off"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.5;
target: "terminology.tabmissed.label";
}
program {
signal: "tabmissed,on"; source: "terminology";
action: STATE_SET "over" 0.0;
transition: DECELERATE 0.2;
target: "terminology.tabmissed.label";
after: "tabmissed2";
}
program { name: "tabmissed2";
signal: "tabmissed,on"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: DECELERATE 3.0;
target: "terminology.tabmissed.label";
}
////////////////////////////////////////////////////////////////////
// overlayed prettiness
part { name: "bevel";