rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=a6da5e21673af7be76170d55f9d1a5ce76c58513

commit a6da5e21673af7be76170d55f9d1a5ce76c58513
Author: Tetiana Naumenko <[email protected]>
Date:   Tue May 30 18:25:47 2017 +0300

    theme: made genlist item shortcuts scalable
    
    Change-Id: I1a2792a9de6c36897c565f716c10e3ac7a33d9fb
---
 data/themes/default/widgets/genlist.edc | 98 +++++++++++++++++++++++++++------
 1 file changed, 81 insertions(+), 17 deletions(-)

diff --git a/data/themes/default/widgets/genlist.edc 
b/data/themes/default/widgets/genlist.edc
index 35aed1c61..6057455fd 100644
--- a/data/themes/default/widgets/genlist.edc
+++ b/data/themes/default/widgets/genlist.edc
@@ -2812,6 +2812,30 @@ group { name: "elm/genlist/item/shortcuts/default";
             visible: 0;
          }
       }
+      part { name: "top_left_space";
+         type: SPACER;
+         scale: 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.0;
+            fixed: 1 1;
+            min: 6 3;
+            max: 6 3;
+            rel1 {
+               relative: 1.00 0.00;
+               to_x: "elm.swallow.pad";
+            }
+         }
+      }
+      part { name: "bottom_right_space";
+         type: SPACER;
+         scale: 1;
+         description { state: "default" 0.0;
+            align: 1.0 1.0;
+            fixed: 1 1;
+            min: 6 3;
+            max: 6 3;
+         }
+      }
       part { name: "elm.swallow.icon";
          type: SWALLOW;
          repeat_events: 1;
@@ -2823,13 +2847,12 @@ group { name: "elm/genlist/item/shortcuts/default";
             aspect: 1.00 1.00;
             aspect_preference: VERTICAL;
             rel1 {
-               relative: 1.00 0.00;
-               offset: 6 3;
-               to_x: "elm.swallow.pad";
+               relative: 1.00 1.00;
+               to: "top_left_space";
             }
             rel2 {
-               relative: 0.00 1.00;
-               offset: -1 -4;
+               relative: 0.00 0.00;
+               to_y: "bottom_right_space";
             }
          }
          description { state: "hide" 0.00;
@@ -2837,6 +2860,20 @@ group { name: "elm/genlist/item/shortcuts/default";
             visible: 0;
          }
       }
+      part { name: "left_ctext_space";
+         type: SPACER;
+         scale: 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.0;
+            fixed: 1 0;
+            min: 6 0;
+            max: 6 -1;
+            rel1 {
+               relative: 1.00 0.00;
+               to_x: "elm.swallow.icon";
+            }
+         }
+      }
       part { name: "combination.text";
          scale: 1;
          type: TEXT;
@@ -2855,13 +2892,11 @@ group { name: "elm/genlist/item/shortcuts/default";
             }
             rel1 {
                relative: 1.00 0.00;
-               offset: 6 0;
-               to_x: "elm.swallow.icon";
+               to_x: "left_ctext_space";
             }
             rel2 {
                relative: 0.00 1.00;
-               offset: -7 -1;
-               to_x: "change.button";
+               to_x: "left_button_space";
             }
          }
          description { state: "hide" 0.00;
@@ -2875,6 +2910,20 @@ group { name: "elm/genlist/item/shortcuts/default";
             }
          }
       }
+      part { name: "left_dtext_space";
+         type: SPACER;
+         scale: 1;
+         description { state: "default" 0.0;
+            align: 0.0 0.0;
+            fixed: 1 0;
+            min: 6 0;
+            max: 6 -1;
+            rel1 {
+               relative: 1.00 0.00;
+               to_x: "combination.text";
+            }
+         }
+      }
       part { name: "description.text";
          type: TEXT;
          scale: 1;
@@ -2894,13 +2943,11 @@ group { name: "elm/genlist/item/shortcuts/default";
             }
             rel1 {
                relative: 1.00 0.00;
-               offset: 6 0;
-               to_x: "combination.text";
+               to_x: "left_dtext_space";
             }
             rel2 {
                relative: 0.00 1.00;
-               offset: -7 -1;
-               to_x: "change.button";
+               to_x: "left_button_space";
             }
          }
          description { state: "hide" 0.00;
@@ -2911,7 +2958,21 @@ group { name: "elm/genlist/item/shortcuts/default";
             rel1.to_x: "elm.swallow.icon";
          }
       }
-     part { name: "change.button";
+      part { name: "left_button_space";
+         type: SPACER;
+         scale: 1;
+         description { state: "default" 0.0;
+            align: 1.0 0.0;
+            fixed: 1 0;
+            min: 6 0;
+            max: 6 -1;
+            rel2 {
+               relative: 0.00 1.00;
+               to_x: "change.button";
+            }
+         }
+      }
+      part { name: "change.button";
          type: SWALLOW;
          repeat_events: 1;
          scale: 1;
@@ -2921,10 +2982,13 @@ group { name: "elm/genlist/item/shortcuts/default";
             aspect: 1.00 1.00;
             aspect_preference: VERTICAL;
             rel1 {
-               relative: 1.00 0.00;
-               offset: 0 3;
+               relative: 1.00 1.00;
+               to_y: "top_left_space";
+            }
+            rel2 {
+               relative: 0.00 0.00;
+               to: "bottom_right_space";
             }
-            rel2.offset: -7 -4;
          }
          description { state: "hide" 0.00;
             inherit: "default" 0.00;

-- 


Reply via email to