From: Artur Świgoń Date: Tue, 12 May 2020 12:39:13 +0000 (+0200) Subject: Modify style names to match updates in efl-theme-tizen-common X-Git-Tag: submit/tizen/20200518.065950~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9525d06e20282e16ebe202bf4b818d3da2bf8540;p=profile%2Fcommon%2Fapps%2Fnative%2Faccessibility-setting.git Modify style names to match updates in efl-theme-tizen-common Related commits in profile/common/platform/core/uifw/efl-theme-tizen-common: 004956d7d3c1954f70572d24657fbfc43536a7c0 genlist: update genlist style for common profile 22afae191552857cf9f03dd9a58fbe349c7bb869 genlist: add multinline style for temporary use Change-Id: If8b9b23a4c3a4421690c3e82df2b9bbe1c1be21e --- diff --git a/src/ui/GenlistItem.cpp b/src/ui/GenlistItem.cpp index fe33b43..8f00c0e 100644 --- a/src/ui/GenlistItem.cpp +++ b/src/ui/GenlistItem.cpp @@ -260,7 +260,7 @@ Evas_Object *GenlistItem::contentRealizator(void *data, Evas_Object *obj, const Evas_Object *GenlistItem::realizeToggle(const std::string &part) { - if (part != "elm.swallow.end") + if (part != "elm.end") return nullptr; auto check = Widget::make(genlist_); @@ -287,7 +287,7 @@ Evas_Object *GenlistItem::realizeToggle(const std::string &part) Evas_Object *GenlistItem::realizeCheck(const std::string &part) { - if (part != "elm.swallow.icon") + if (part != "elm.icon") return nullptr; auto check = Widget::make(genlist_); @@ -307,7 +307,7 @@ Evas_Object *GenlistItem::realizeCheck(const std::string &part) Evas_Object *GenlistItem::realizeIcon(const std::string &part) { - if (part != "elm.swallow.icon") + if (part != "elm.icon") return nullptr; auto icon = Widget::make(genlist_); @@ -320,7 +320,7 @@ Evas_Object *GenlistItem::realizeIcon(const std::string &part) Evas_Object *GenlistItem::realizeRadio(const std::string &part) { - if (part != "elm.swallow.icon") + if (part != "elm.icon") return nullptr; auto radio = Widget::make(genlist_); diff --git a/src/view/ListView.cpp b/src/view/ListView.cpp index a3890db..9219252 100644 --- a/src/view/ListView.cpp +++ b/src/view/ListView.cpp @@ -191,7 +191,7 @@ void ListView::addItemsToGenlist() for (const auto &it : g.items_) { auto type = translateType(it->widgetType_); - auto style = it->description_.value().empty() ? "type1" : "multiline"; + auto style = it->description_.value().empty() ? "1line" : "multiline"; if (it->widgetType_ == ListItem::WidgetType::slider || it->widgetType_ == ListItem::WidgetType::entry) style = "full"; GenlistItem *genlistItem = nullptr;