bin/setting: improve more ui layout

it's suck to use toggle, label and slider..
label aligning is different each others...
This commit is contained in:
ChunEon Park 2015-02-13 18:17:33 +09:00
parent 6d95775842
commit 62cbb30270
2 changed files with 23 additions and 2 deletions

View File

@ -2529,6 +2529,17 @@ group { name: "main_layout";
}
}
group { name: "padding3_layout";
parts {
part { name: "elm.swallow.content";
type: SWALLOW;
description { state: "default" 0.0;
rel1.offset: 3 0;
}
}
}
}
group { name: "edit_layout";
parts {
part { name: "base_clip";

View File

@ -296,8 +296,18 @@ general_layout_create(setting_data *sd, Evas_Object *parent)
elm_box_pack_end(box, box2);
//Label (View Size)
Evas_Object *label_view_size = label_create(box2, "View Size");
elm_box_pack_end(box2, label_view_size);
/* This layout is intended to put the label aligned to left side
far from 3 pixels. */
Evas_Object *layout_padding3 = elm_layout_add(box2);
elm_layout_file_set(layout_padding3, EDJE_PATH, "padding3_layout");
evas_object_show(layout_padding3);
elm_box_pack_end(box2, layout_padding3);
Evas_Object *label_view_size = label_create(layout_padding3, "View Size");
elm_object_part_content_set(layout_padding3, "elm.swallow.content",
label_view_size);
Evas_Coord w, h;
char w_str[5], h_str[5];