From: Denis Dolzhenko Date: Fri, 26 May 2017 13:31:08 +0000 (+0300) Subject: TizenRefApp-8589 RTL Support X-Git-Tag: submit/tizen/20170602.135848~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=902b71d2e62a5baa5eef24ae2014f11b05893812;p=profile%2Fwearable%2Fapps%2Fnative%2Fmessage.git TizenRefApp-8589 RTL Support Change-Id: I00dfa7f6e52e994898dce70b9853b2c053a555e1 Signed-off-by: Denis Dolzhenko --- diff --git a/res/edje/conv_list_bubble.edc b/res/edje/conv_list_bubble.edc index b43e98e..fe98d6c 100644 --- a/res/edje/conv_list_bubble.edc +++ b/res/edje/conv_list_bubble.edc @@ -24,12 +24,12 @@ collections { styles { style { name: "textblock_style"; - base: "font=Tizen:weight=Normal:width=Condensed font_size="MAIN_TEXT_SIZE" color=#000 wrap=mixed text_class=tizen align=left"; + base: "font=Tizen:weight=Normal:width=Condensed font_size="MAIN_TEXT_SIZE" color=#000 wrap=mixed text_class=tizen align=auto"; tag: "match" "+ color=#006EFF"; } style { name: "mms_attachment_text_style"; - base: "font=Tizen:weight=Normal:width=Condensed font_size="ATTACHMENTS_TEXT_SIZE" text_class=tizen wrap=mixed color=#000 align=left"; + base: "font=Tizen:weight=Normal:width=Condensed font_size="ATTACHMENTS_TEXT_SIZE" text_class=tizen wrap=mixed color=#000 align=auto"; tag: "match" "+ color=#006EFF"; } style { diff --git a/res/edje/macros.inl b/res/edje/macros.inl index 16a87ad..5a2df6d 100644 --- a/res/edje/macros.inl +++ b/res/edje/macros.inl @@ -71,22 +71,6 @@ align: 1.0 0.0; \ } \ } -#define PART_DISCLIP \ - part \ - { \ - name: "disclip"; \ - type: RECT; \ - description \ - { \ - state: "default" 0.0; \ - } \ - description \ - { \ - state: "disabled" 0.0; \ - inherit: "default" 0.0; \ - color: 255 255 255 64; \ - } \ - } #define SIG(name_, state_, target_) \ program { name: name_; \ signal: name_; \ @@ -100,3 +84,27 @@ plugin { \ source: "feedback"; \ param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; \ } +#define DBG(rel_to) \ +part { \ + type: RECT; \ + repeat_events: 1; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + rel1.to: rel_to; \ + rel2.to: rel_to; \ + color: 255 0 0 128; \ + } \ +} +#define DBG_COLOR(rel_to, color_) \ +part { \ + type: RECT; \ + repeat_events: 1; \ + scale: 1; \ + description { \ + state: "default" 0.0; \ + rel1.to: rel_to; \ + rel2.to: rel_to; \ + color: color_; \ + } \ +} diff --git a/res/edje/msg_body.edc b/res/edje/msg_body.edc index bfaf9f1..3ecfd31 100755 --- a/res/edje/msg_body.edc +++ b/res/edje/msg_body.edc @@ -10,6 +10,10 @@ collections { name: "counter_style"; base: "font=Tizen:style=Regular font_size="21" color=#fafafa wrap=mixed ellipsis=-1 align=right"; } + style { + name: "counter_style_rtl"; + base: "font=Tizen:style=Regular font_size="21" color=#fafafa wrap=mixed ellipsis=-1 align=left"; + } } group { name: "body"; parts { @@ -62,6 +66,12 @@ collections { min: 73 56; max: 73 56; } + description { + state: "rtl" 0.0; + inherit: "default"; + map.on: 1; + map.rotation.y: 180.0; + } } part { name: "pad.button1"; type: SPACER; @@ -102,6 +112,27 @@ collections { align: 0.5 0.5; } } + description { + state: "rtl" 0.0; + inherit: "default"; + text{ + style: "counter_style_rtl"; + } + } + } + } + programs { + program { + signal: "edje,state,rtl"; + source: "edje"; + action: STATE_SET "rtl"; + targets: "text.counter" "swl.send_button"; + } + program { + signal: "edje,state,ltr"; + source: "edje"; + action: STATE_SET "default"; + targets: "text.counter" "swl.send_button"; } } } diff --git a/src/Conversation/View/src/BubbleAudioViewItem.cpp b/src/Conversation/View/src/BubbleAudioViewItem.cpp index cf6f801..3f886ce 100644 --- a/src/Conversation/View/src/BubbleAudioViewItem.cpp +++ b/src/Conversation/View/src/BubbleAudioViewItem.cpp @@ -26,10 +26,13 @@ BubbleAudioViewItem::BubbleAudioViewItem(Evas_Object *parent, BubbleEntity &enti , m_pItemLayout(nullptr) { m_pItemLayout = addLayout(getEo(), CONV_LIST_BUBBLE_EDJ_PATH, "conv/list/audio_item"); + setMirrored(m_pItemLayout, false); setContent(m_pItemLayout); getAtspi().setReadingInfo(ELM_ACCESSIBLE_READING_INFO_TYPE_NAME); getAtspi().setName(msg("IDS_MSG_BODY_ATTACHED_AUDIO")); + + setMirrored(false); } BubbleAudioViewItem::~BubbleAudioViewItem()