diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2014-06-11 19:05:22 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2014-06-11 19:05:22 +0900 |
commit | ef113cafc390bc3a6792c86ae56a7f42cfe89783 (patch) | |
tree | c7697b23bd6d531e656a6cb4f7ca429273e2c839 | |
parent | eac7515e16e4837655cf945a17894d518cd5b32c (diff) | |
download | elementary-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.am | 3 | ||||
-rw-r--r-- | data/themes/edc/syscon.edc | 48 | ||||
-rw-r--r-- | data/themes/img/btn_round_0.png | bin | 0 -> 12344 bytes | |||
-rw-r--r-- | data/themes/img/btn_round_1.png | bin | 0 -> 14763 bytes | |||
-rw-r--r-- | data/themes/img/btn_round_2.png | bin | 0 -> 14857 bytes | |||
-rw-r--r-- | data/themes/orig/mock-23.xcf.gz | bin | 0 -> 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 Binary files differnew file mode 100644 index 000000000..cdbcf6a38 --- /dev/null +++ b/data/themes/img/btn_round_0.png diff --git a/data/themes/img/btn_round_1.png b/data/themes/img/btn_round_1.png Binary files differnew file mode 100644 index 000000000..0d5c40df2 --- /dev/null +++ b/data/themes/img/btn_round_1.png diff --git a/data/themes/img/btn_round_2.png b/data/themes/img/btn_round_2.png Binary files differnew file mode 100644 index 000000000..1221782d3 --- /dev/null +++ b/data/themes/img/btn_round_2.png diff --git a/data/themes/orig/mock-23.xcf.gz b/data/themes/orig/mock-23.xcf.gz Binary files differnew file mode 100644 index 000000000..8e9560293 --- /dev/null +++ b/data/themes/orig/mock-23.xcf.gz |