summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-06-29 22:15:21 +0100
committerAlastair Poole <netstar@gmail.com>2020-06-29 22:15:21 +0100
commit045f1766b52e88240d410e83739622d1de858857 (patch)
treeb80f501db93000a534785809a4885f81369aca13
parent5b50447eaa503280541f4a6fc9f111de1c6cde04 (diff)
util: size and shades
-rw-r--r--src/bin/ui/ui_util.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/bin/ui/ui_util.c b/src/bin/ui/ui_util.c
index 867f132..9522f47 100644
--- a/src/bin/ui/ui_util.c
+++ b/src/bin/ui/ui_util.c
@@ -31,7 +31,7 @@ evisum_ui_tab_add(Evas_Object *parent, Evas_Object **alias, const char *text,
31 evas_object_size_hint_align_set(label, FILL, FILL); 31 evas_object_size_hint_align_set(label, FILL, FILL);
32 evas_object_show(label); 32 evas_object_show(label);
33 elm_object_text_set(label, 33 elm_object_text_set(label,
34 eina_slstr_printf("<big>%s</big>", text)); 34 eina_slstr_printf("%s", text));
35 elm_layout_content_set(button, "elm.swallow.content", label); 35 elm_layout_content_set(button, "elm.swallow.content", label);
36 36
37 elm_table_pack(tbl, rect, 0, 0, 1, 1); 37 elm_table_pack(tbl, rect, 0, 0, 1, 1);
@@ -296,7 +296,7 @@ evisum_about_window_show(void *data)
296 evas_object_size_hint_align_set(bg, FILL, FILL); 296 evas_object_size_hint_align_set(bg, FILL, FILL);
297 elm_bg_file_set(bg, evisum_icon_path_get("ladyhand"), NULL); 297 elm_bg_file_set(bg, evisum_icon_path_get("ladyhand"), NULL);
298 elm_win_resize_object_add(win, bg); 298 elm_win_resize_object_add(win, bg);
299 evas_object_color_set(bg, 225, 225, 225, 255); 299 evas_object_color_set(bg, 160, 160, 160, 255);
300 evas_object_show(bg); 300 evas_object_show(bg);
301 evas_object_size_hint_min_set(bg, 320 * elm_config_scale_get(), 301 evas_object_size_hint_min_set(bg, 320 * elm_config_scale_get(),
302 320 * elm_config_scale_get()); 302 320 * elm_config_scale_get());
@@ -314,17 +314,13 @@ evisum_about_window_show(void *data)
314 314
315 version = elm_label_add(win); 315 version = elm_label_add(win);
316 evas_object_show(version); 316 evas_object_show(version);
317 evas_object_color_set(version, 47, 153, 255, 255);
318 elm_object_text_set(version, 317 elm_object_text_set(version,
319 eina_slstr_printf("<small>evisum %s</small>", 318 eina_slstr_printf("%s", PACKAGE_VERSION));
320 PACKAGE_VERSION));
321 319
322 btn = elm_button_add(win); 320 btn = elm_button_add(win);
323 evas_object_size_hint_align_set(btn, 0.5, 0.9); 321 evas_object_size_hint_align_set(btn, 0.5, 0.9);
324 evas_object_size_hint_weight_set(btn, EXPAND, EXPAND); 322 evas_object_size_hint_weight_set(btn, EXPAND, EXPAND);
325 evas_object_color_set(btn, 128, 128, 128, 196);
326 elm_object_text_set(btn, _("Okay!")); 323 elm_object_text_set(btn, _("Okay!"));
327
328 evas_object_show(btn); 324 evas_object_show(btn);
329 evas_object_smart_callback_add(btn, "clicked", _win_del_cb, win); 325 evas_object_smart_callback_add(btn, "clicked", _win_del_cb, win);
330 326