hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=59914e5a9e6317a486ba63114428dc17ae3ef08b

commit 59914e5a9e6317a486ba63114428dc17ae3ef08b
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Sun Apr 17 14:27:07 2016 +0900

    setting: improve preference gui
---
 src/bin/preference_setting.c | 37 +++++++++++++++++++++++++++++++------
 1 file changed, 31 insertions(+), 6 deletions(-)

diff --git a/src/bin/preference_setting.c b/src/bin/preference_setting.c
index 853b8db..72bdfeb 100644
--- a/src/bin/preference_setting.c
+++ b/src/bin/preference_setting.c
@@ -115,14 +115,15 @@ preference_setting_reset(preference_setting_data *psd)
 }
 
 Evas_Object *
-preference_setting_content_get(preference_setting_data *psd, Evas_Object 
*parent)
+preference_setting_content_get(preference_setting_data *psd,
+                               Evas_Object *parent)
 {
-   if (!psd) return NULL;
-   if (psd->scroller) return psd->scroller;
-
    static Elm_Entry_Filter_Accept_Set digits_filter_data;
    static Elm_Entry_Filter_Limit_Size limit_filter_data;
 
+   if (!psd) return NULL;
+   if (psd->scroller) return psd->scroller;
+
    //Preference
    Evas_Object *scroller = elm_scroller_add(parent);
 
@@ -134,6 +135,14 @@ preference_setting_content_get(preference_setting_data 
*psd, Evas_Object *parent
 
    elm_object_content_set(scroller, box);
 
+   //Live View Label
+   Evas_Object *live_view_label = elm_label_add(box);
+   elm_object_scale_set(live_view_label, 1.1);
+   elm_object_text_set(live_view_label, "<b>Live View:");
+   evas_object_size_hint_align_set(live_view_label, 0, 0);
+   evas_object_show(live_view_label);
+   elm_box_pack_end(box, live_view_label);
+
    Evas_Object *box2;
    Evas_Object *layout_padding3;
 
@@ -156,7 +165,7 @@ preference_setting_content_get(preference_setting_data 
*psd, Evas_Object *parent
    elm_box_pack_end(box2, layout_padding3);
 
    Evas_Object *label_view_scale = label_create(layout_padding3,
-                                               _("Live View Scale"));
+                                               _("View Scale"));
    elm_object_part_content_set(layout_padding3, "elm.swallow.content",
                                label_view_scale);
 
@@ -198,7 +207,7 @@ preference_setting_content_get(preference_setting_data 
*psd, Evas_Object *parent
    elm_box_pack_end(box2, layout_padding3);
 
    Evas_Object *label_view_size = label_create(layout_padding3,
-                                               _("Live View Size"));
+                                               _("View Size"));
    elm_object_part_content_set(layout_padding3, "elm.swallow.content",
                                label_view_size);
 
@@ -262,6 +271,22 @@ preference_setting_content_get(preference_setting_data 
*psd, Evas_Object *parent
                                                config_dummy_parts_get());
    elm_box_pack_end(box, toggle_swallow);
 
+   //Separator
+   Evas_Object *separator = elm_separator_add(box);
+   evas_object_size_hint_weight_set(separator, EVAS_HINT_EXPAND, 0);
+   evas_object_size_hint_align_set(separator, EVAS_HINT_FILL, EVAS_HINT_FILL);
+   elm_separator_horizontal_set(separator, EINA_TRUE);
+   evas_object_show(separator);
+   elm_box_pack_end(box, separator);
+
+   //GUIs
+   Evas_Object *gui_label = elm_label_add(box);
+   elm_object_scale_set(gui_label, 1.1);
+   evas_object_size_hint_align_set(gui_label, 0, 0);
+   elm_object_text_set(gui_label, "<b>GUI Preference:");
+   evas_object_show(gui_label);
+   elm_box_pack_end(box, gui_label);
+
    //Toggle (Status)
    Evas_Object *toggle_stats = toggle_create(box, _("Status"),
                                              config_stats_bar_get());

-- 


Reply via email to