forked from enlightenment/efl
layout/application/titlebar canned layout:
Fix up the syle, use a better (more toolbar-ish) image, align the title in center, add a white bg, remove some useless offset and, last but not least, add an elm.swallow.content part...or your app cant go much further ;) SVN revision: 54705
This commit is contained in:
parent
f8d24df92f
commit
9d6fcdc04d
|
@ -31897,30 +31897,31 @@ collections {
|
|||
/* a simple title layout, with a label and two icons */
|
||||
group { name: "elm/layout/application/titlebar";
|
||||
images {
|
||||
image: "bt_dis_shine.png" COMP;
|
||||
image: "toolbar_sel.png" COMP;
|
||||
}
|
||||
parts {
|
||||
part { name: "base";
|
||||
type: RECT;
|
||||
mouse_events: 0;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
min: 0 30;
|
||||
max: 99999 30;
|
||||
color: 0 0 0 255;
|
||||
min: 0 33;
|
||||
max: 99999 33;
|
||||
align: 0.5 0.0;
|
||||
rel1.offset: -1 0;
|
||||
rel2.offset: 1 0;
|
||||
image {
|
||||
normal: "toolbar_sel.png";
|
||||
border: 3 3 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
part { name: "bg";
|
||||
mouse_events: 0;
|
||||
scale: 1;
|
||||
part { name: "elm.swallow.content";
|
||||
type: SWALLOW;
|
||||
description { state: "default" 0.0;
|
||||
align: 0.0 0.0;
|
||||
rel1.to: "base";
|
||||
rel2.to: "base";
|
||||
rel1.offset: -1 -1;
|
||||
rel2.offset: 0 0;
|
||||
image { normal: "bt_dis_shine.png";
|
||||
border: 4 4 4 4;
|
||||
visible: 1;
|
||||
rel1 {
|
||||
to: "base";
|
||||
relative: 0.0 1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31930,11 +31931,11 @@ collections {
|
|||
description { state: "default" 0.0;
|
||||
visible: 0;
|
||||
fixed: 1 1;
|
||||
align: 0.0 0.5;
|
||||
align: 0.0 0.0;
|
||||
rel1 {
|
||||
to: "base";
|
||||
relative: 0.0 0.0;
|
||||
offset: 12 0;
|
||||
offset: 4 0;
|
||||
}
|
||||
rel2 {
|
||||
to: "base";
|
||||
|
@ -31952,7 +31953,7 @@ collections {
|
|||
description { state: "default" 0.0;
|
||||
visible: 0;
|
||||
fixed: 1 1;
|
||||
align: 1.0 0.5;
|
||||
align: 1.0 0.0;
|
||||
rel1 {
|
||||
to: "base";
|
||||
relative: 1.0 0.0;
|
||||
|
@ -31961,7 +31962,7 @@ collections {
|
|||
rel2 {
|
||||
to: "base";
|
||||
relative: 1.0 1.0;
|
||||
offset: -13 -1;
|
||||
offset: -5 -1;
|
||||
}
|
||||
}
|
||||
description { state: "visible" 0.0;
|
||||
|
@ -31975,25 +31976,22 @@ collections {
|
|||
mouse_events: 0;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
align: 0.0 0.5;
|
||||
fixed: 1 1;
|
||||
rel1 {
|
||||
to_x: "elm.swallow.icon";
|
||||
to_y: "base";
|
||||
relative: 1.0 0.0;
|
||||
offset: 2 0;
|
||||
}
|
||||
rel2 {
|
||||
to_x: "elm.swallow.end";
|
||||
to_y: "base";
|
||||
relative: 0.0 1.0;
|
||||
offset: -3 -1;
|
||||
}
|
||||
text {
|
||||
font: "Sans";
|
||||
size: 12;
|
||||
min: 0 0;
|
||||
align: 0.0 0.5;
|
||||
align: 0.5 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue