From: aman.jeph Date: Thu, 12 Nov 2020 06:08:11 +0000 (+0530) Subject: [TIZENIOT-2103] Fixed Subtitle Preview text alignment X-Git-Tag: submit/tizen/20201112.094554^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c9e3ffe522fed77a1029376eee299dd5d6f35e5;p=profile%2Fiot%2Fapps%2Fnative%2Fvideo-player.git [TIZENIOT-2103] Fixed Subtitle Preview text alignment Change-Id: I313c6507abb35cc88f932eb29bf139d31b06e986 Signed-off-by: aman.jeph --- diff --git a/playview/src/feature/vp-subtitle.c b/playview/src/feature/vp-subtitle.c index 1cc79d8..0a85965 100755 --- a/playview/src/feature/vp-subtitle.c +++ b/playview/src/feature/vp-subtitle.c @@ -38,7 +38,7 @@ */ #define VP_SUBTITLE_GENLIST_DATA_KEY "vp.subtitle.genlist" -#define VP_SUBTITLE_TXT_FORMAT "%s" +#define VP_SUBTITLE_TXT_FORMAT "%s" #define VP_SUBTITLE_COLOR_LEN 7 #define VP_SUBTITLE_SET_CAPTION_WINDOW_PREVIEW_COLOR_ID 1 @@ -203,10 +203,8 @@ static char *_vp_play_subtitle_text_get(SubtitleInfo * pSubtitleInfo, szAlignment = g_strdup_printf("right"); } #endif - szTxtFormat = - g_strdup_printf(VP_SUBTITLE_TXT_FORMAT, nSize, szFontEdge, - pSubtitleInfo->szFontName, szFontWeight, szColor, - szBGColor, szBGColorOn, szAlignment, szOutput); + szTxtFormat = g_strdup_printf(VP_SUBTITLE_TXT_FORMAT, nSize, szAlignment, szColor, + szBGColor, szBGColorOn, szOutput); VP_FREE(szBGColor); VP_FREE(szBGColorOn); diff --git a/vp-main/res/edje/pv-subtitle-settings.edc b/vp-main/res/edje/pv-subtitle-settings.edc index e0610bf..141b11f 100755 --- a/vp-main/res/edje/pv-subtitle-settings.edc +++ b/vp-main/res/edje/pv-subtitle-settings.edc @@ -41,7 +41,7 @@ collections { base: "font=Tizen:weight=Regular:width=BreezeSans font_size=18 align=center color=#C3CAD2 color_class=title_content/button/text_dim ellipsis=1.0 wrap=none text_class=tizen"; } style { name:"settings_captions"; - base: "font=Tizen:weight=Regular:width=BreezeSans font_size=22 align=center color=#FFFFFF ellipsis=1.0 wrap=none text_class=tizen"; + base: "font=Tizen:weight=Regular:width=BreezeSans font_size=22 align=center valign=center color=#FFFFFF ellipsis=1.0 wrap=none text_class=tizen"; } style { name:"settings_captions_dim"; base: "font=Tizen:weight=Normal:width=BreezeSans font_size=22 align=center color=#C3CAD2 ellipsis=1.0 wrap=none text_class=tizen"; @@ -311,8 +311,8 @@ collections { } image { "caption_bg"; nomouse; scale; desc { "default"; - min: 0 30; - max: -1 30; + min: 0 36; + max: -1 36; align: 0.0 0.5; rel1 { to_x:"caption_area_left_padding"; to_y: "caption_area"; relative: 1.0 0.0; } rel2 { to_x: "caption_area_right_padding"; to_y: "caption_area"; relative: 0.0 1.0; } @@ -324,9 +324,8 @@ collections { min: 0 26; rel.to: "caption_bg"; text { - text: "This is how caption look like"; + text: "Subtitles will look like this."; style: "settings_captions"; - min: 1 0; } vis; }