theme - add more usability hints for ranr dialog like power button
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 16 Nov 2013 03:42:55 +0000 (12:42 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sat, 16 Nov 2013 03:42:55 +0000 (12:42 +0900)
legacy/elementary/data/themes/edc/randr.edc

index 372350a..59972a7 100644 (file)
@@ -74,6 +74,8 @@ group { name: "e/conf/randr/main/frame";
    images.image: "sym_down_light_selected.png" COMP;
    images.image: "sym_up_light_normal.png" COMP;
    images.image: "sym_up_light_selected.png" COMP;
+   images.image: "icon_system-shutdown.png" COMP;
+   images.image: "icon_arrow_up.png" COMP;
    styles {
       style { name: "randr_name_style";
          base: "font="FN" font_size=10 text_class=randr_monitor align=center color=#ffff style=shadow,bottom shadow_color=#00000080 wrap=word";
@@ -128,8 +130,7 @@ group { name: "e/conf/randr/main/frame";
          }
          description { state: "off" 0.0;
             inherit: "default" 0.0;
-            color: 255 255 255 64;
-//            color: 64 64 64 255;
+            color: 255 255 255 16;
          }
       }
       part { name: "e.box.clone"; type: BOX;
@@ -163,7 +164,7 @@ group { name: "e/conf/randr/main/frame";
          }
          description { state: "active" 0.0;
             inherit: "default" 0.0;
-            color: 51 153 255 64;
+            color: 51 153 255 128;
             visible: 1;
          }
       }
@@ -205,7 +206,6 @@ group { name: "e/conf/randr/main/frame";
          }
       }
       part { name: "e.text.name"; type: TEXTBLOCK; mouse_events: 0;
-         clip_to: "clip";
          scale: 1;
          description { state: "default" 0.0;
             rel1.relative: 0.5 0.5;
@@ -219,7 +219,6 @@ group { name: "e/conf/randr/main/frame";
          }
       }
       part { name: "e.text.resolution"; type: TEXTBLOCK; mouse_events: 0;
-         clip_to: "clip";
          scale: 1;
          description { state: "default" 0.0;
             rel1.relative: 0.5 0.5;
@@ -231,6 +230,10 @@ group { name: "e/conf/randr/main/frame";
                min: 1.0 1.0;
             }
          }
+         description { state: "off" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "e.text.position"; type: TEXTBLOCK; mouse_events: 0;
          clip_to: "clip";
@@ -246,6 +249,10 @@ group { name: "e/conf/randr/main/frame";
                min: 1.0 1.0;
             }
          }
+         description { state: "off" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "scr_shine"; mouse_events: 0;
          description { state: "default" 0.0;
@@ -258,6 +265,31 @@ group { name: "e/conf/randr/main/frame";
             FIXED_SIZE(69, 5)
          }
       }
+      part { name: "pwrhint"; mouse_events: 0;
+         description { state: "default" 0.0;
+            rel1.to: "hole";
+            rel1.relative: 0.0 1.0;
+            rel1.offset: 0 3;
+            rel2.to: "hole";
+            rel2.offset: -1 3;
+            align: 0.5 0.0;
+            FIXED_SIZE(10, 10)
+            image.normal: "icon_arrow_up.png";
+            fixed: 1 1;
+         }
+      }
+      part { name: "pwrhint2"; mouse_events: 0;
+         scale: 1;
+         description { state: "default" 0.0;
+            rel1.to: "pwrhint";
+            rel1.relative: 1.0 0.0;
+            rel2.to: "pwrhint";
+            align: 0.0 0.0;
+            FIXED_SIZE(16, 16)
+            image.normal: "icon_system-shutdown.png";
+            fixed: 1 1;
+         }
+      }
       part { name: "rsz1"; mouse_events: 0;
          description { state: "default" 0.0;
             align: 0.0 0.0;
@@ -422,7 +454,6 @@ group { name: "e/conf/randr/main/frame";
       part { name: "e.event.indicator"; type: RECT;
          description { state: "default" 0.0;
             color: 0 0 0 0;
-            max: 15 15;
             max: 21 21;
             align: 0.0 1.0;
          }
@@ -515,6 +546,8 @@ group { name: "e/conf/randr/main/frame";
          signal: "e,state,enabled"; source: "e";
          action: STATE_SET "default" 0.0;
          target: "clip";
+         target: "e.text.resolution";
+         target: "e.text.position";
          target: "led";
          after: "pulse1";
       }
@@ -530,6 +563,8 @@ group { name: "e/conf/randr/main/frame";
          action: STATE_SET "off" 0.0;
          target: "led";
          target: "clip";
+         target: "e.text.resolution";
+         target: "e.text.position";
       }
       program {
          signal: "e,state,drop,on"; source: "e";