From 335274cb6e0bff4ac20ac7e67f25cd6dd15c2690 Mon Sep 17 00:00:00 2001 From: Amit Kamboj Date: Wed, 8 Aug 2012 13:46:56 +0530 Subject: [PATCH] [Time picker button] created new style for time picker button. Change-Id: Id80c010907a9d7e52dcc2a62436ac7b5e78cc8a1 --- themes/inc/tizen-hd-inc.edc | 2 ++ themes/widgets/button.edc | 27 ++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/themes/inc/tizen-hd-inc.edc b/themes/inc/tizen-hd-inc.edc index 5fc4b22..5f3fbb8 100644 --- a/themes/inc/tizen-hd-inc.edc +++ b/themes/inc/tizen-hd-inc.edc @@ -467,6 +467,8 @@ #define BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC "#f9f9f9" #define BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC 56 56 +#define BUTTON_DATETIME_AMPM_BG_MIN_INC 120 60 + #define BUTTON_TEXT_STYLE1_BG_MIN_INC 100 74 #define BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC 148 74 #define BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC 74 74 diff --git a/themes/widgets/button.edc b/themes/widgets/button.edc index fd82345..38aca23 100644 --- a/themes/widgets/button.edc +++ b/themes/widgets/button.edc @@ -498,7 +498,6 @@ ////////////////////////////////////////////////////////////// group { name: "elm/button/base/style1/auto_expand"; - alias: "elm/button/base/datetime_ampm/default"; images { image: "00_button_01_normal.png" COMP; image: "00_button_01_normal_press.png" COMP; @@ -964,6 +963,32 @@ } ////////////////////////////////////////////////////////////////////////////////////// + group { name: "elm/button/base/datetime_ampm/default"; + inherit: "elm/button/base/style1/auto_expand"; + script { + public button_state = BUTTON_STATE_ENABLED; + } + parts { + part { name: "bg"; + type: RECT; + scale: 1; + mouse_events: 0; + description { state: "default" 0.0; + min: 0 0; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: BUTTON_DATETIME_AMPM_BG_MIN_INC; + } + description { state: "icononly" 0.0; + inherit: "default" 0.0; + } + } + } + } + +////////////////////////////////////////////////////////////////////////////////////// group { name: "elm/button/base/style1/multiline"; images { image: "00_button_01_normal.png" COMP; -- 2.7.4