display: Add "disabled" signal handling 86/217586/1 accepted/tizen/unified/20191115.083918 submit/tizen/20191114.081847
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 12 Nov 2019 13:26:48 +0000 (14:26 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 12 Nov 2019 14:14:27 +0000 (15:14 +0100)
Change-Id: Id454903b6e9595a49264fb718a58492f31f5bbe0

resource/common-data-define.edc
resource/setting-theme.edc

index ab99c5bcaf79466a5181b5d1b1aee0e328b0794e..7a650bfbb3ed503d081f9024e7cced65de896fdf 100644 (file)
 #define STORAGE_MISC_COLOR 127 127 127
 #define STORAGE_CACHED_COLOR 112 48 160
 #define STORAGE_SYSTEM_COLOR 0 32 96
+
+color_classes {
+   color_class { "genlist_item/type1/text";
+      color: 0 0 0 255;
+   }
+   color_class { "genlist_item/type1/text_disabled";
+      color: 0 0 0 163;
+   }
+}
index 753b10c5d008fb81042edcd428f20ef70ac94199..ad6cebc3b0bc3260f3f0dab3dd73993ac0b189ff 100644 (file)
@@ -104,7 +104,6 @@ collections
                        tag: "whitecolor" "+ color=#ffffff";
                        tag: "tab" "\t";
                }
-
        }
        group
        {
@@ -1904,11 +1903,11 @@ collections
                {
                        style
                        {       name: "text_style_display_brightness";
-                               base: "color=#000000FF font=BreezeSans:style=Light font_weight=normal font_size=54 ellipsis=1.0";
-                               tag: "br" "\n";
-                               tag: "ps" "ps";
-                               tag: "tab" "\t";
-                               tag:  "b" "+ font_weight=Bold";
+                               base: "color=#ffffff color_class=genlist_item/type1/text font=BreezeSans:style=Light font_weight=normal font_size=54 ellipsis=1.0";
+                       }
+                       style
+                       {       name: "text_style_display_brightness_disabled";
+                               base: "color=#ffffff color_class=genlist_item/type1/text_disabled font=BreezeSans:style=Light font_weight=normal font_size=54 ellipsis=1.0";
                        }
                }
                parts
@@ -1978,6 +1977,11 @@ collections
                                        text.style: "text_style_display_brightness";
                                        text.min: 0 1;
                                }
+                               description
+                               {       state: "disabled" 1.0;
+                                       inherit: "default";
+                                       text.style: "text_style_display_brightness_disabled";
+                               }
                        }
                        part
                        {       name: "text_content_padding";
@@ -2025,6 +2029,20 @@ collections
                                }
                        }
                }
+       programs {
+               program { "enabled";
+                       signal: "elm,state,enabled";
+                       source: "elm";
+                       action: STATE_SET "default";
+                       target: "elm.text";
+               }
+               program { "disabled";
+                       signal: "elm,state,disabled";
+                       source: "elm";
+                       action: STATE_SET "disabled";
+                       target: "elm.text";
+               }
+       }
        }