summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen 'Okra' Houston <smhouston88@gmail.com>2017-07-12 13:07:22 -0500
committerStephen 'Okra' Houston <smhouston88@gmail.com>2017-07-12 13:07:58 -0500
commitd2ce06c69ba9e65ee5490108c0b21d0049ece5a1 (patch)
treeeec01aa419f842664855fea2260e19debb320065
parent599cdc93fa69dd54e132aec65cdda313db0133c6 (diff)
downloadefl-d2ce06c69ba9e65ee5490108c0b21d0049ece5a1.tar.gz
Thermal theme: Remove text from theme and quit wasting space.
-rw-r--r--data/elementary/themes/edc/temperature.edc99
1 files changed, 97 insertions, 2 deletions
diff --git a/data/elementary/themes/edc/temperature.edc b/data/elementary/themes/edc/temperature.edc
index d21f3a7a97..41a0d49e62 100644
--- a/data/elementary/themes/edc/temperature.edc
+++ b/data/elementary/themes/edc/temperature.edc
@@ -1,6 +1,4 @@
group { name: "e/modules/temperature/main";
- alias: "e/gadget/thermal/main";
- alias: "e/gadget/thermal/main_vert";
images.image: "therm_content.png" COMP;
images.image: "therm_shadow.png" COMP;
images.image: "therm_shine.png" COMP;
@@ -115,4 +113,101 @@ group { name: "e/modules/temperature/main";
}
}
+group { name: "e/gadget/thermal/main";
+ alias: "e/gadget/thermal/main_vert";
+ images.image: "therm_content.png" COMP;
+ images.image: "therm_shadow.png" COMP;
+ images.image: "therm_shine.png" COMP;
+ script {
+ public message(Msg_Type:type, id, ...) {
+ if ((type == MSG_FLOAT) && (id == 1)) {
+ new Float:val;
+ val = getfarg(2);
+ set_drag(PART:"temp_top", 0.0, val);
+ }
+ }
+ }
+ parts {
+ part { name: "base"; type: SPACER;
+ description { state: "default" 0.0;
+ aspect: (80 / 160) (80 / 160);
+ aspect_preference: BOTH;
+ }
+ }
+ part { name: "shadow";
+ description { state: "default" 0.0;
+ rel1.to: "base";
+ rel2.to: "base";
+ image.normal: "therm_shadow.png";
+ }
+ }
+ part { name: "temp";
+ clip_to: "temp_clip";
+ description { state: "default" 0.0;
+ rel1.to: "base";
+ rel2.to: "base";
+ image.normal: "therm_content.png";
+ }
+ }
+ part { name: "overlay";
+ description { state: "default" 0.0;
+ rel1.to: "base";
+ rel2.to: "base";
+ image.normal: "therm_shine.png";
+ }
+ }
+ part { name: "fade_clip"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to_x: "base";
+ rel2.to_x: "base";
+ color: 255 255 255 255;
+ }
+ description { state: "faded" 0.0;
+ color: 255 255 255 128;
+ }
+ }
+ part { name: "temp_clip"; type: RECT;
+ clip_to: "fade_clip";
+ description { state: "default" 0.0;
+ rel1.to_x: "base";
+ rel2.to_x: "base";
+ rel1.to_y: "temp_top";
+ }
+ }
+ part { name: "temp_top"; type: SPACER;
+ dragable.x: 0 0 0;
+ dragable.y: -1 1 0;
+ dragable.confine: "temp_limit";
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "temp_limit"; type: SPACER;
+ description { state: "default" 0.0;
+ rel1.to_x: "base";
+ rel2.to_x: "base";
+ rel1.relative: 0.0 0.1;
+ rel2.relative: 1.0 0.9;
+ }
+ }
+ part { name: "over"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to_x: "base";
+ rel2.to_x: "base";
+ color: 0 0 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ signal: "e,state,known"; source: "e";
+ action: STATE_SET "default" 0.0;
+ target: "fade_clip";
+ }
+ program {
+ signal: "e,state,unknown"; source: "e";
+ action: STATE_SET "faded" 0.0;
+ target: "fade_clip";
+ }
+ }
+}