summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-06-11 19:05:22 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-06-11 19:05:22 +0900
commitef113cafc390bc3a6792c86ae56a7f42cfe89783 (patch)
treec7697b23bd6d531e656a6cb4f7ca429273e2c839
parenteac7515e16e4837655cf945a17894d518cd5b32c (diff)
downloadelementary-ef113cafc390bc3a6792c86ae56a7f42cfe89783.tar.gz
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.
-rw-r--r--data/themes/Makefile.am3
-rw-r--r--data/themes/edc/syscon.edc48
-rw-r--r--data/themes/img/btn_round_0.pngbin0 -> 12344 bytes
-rw-r--r--data/themes/img/btn_round_1.pngbin0 -> 14763 bytes
-rw-r--r--data/themes/img/btn_round_2.pngbin0 -> 14857 bytes
-rw-r--r--data/themes/orig/mock-23.xcf.gzbin0 -> 72417 bytes
6 files changed, 51 insertions, 0 deletions
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index e8f3d6eb3..562c56e2e 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -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 \
diff --git a/data/themes/edc/syscon.edc b/data/themes/edc/syscon.edc
index 0aa5f4044..32bc51c81 100644
--- a/data/themes/edc/syscon.edc
+++ b/data/themes/edc/syscon.edc
@@ -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";
+ }
+ }
+}
diff --git a/data/themes/img/btn_round_0.png b/data/themes/img/btn_round_0.png
new file mode 100644
index 000000000..cdbcf6a38
--- /dev/null
+++ b/data/themes/img/btn_round_0.png
Binary files differ
diff --git a/data/themes/img/btn_round_1.png b/data/themes/img/btn_round_1.png
new file mode 100644
index 000000000..0d5c40df2
--- /dev/null
+++ b/data/themes/img/btn_round_1.png
Binary files differ
diff --git a/data/themes/img/btn_round_2.png b/data/themes/img/btn_round_2.png
new file mode 100644
index 000000000..1221782d3
--- /dev/null
+++ b/data/themes/img/btn_round_2.png
Binary files differ
diff --git a/data/themes/orig/mock-23.xcf.gz b/data/themes/orig/mock-23.xcf.gz
new file mode 100644
index 000000000..8e9560293
--- /dev/null
+++ b/data/themes/orig/mock-23.xcf.gz
Binary files differ