summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-06-19 15:36:37 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-19 16:00:57 +0900
commit16eb7da286dc82fe23430bc03755d5d25b6209b7 (patch)
tree00e66aa5d6aa910d39670e346e86a67e94e4e0c7
parentac874ffe6254d85bd0a5c05d99c8fa573d04d9d5 (diff)
Theme: Fix SegmentControl border images & offsets
There was some bleeding on the images edges (with GL). Changing the border values fixes that. Also, fix TEXT offset difference when changing effects (SHADOW --> GLOW). This means the text was moving when selecting an item. The ellipsis had to be recalculated and in many cases it would change, making one character appear or disappear. Annoying. Who uses this widget anyways?
-rw-r--r--data/themes/edc/elm/segment_control.edc26
1 files changed, 14 insertions, 12 deletions
diff --git a/data/themes/edc/elm/segment_control.edc b/data/themes/edc/elm/segment_control.edc
index 82139657f..561009261 100644
--- a/data/themes/edc/elm/segment_control.edc
+++ b/data/themes/edc/elm/segment_control.edc
@@ -43,7 +43,7 @@ group { name: "elm/segment_control/item/default";
43 visible: 0; 43 visible: 0;
44 image { 44 image {
45 normal: "day_single_normal.png"; 45 normal: "day_single_normal.png";
46 border: 4 4 3 5; 46 border: 5 5 4 6;
47 } 47 }
48 } 48 }
49 description { state: "default_single" 0.0; 49 description { state: "default_single" 0.0;
@@ -55,7 +55,7 @@ group { name: "elm/segment_control/item/default";
55 visible: 1; 55 visible: 1;
56 image { 56 image {
57 normal: "day_left_normal.png"; 57 normal: "day_left_normal.png";
58 border: 4 1 3 5; 58 border: 5 2 4 6;
59 } 59 }
60 } 60 }
61 description { state: "default_right" 0.0; 61 description { state: "default_right" 0.0;
@@ -63,7 +63,7 @@ group { name: "elm/segment_control/item/default";
63 visible: 1; 63 visible: 1;
64 image { 64 image {
65 normal: "day_right_normal.png"; 65 normal: "day_right_normal.png";
66 border: 1 4 3 5; 66 border: 2 5 4 6;
67 } 67 }
68 } 68 }
69 description { state: "default_middle" 0.0; 69 description { state: "default_middle" 0.0;
@@ -71,7 +71,7 @@ group { name: "elm/segment_control/item/default";
71 visible: 1; 71 visible: 1;
72 image { 72 image {
73 normal: "day_middle_normal.png"; 73 normal: "day_middle_normal.png";
74 border: 1 1 3 5; 74 border: 2 2 4 6;
75 } 75 }
76 } 76 }
77 description { state: "pressed_single" 0.0; 77 description { state: "pressed_single" 0.0;
@@ -79,7 +79,7 @@ group { name: "elm/segment_control/item/default";
79 visible: 1; 79 visible: 1;
80 image { 80 image {
81 normal: "day_single_press.png"; 81 normal: "day_single_press.png";
82 border: 4 4 3 5; 82 border: 5 5 4 6;
83 } 83 }
84 } 84 }
85 description { state: "pressed_left" 0.0; 85 description { state: "pressed_left" 0.0;
@@ -87,7 +87,7 @@ group { name: "elm/segment_control/item/default";
87 visible: 1; 87 visible: 1;
88 image { 88 image {
89 normal: "day_left_press.png"; 89 normal: "day_left_press.png";
90 border: 4 1 3 5; 90 border: 5 1 4 6;
91 } 91 }
92 } 92 }
93 description { state: "pressed_right" 0.0; 93 description { state: "pressed_right" 0.0;
@@ -95,7 +95,7 @@ group { name: "elm/segment_control/item/default";
95 visible: 1; 95 visible: 1;
96 image { 96 image {
97 normal: "day_right_press.png"; 97 normal: "day_right_press.png";
98 border: 1 4 3 5; 98 border: 2 5 4 6;
99 } 99 }
100 } 100 }
101 description { state: "pressed_middle" 0.0; 101 description { state: "pressed_middle" 0.0;
@@ -103,7 +103,7 @@ group { name: "elm/segment_control/item/default";
103 visible: 1; 103 visible: 1;
104 image { 104 image {
105 normal: "day_middle_press.png"; 105 normal: "day_middle_press.png";
106 border: 1 1 3 5; 106 border: 2 2 4 6;
107 } 107 }
108 } 108 }
109 description { state: "selected_single" 0.0; 109 description { state: "selected_single" 0.0;
@@ -111,7 +111,7 @@ group { name: "elm/segment_control/item/default";
111 visible: 1; 111 visible: 1;
112 image { 112 image {
113 normal: "day_single_selected.png"; 113 normal: "day_single_selected.png";
114 border: 4 4 3 5; 114 border: 5 5 4 6;
115 } 115 }
116 } 116 }
117 description { state: "selected_left" 0.0; 117 description { state: "selected_left" 0.0;
@@ -119,7 +119,7 @@ group { name: "elm/segment_control/item/default";
119 visible: 1; 119 visible: 1;
120 image { 120 image {
121 normal: "day_left_selected.png"; 121 normal: "day_left_selected.png";
122 border: 4 1 3 5; 122 border: 5 1 4 6;
123 } 123 }
124 } 124 }
125 description { state: "selected_right" 0.0; 125 description { state: "selected_right" 0.0;
@@ -127,7 +127,7 @@ group { name: "elm/segment_control/item/default";
127 visible: 1; 127 visible: 1;
128 image { 128 image {
129 normal: "day_right_selected.png"; 129 normal: "day_right_selected.png";
130 border: 1 4 3 5; 130 border: 2 5 4 6;
131 } 131 }
132 } 132 }
133 description { state: "selected_middle" 0.0; 133 description { state: "selected_middle" 0.0;
@@ -135,7 +135,7 @@ group { name: "elm/segment_control/item/default";
135 visible: 1; 135 visible: 1;
136 image { 136 image {
137 normal: "day_middle_selected.png"; 137 normal: "day_middle_selected.png";
138 border: 1 1 3 5; 138 border: 2 2 4 6;
139 } 139 }
140 } 140 }
141 } 141 }
@@ -211,7 +211,9 @@ group { name: "elm/segment_control/item/default";
211 fixed: 1 1; 211 fixed: 1 1;
212 min: 1 1; 212 min: 1 1;
213 rel1.to: "elm.text"; 213 rel1.to: "elm.text";
214 rel1.offset: -2 -2;
214 rel2.to: "elm.text"; 215 rel2.to: "elm.text";
216 rel2.offset: 1 1;
215 text { 217 text {
216 font: FN; 218 font: FN;
217 size: 10; 219 size: 10;