theme - syscon - power gadget - fix so we have an actual theme for it

this fixes a pretty ugly bug where a bodhi power gadget was ported in
without the graphics being fixed up. this does that in the theme.
This commit is contained in:
Carsten Haitzler 2014-06-11 19:05:22 +09:00
parent bf42a63d80
commit 9fde71b0c1
6 changed files with 51 additions and 0 deletions

View File

@ -184,6 +184,9 @@ img/box_outline.png \
img/bt_base.png \
img/bt_sig_1.png \
img/bt_sig_2.png \
img/btn_round_0.png \
img/btn_round_1.png \
img/btn_round_2.png \
img/bub_base_b0.png \
img/bub_base_b1.png \
img/bub_base_b2.png \

View File

@ -282,3 +282,51 @@ group { name: "e/widgets/syscon/item/button";
}
}
}
group { name: "e/modules/syscon/button";
images.image: "btn_round_0.png" COMP;
images.image: "btn_round_1.png" COMP;
images.image: "btn_round_2.png" COMP;
parts {
part { name: "base";
description { state: "default" 0.0;
image.normal: "btn_round_0.png";
aspect: 1.0 1.0; aspect_preference: BOTH;
}
description { state: "hilight" 0.0;
inherit: "default" 0.0;
image.normal: "btn_round_1.png";
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
image.normal: "btn_round_2.png";
}
}
}
programs {
program {
signal: "mouse,down,1"; source: "base";
action: STATE_SET "clicked" 0.0;
target: "base";
}
program {
signal: "mouse,up,1"; source: "base";
action: STATE_SET "hilight" 0.0;
target: "base";
}
program {
signal: "mouse,in"; source: "base";
action: STATE_SET "hilight" 0.0;
target: "base";
}
program {
signal: "mouse,out"; source: "base";
action: STATE_SET "default" 0.0;
target: "base";
}
program {
signal: "mouse,clicked,1*"; source: "base";
action: SIGNAL_EMIT "e,action,shutdown,show" "e";
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.