forked from enlightenment/enlightenment
add alignment states for dialog text and use left align for text preview
ticket #1655 SVN revision: 78438
This commit is contained in:
parent
c30d8d1a0b
commit
33ed9e3699
|
@ -22598,6 +22598,18 @@ CONNMAN_ICON(ethernet)
|
|||
tag: "br" "\n";
|
||||
tag: "hilight" "+ font=Sans:style=Bold text_class=tb_light";
|
||||
}
|
||||
style {
|
||||
name: "dialog_style_left";
|
||||
base: "font=Sans font_size=10 text_class=tb_plain align=left color=#000 style=shadow shadow_color=#ffffff80 wrap=word";
|
||||
tag: "br" "\n";
|
||||
tag: "hilight" "+ font=Sans:style=Bold text_class=tb_light";
|
||||
}
|
||||
style {
|
||||
name: "dialog_style_right";
|
||||
base: "font=Sans font_size=10 text_class=tb_plain align=right color=#000 style=shadow shadow_color=#ffffff80 wrap=word";
|
||||
tag: "br" "\n";
|
||||
tag: "hilight" "+ font=Sans:style=Bold text_class=tb_light";
|
||||
}
|
||||
}
|
||||
parts {
|
||||
part {
|
||||
|
@ -22614,6 +22626,47 @@ CONNMAN_ICON(ethernet)
|
|||
min: 1 1;
|
||||
}
|
||||
}
|
||||
description {
|
||||
state: "left" 0.0;
|
||||
rel1.offset: 4 4;
|
||||
rel2.offset: -5 -5;
|
||||
text {
|
||||
style: "dialog_style_left";
|
||||
min: 1 1;
|
||||
}
|
||||
}
|
||||
description {
|
||||
state: "right" 0.0;
|
||||
rel1.offset: 4 4;
|
||||
rel2.offset: -5 -5;
|
||||
text {
|
||||
style: "dialog_style_right";
|
||||
min: 1 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program {
|
||||
name: "left";
|
||||
signal: "e,state,left";
|
||||
source: "e";
|
||||
action: STATE_SET "left" 0.0;
|
||||
target: "e.textblock.message";
|
||||
}
|
||||
program {
|
||||
name: "right";
|
||||
signal: "e,state,right";
|
||||
source: "e";
|
||||
action: STATE_SET "right" 0.0;
|
||||
target: "e.textblock.message";
|
||||
}
|
||||
program {
|
||||
name: "center";
|
||||
signal: "e,state,center";
|
||||
source: "e";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "e.textblock.message";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -832,6 +832,8 @@ _e_wid_fprev_preview_txt(E_Widget_Data *wd)
|
|||
* themes to be updated
|
||||
*/
|
||||
e_theme_edje_object_set(o, "base/theme/dialog", "e/widgets/dialog/text");
|
||||
edje_object_signal_emit(o, "e,state,left", "e");
|
||||
edje_object_message_signal_process(o);
|
||||
edje_object_part_text_set(wd->o_preview_preview, "e.textblock.message", "");
|
||||
wd->o_preview_preview = o;
|
||||
wd->prev_is_txt = EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue