discomfitor pushed a commit to branch elementary-1.10.

http://git.enlightenment.org/core/elementary.git/commit/?id=498edbb91848d4e0dec4d059c5a77dee9767b1c0

commit 498edbb91848d4e0dec4d059c5a77dee9767b1c0
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Jun 11 19:05:22 2014 +0900

    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.
---
 data/themes/Makefile.am         |   3 +++
 data/themes/edc/syscon.edc      |  48 ++++++++++++++++++++++++++++++++++++++++
 data/themes/img/btn_round_0.png | Bin 0 -> 12344 bytes
 data/themes/img/btn_round_1.png | Bin 0 -> 14763 bytes
 data/themes/img/btn_round_2.png | Bin 0 -> 14857 bytes
 data/themes/orig/mock-23.xcf.gz | Bin 0 -> 72417 bytes
 6 files changed, 51 insertions(+)

diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index 1571c6e..96eeff5 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 0aa5f40..32bc51c 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 0000000..cdbcf6a
Binary files /dev/null and b/data/themes/img/btn_round_0.png differ
diff --git a/data/themes/img/btn_round_1.png b/data/themes/img/btn_round_1.png
new file mode 100644
index 0000000..0d5c40d
Binary files /dev/null and b/data/themes/img/btn_round_1.png differ
diff --git a/data/themes/img/btn_round_2.png b/data/themes/img/btn_round_2.png
new file mode 100644
index 0000000..1221782
Binary files /dev/null and b/data/themes/img/btn_round_2.png differ
diff --git a/data/themes/orig/mock-23.xcf.gz b/data/themes/orig/mock-23.xcf.gz
new file mode 100644
index 0000000..8e95602
Binary files /dev/null and b/data/themes/orig/mock-23.xcf.gz differ

-- 


Reply via email to