#include "Elementary.h"
#include <efl_extension.h>
-#define BT_GENLIST_1LINE_TEXT_STYLE "type1"
-#define BT_GENLIST_1LINE_TEXT_ICON_STYLE "type1"
-#define BT_GENLIST_2LINE_TOP_TEXT_STYLE "type1"
-#define BT_GENLIST_2LINE_TOP_TEXT_ICON_STYLE "type1"
-#define BT_GENLIST_2LINE_BOTTOM_TEXT_STYLE "type2"
-#define BT_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE "type2"
-#define BT_GENLIST_MULTILINE_TEXT_STYLE "multiline"
+#include "bt-util.h"
+
+typedef enum {
+ BT_GENLIST_1LINE = 0,
+ BT_GENLIST_2LINE,
+ BT_GENLIST_MULTILINE,
+} bt_genlist_type_t;
+
+static inline char* get_genlist_style(bt_genlist_type_t type)
+{
+ if (type == BT_GENLIST_MULTILINE)
+ return TIZEN_COMMON ? "2line" : "multiline";
+ else if (type == BT_GENLIST_2LINE)
+ return TIZEN_COMMON ? "2line" : "type2";
+ else
+ return TIZEN_COMMON ? "1line" : "type1";
+}
+
+#define BT_GENLIST_1LINE_TEXT_STYLE get_genlist_style(BT_GENLIST_1LINE)
+#define BT_GENLIST_1LINE_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_1LINE)
+#define BT_GENLIST_2LINE_TOP_TEXT_STYLE get_genlist_style(BT_GENLIST_2LINE)
+#define BT_GENLIST_2LINE_TOP_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_2LINE)
+#define BT_GENLIST_2LINE_BOTTOM_TEXT_STYLE get_genlist_style(BT_GENLIST_2LINE)
+#define BT_GENLIST_2LINE_BOTTOM_TEXT_ICON_STYLE get_genlist_style(BT_GENLIST_2LINE)
+#define BT_GENLIST_MULTILINE_TEXT_STYLE get_genlist_style(BT_GENLIST_MULTILINE)
#define BT_GENLIST_GROUP_INDEX_STYLE "group_index"
#define BT_GENLIST_FULL_CONTENT_STYLE "full"
if (!strcmp("elm.text", part)) {
return g_strdup(BT_STR_BLUETOOTH);
- } else if (!strcmp("elm.text.multiline", part)) {
+ } else if (!strcmp("elm.text.multiline", part) || !strcmp("elm.text.sub", part)) {
char buf[1024] = {0,};
if (ugd->op_status == BT_ACTIVATING) {
- snprintf(buf, sizeof(buf), "<font_size=30>%s</font_size>", BT_STR_TURNING_ON_BLUETOOTH);
+ if (TIZEN_COMMON)
+ snprintf(buf, sizeof(buf), "<font_size=15>%s</font_size>", BT_STR_TURNING_ON_BLUETOOTH);
+ else
+ snprintf(buf, sizeof(buf), "<font_size=30>%s</font_size>", BT_STR_TURNING_ON_BLUETOOTH);
return g_strdup(buf);
} else if (ugd->op_status == BT_DEACTIVATED) {
- snprintf(buf, sizeof(buf), "<font_size=30>%s</font_size>", BT_STR_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_AVAILABLE_DEVICES);
+ if (TIZEN_COMMON)
+ snprintf(buf, sizeof(buf), "<font_size=15>%s</font_size>", BT_STR_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_AVAILABLE_DEVICES);
+ else
+ snprintf(buf, sizeof(buf), "<font_size=30>%s</font_size>", BT_STR_TURN_ON_BLUETOOTH_TO_SEE_A_LIST_OF_AVAILABLE_DEVICES);
+
return g_strdup(buf);
}
}