From b49cde4c077f1c62ecf4802c2754341edfb29a23 Mon Sep 17 00:00:00 2001 From: Lukasz Stanislawski Date: Tue, 12 Nov 2019 14:26:48 +0100 Subject: [PATCH] display: Add "disabled" signal handling Change-Id: Id454903b6e9595a49264fb718a58492f31f5bbe0 --- resource/common-data-define.edc | 9 +++++++++ resource/setting-theme.edc | 30 ++++++++++++++++++++++++------ 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/resource/common-data-define.edc b/resource/common-data-define.edc index ab99c5b..7a650bf 100644 --- a/resource/common-data-define.edc +++ b/resource/common-data-define.edc @@ -27,3 +27,12 @@ #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; + } +} diff --git a/resource/setting-theme.edc b/resource/setting-theme.edc index 753b10c..ad6cebc 100644 --- a/resource/setting-theme.edc +++ b/resource/setting-theme.edc @@ -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"; + } + } } -- 2.34.1