summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2016-01-30 13:54:24 +0000
committerAndy Williams <andy@andywilliams.me>2016-01-30 13:54:24 +0000
commitaabc31074e5980d34ef42f68b5eed674545a6791 (patch)
tree90a0894c5a92c205a494d3bc9775d6e15d41986c
parent7c9c8d019ac10229ef5e7debdc388c4ba9f26209 (diff)
downloadelementary-aabc31074e5980d34ef42f68b5eed674545a6791.tar.gz
[toolbar] Adjust icon size along with text etc.
As discussed on the mailing list elm should scale the whole UI based on the scale value. Make toolbar icons match this. @fix
-rw-r--r--src/lib/elm_toolbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index bea4b56aa..067e47133 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -1284,8 +1284,8 @@ _item_theme_hook(Evas_Object *obj,
}
if (it->icon)
{
- evas_object_size_hint_min_set(it->icon, icon_size, icon_size);
- evas_object_size_hint_max_set(it->icon, icon_size, icon_size);
+ evas_object_size_hint_min_set(it->icon, icon_size * scale, icon_size * scale);
+ evas_object_size_hint_max_set(it->icon, icon_size * scale, icon_size * scale);
elm_layout_content_set(view, "elm.swallow.icon", it->icon);
elm_layout_signal_emit
(view, "elm,state,icon,visible", "elm");