When I create an application, use naviframe object, the naviframe title background color is default, as same as theme color, it is #0050b3, now i want to change this theme color , change the naviframe title background color, from default color to #ff0000. i use code follow, but it does not work :
edc file:
group { name: “custom”;
parts {
part { name: “title_bg”;
type: RECT;
scale: 1;
description { state: “default” 0.0;
min: 1 100;
align: 0.0 0.0;
fixed: 0 1;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0; }
color: NAVIFRAME_TITLE_BG_COLOR_INC;
}
}
}
.c file:
elm_theme_extension_add(NULL,”/opt/usr/apps/org.tizen.myapp/res/edje/myapp.edj”);
Evas_Object* nf=elm_naviframe_add(ad->conform);
elm_naviframe_item_push(nf,”test”,NULL,NULL,NULL,NULL);
elm_object_style_set(nf, “title_bg”);
elm_object_content_set(ad->conform,nf);
I just want to change theme color, change naviframe title background color, not use the default color.
Can anyone help me? thanks.
Change theme color
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio