edc: enhance layout.
This commit is contained in:
parent
62a646008d
commit
bd3e72c30b
|
@ -1,5 +1,9 @@
|
|||
#define MENU_HEIGHT 30
|
||||
#define EDJE_NAME_TXT_HEIGHT 30
|
||||
#define LEFT_MENU_WIDTH 250
|
||||
#define DESCRIPTION_WIDTH 150
|
||||
#define DESCRIPTION_HEIGHT 150
|
||||
#define OPTION_HEIGHT 150
|
||||
#define PREVIEW_WIDTH 200
|
||||
|
||||
collections {
|
||||
group { name: "etv/main/layout";
|
||||
|
@ -9,11 +13,11 @@ collections {
|
|||
description { state: "default" 0.0;
|
||||
}
|
||||
}
|
||||
part { name: "menu";
|
||||
type: SWALLOW;
|
||||
part { name: "edje_name_txt";
|
||||
type: TEXT;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
min: 0 MENU_HEIGHT;
|
||||
min: 0 EDJE_NAME_TXT_HEIGHT;
|
||||
fixed: 0 1;
|
||||
rel1.to: "base";
|
||||
rel2 {
|
||||
|
@ -21,6 +25,8 @@ collections {
|
|||
relative: 1.0 0.0;
|
||||
}
|
||||
align: 0.5 0.0;
|
||||
color: 0 0 0 255;
|
||||
text.size: 20;
|
||||
}
|
||||
}
|
||||
part { name: "menu_bottom_line";
|
||||
|
@ -31,15 +37,15 @@ collections {
|
|||
fixed: 0 1;
|
||||
color: 100 100 100 255;
|
||||
rel1 {
|
||||
to: "menu";
|
||||
to: "edje_name_txt";
|
||||
relative: 0.0 1.0;
|
||||
}
|
||||
rel2.to: "menu";
|
||||
rel2.to: "edje_name_txt";
|
||||
align: 0.5 0.0;
|
||||
}
|
||||
}
|
||||
part { name: "left_menu";
|
||||
type: RECT;
|
||||
type: SWALLOW;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
min: LEFT_MENU_WIDTH 0;
|
||||
|
@ -53,14 +59,13 @@ collections {
|
|||
relative: 0.0 1.0;
|
||||
}
|
||||
align: 0.0 0.5;
|
||||
color: 100 0 0 100;
|
||||
}
|
||||
}
|
||||
part { name: "description";
|
||||
type: RECT;
|
||||
type: SWALLOW;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
min: 150 150;
|
||||
min: DESCRIPTION_WIDTH DESCRIPTION_HEIGHT;
|
||||
fixed: 1 1;
|
||||
rel1 {
|
||||
to: "menu_bottom_line";
|
||||
|
@ -68,27 +73,25 @@ collections {
|
|||
}
|
||||
rel2.to: "menu_bottom_line";
|
||||
align: 1.0 0.0;
|
||||
color: 0 100 0 100;
|
||||
}
|
||||
}
|
||||
part { name: "option";
|
||||
type: RECT;
|
||||
type: SWALLOW;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
min: 0 150;
|
||||
min: 0 OPTION_HEIGHT;
|
||||
rel1 {
|
||||
to: "description";
|
||||
relative: 0.0 1.0;
|
||||
}
|
||||
rel2.to: "base";
|
||||
color: 0 0 100 100;
|
||||
}
|
||||
}
|
||||
part { name: "preview";
|
||||
type: RECT;
|
||||
type: SWALLOW;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
min: 200 0;
|
||||
min: PREVIEW_WIDTH 0;
|
||||
rel1 {
|
||||
to: "left_menu";
|
||||
relative: 1.0 0.0;
|
||||
|
@ -97,7 +100,6 @@ collections {
|
|||
to: "option";
|
||||
relative: 0.0 1.0;
|
||||
}
|
||||
color: 100 100 0 100;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue