TH - conf

This commit is contained in:
Carsten Haitzler 2018-12-05 14:28:53 +00:00
parent dfa82c2e36
commit 5999b5d4b5
2 changed files with 18 additions and 52 deletions

View File

@ -21,10 +21,10 @@ group { name: "e/widgets/configure/main";
}
part { name: "e.swallow.content"; type: SWALLOW;
description { state: "default" 0.0;
rel1.offset: 8 8;
rel1.offset: 0 8;
rel1.to_x: "base";
rel2.relative: 1.0 0.0;
rel2.offset: -9 -17;
rel2.offset: -1 -17;
rel2.to_y: "e.swallow.button";
}
}
@ -42,61 +42,36 @@ group { name: "e/widgets/configure/main";
}
group { name: "e/modules/conf/main";
images.image: "button_normal.png" COMP;
images.image: "button_clicked.png" COMP;
images.image: "spanner_inset.png" COMP;
images.image: "spanner_hilight.png" COMP;
images.image: "spanner_glow.png" COMP;
images.image: "spanner.png" COMP;
min: 16 16;
max: 80 80;
parts {
part { name: "base";
part { name: "base"; type: RECT;
scale: 1;
description { state: "default" 0.0;
image.normal: "button_normal.png";
image.border: 4 4 3 5;
image.middle: SOLID;
rel1.offset: -1 0;
rel2.offset: 0 1;
fill.smooth: 0;
color: 80 80 80 255;
rel1.offset: 2 2;
rel2.offset: -3 -3;
offscale;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
image.normal: "button_clicked.png";
image.border: 5 5 4 6;
}
}
part { name: "spanner_hilight"; mouse_events: 0;
description { state: "default" 0.0;
aspect: 1.0 1.0; aspect_preference: BOTH;
max: 80 80;
rel1.offset: 0 1;
rel1.to: "spanner";
rel2.offset: -1 0;
rel2.to: "spanner";
image.normal: "spanner_hilight.png";
color: 40 40 40 255;
}
}
part { name: "spanner"; mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
aspect: 1.0 1.0; aspect_preference: BOTH;
max: 80 80;
rel.to: "base";
rel1.offset: 4 4;
rel2.offset: -5 -5;
image.normal: "spanner_inset.png";
}
}
part { name: "spanner_glow"; mouse_events: 0;
description { state: "default" 0.0;
aspect: 1.0 1.0; aspect_preference: BOTH;
max: 80 80;
rel1.to: "spanner";
rel2.to: "spanner";
image.normal: "spanner_glow.png";
visible: 0;
image.normal: "spanner.png";
offscale;
color: 160 160 160 255;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
}
}
}
@ -105,26 +80,17 @@ group { name: "e/modules/conf/main";
signal: "mouse,down,1"; source: "base";
action: STATE_SET "clicked" 0.0;
target: "base";
target: "spanner";
}
program {
signal: "mouse,up,1"; source: "base";
action: STATE_SET "default" 0.0;
target: "base";
target: "spanner_glow";
target: "spanner";
}
program {
signal: "mouse,clicked,1*"; source: "base";
action: SIGNAL_EMIT "e,action,conf" "";
}
program {
signal: "mouse,in"; source: "base";
action: STATE_SET "clicked" 0.0;
target: "spanner_glow";
}
program {
signal: "mouse,out"; source: "base";
action: STATE_SET "default" 0.0;
target: "spanner_glow";
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB