text.min: 0 1;
text.style: "list_text_multiline_main";
)
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- text.style: "list_text_multiline_main_press";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text.style: "list_text_multiline_main_dim";
- }
)
PART(TEXTBLOCK, "elm.text.title",
DSC_LRTB("default" 0.0,
text.min: 0 1;
text.style: "list_text_sub_01";
)
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- text.style: "list_text_sub_01_press";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text.style: "list_text_sub_01_dim";
- }
)
programs {
LIST_PROGRAM_SOUND
text.min: 0 1;
text.style: "list_text_multiline_main";
)
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- text.style: "list_text_multiline_main_press";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text.style: "list_text_multiline_main_dim";
- }
)
PART(TEXTBLOCK, "elm.text.title",
DSC_LRTB("default" 0.0,
text.min: 0 1;
text.style: "list_text_sub_01";
)
- description { state: "pressed" 0.0;
- inherit: "default" 0.0;
- text.style: "list_text_sub_01_press";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- text.style: "list_text_sub_01_dim";
- }
)
programs {
LIST_PROGRAM_SOUND
*/
#define DETAIL_SUMMARY_H 120
+#define DETAIL_SUMMARY_TB 24
+#define DETAIL_SUMMARY_R 32
#define DETAIL_SUMMARY_COLORBAR_W 8
#define DETAIL_SUMMARY_COLORBAR_R 24
#define DETAIL_ICON_WH 98
clip_to: "masking"; \
description { \
state: "default" 0.0; \
+ aspect: 1.0 1.0; \
+ aspect_preference: SOURCE; \
} \
} \
} \
rel2.relative: 0.0 1.0;
}
}
+ spacer { "elm.top.spacer"; scale;
+ desc { "default";
+ min: 0 DETAIL_SUMMARY_TB;
+ align: 0.5 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ }
+ }
+ spacer { "elm.bottom.spacer"; scale;
+ desc { "default";
+ min: 0 DETAIL_SUMMARY_TB;
+ align: 0.5 1.0;
+ rel1.relative: 0.0 1.0;
+ rel2.relative: 1.0 1.0;
+ }
+ }
spacer { "elm.details.color.spacer"; scale;
desc { "default";
min: DETAIL_SUMMARY_COLORBAR_R 0;
textblock { "elm.text.multiline"; scale;
desc { "default";
align: 0.0 0.5;
- rel1 { relative: 1.0 0.0; to_x: "elm.details.icon.spacer"; }
- rel2 { relative: 1.0 1.0; }
+ rel1 { relative: 1.0 1.0; to_x: "elm.details.icon.spacer"; to_y: "elm.top.spacer"; }
+ rel2 { relative: 0.0 0.0; to_x: "elm.right.spacer"; to_y: "elm.bottom.spacer"; }
+ text.min: 0.0 1.0;
text.style: "list_text_multiline_main";
}
}
+ spacer { "elm.right.spacer"; scale;
+ desc {
+ min: DETAIL_SUMMARY_R 0;
+ align: 1.0 0.5;
+ rel1 { relative: 1.0 0.0; }
+ rel2 { relative: 1.0 1.0; }
+ }
+ }
}
programs {
program {
#define LIST_TEXT_MDAY_SIZE 50
#define LIST_TEXT_MAIN_SIZE 40
-#define LIST_TEXT_SUB_SIZE 38
+#define LIST_TEXT_SUB_SIZE 32
// Multiline style
#define LIST_WRAP_PADDING_LEFT_SIZE 32
STYLE_TAGS
STYLE_TAG_MATCH
}
- style { name: "list_text_sub_01_dim";
- base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color="CAL_COLOR_T024D" text_class=list_item ellipsis=1.0";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_text_sub_01_press";
- base: "font=Tizen:style=Regular font_size="LIST_TEXT_SUB_SIZE" color="CAL_COLOR_T024P" text_class=list_item ellipsis=1.0";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
// multiline text
style { name: "list_text_multiline_main";
- base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color="CAL_COLOR_T023" text_class=list_item wrap=mixed";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_text_multiline_main_dim";
- base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color="CAL_COLOR_T023D" text_class=list_item wrap=mixed";
- STYLE_TAGS
- STYLE_TAG_MATCH
- }
- style { name: "list_text_multiline_main_press";
- base: "font=Tizen:style=Regular font_size="LIST_TEXT_MAIN_SIZE" color="CAL_COLOR_T023P" text_class=list_item wrap=mixed";
+ base: "font=Tizen:style=Light font_size="LIST_TEXT_MAIN_SIZE" color="CAL_COLOR_T023" text_class=list_item wrap=mixed";
STYLE_TAGS
STYLE_TAG_MATCH
}
#include "CalDataManager.h"
#include "CalDialogDetailEventTimeItem.h"
+#define TEXT_STYLE "Light"
#define TEXT_SIZE 40
#define TEXT_COLOR "000"
-#define TEXT_MARKUP "<font_size=%d><color=#%s>"
+#define TEXT_MARKUP "<font=Tizen:style=%s><font_size=%d><color=#%s>"
CalDialogDetailEventTimeItem::CalDialogDetailEventTimeItem(
const std::shared_ptr<CalSchedule> &schedule)
std::string timeText;
item->__schedule->getFromToDisplayString(timeText);
- size_t size = strlen(timeText.c_str()) + strlen(TEXT_COLOR) + strlen(TEXT_MARKUP);
+ size_t size = strlen(timeText.c_str()) + strlen(TEXT_STYLE) + strlen(TEXT_COLOR) + strlen(TEXT_MARKUP);
char *buffer = (char *) malloc(size);
- snprintf(buffer, size, TEXT_MARKUP "%s", TEXT_SIZE, TEXT_COLOR, timeText.c_str());
+ snprintf(buffer, size, TEXT_MARKUP "%s", TEXT_STYLE, TEXT_SIZE, TEXT_COLOR, timeText.c_str());
return buffer;
}
#include "CalDialogEditMultiTextRemoveIconItem.h"
#include <sstream>
-#define TEXT_MARKUP "<font_size=%d><color=#%s>"
+#define TEXT_MARKUP "<font=Tizen:style=%s><font_size=%d><color=#%s>"
#define TEXT_MARKUP_SIZE sizeof(TEXT_MARKUP)
+#define TEXT_STYLE "Light"
#define TEXT_SIZE 40
#define TEXT_COLOR "000"
+#define SUBTEXT_STYLE "Right"
#define SUBTEXT_SIZE 32
#define SUBTEXT_COLOR "737373"
namespace {
- char *formatText(int textSize, const char *textColor, const char *text)
+ char *formatText(const char *textStyle, int textSize, const char *textColor, const char *text)
{
- size_t size = strlen(text) + strlen(textColor) + TEXT_MARKUP_SIZE;
+ size_t size = strlen(text) + strlen(textStyle) + strlen(textColor) + TEXT_MARKUP_SIZE;
char *buffer = (char *)malloc(size);
- snprintf(buffer, size, TEXT_MARKUP "%s", textSize, textColor, text);
+ snprintf(buffer, size, TEXT_MARKUP "%s", textStyle, textSize, textColor, text);
return buffer;
}
}
if (!strcmp(part, "elm.text")) {
if (!item->__caption.empty()) {
- return formatText(SUBTEXT_SIZE, SUBTEXT_COLOR, _L_G_(item->__caption.c_str()));
+ return formatText(SUBTEXT_STYLE, SUBTEXT_SIZE, SUBTEXT_COLOR, _L_G_(item->__caption.c_str()));
}
} else if (!strcmp(part, "elm.text.multiline")) {
char *mainText = !item->__mainText.empty()
- ? formatText(TEXT_SIZE, TEXT_COLOR, _L_G_(item->__mainText.c_str())) : nullptr;
+ ? formatText(TEXT_STYLE, TEXT_SIZE, TEXT_COLOR, _L_G_(item->__mainText.c_str())) : nullptr;
if (!mainText) {
return NULL;
}
free(mainText);
char *subText = !item->__subText.empty()
- ? formatText(SUBTEXT_SIZE, SUBTEXT_COLOR, _L_G_(item->__subText.c_str())) : nullptr;
+ ? formatText(SUBTEXT_STYLE, SUBTEXT_SIZE, SUBTEXT_COLOR, _L_G_(item->__subText.c_str())) : nullptr;
if (subText) {
multilineText.append("<br/>").append(subText);
free(subText);