From 07863e9a1542b3f1415c385904e99919f93d35db Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Sun, 6 Feb 2011 17:20:37 +0000 Subject: [PATCH] use line wrap for fileman icon labels SVN revision: 56755 --- data/themes/default.edc | 184 ++++++++++++++++++++++------------------ 1 file changed, 103 insertions(+), 81 deletions(-) diff --git a/data/themes/default.edc b/data/themes/default.edc index 75054d30e..d655e3654 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -17958,6 +17958,8 @@ collections { } } } + +#if 0 group { name: "e/fileman/default/icon/variable"; images { @@ -18490,8 +18492,11 @@ collections { } } } +#endif group { name: "e/fileman/default/icon/fixed"; + alias: "e/fileman/default/icon/variable"; + images { image: "bt_sm_base1.png" COMP; image: "bt_sm_shine.png" COMP; @@ -18504,25 +18509,42 @@ collections { image: "icon_efm_vol_unmounted.png" COMP; image: "icon_efm_vol_mounted.png" COMP; } + styles { + style { + name: "fileman_icon_name"; + base: "font=Sans font_size=10 text_class=fileman_icon align=center color=#fff wrap=mixed ellipsis=1.0"; + } + style { + name: "fileman_icon_name_full"; + base: "font=Sans font_size=10 text_class=fileman_icon align=center color=#fff wrap=mixed"; + } + } + parts { part { name: "label2"; - type: TEXT; + type: TEXTBLOCK; mouse_events: 0; scale: 1; description { state: "default" 0.0; - align: 0.5 1.0; + align: 0.5 0.0; fixed: 0 1; - rel1.to: "e.text.label"; - rel2.to: "e.text.label"; color: 0 0 0 255; + rel1 { + to: "icon0"; + relative: 0.0 1.0; + offset: 3 3; + } + rel2 { + to: "icon0"; + relative: 1.0 1.0; + offset: -3 35; + } text { - font: "Sans"; text_source: "e.text.label"; - size: 10; + style: "fileman_icon_name"; min: 0 1; - align: 0.5 0.5; text_class: "fileman_icon"; } } @@ -18539,14 +18561,11 @@ collections { state: "default" 0.0; visible: 0; color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } + rel1.to_x: "e.text.label"; + rel1.offset: -2 0; + rel2.to: "e.text.label"; + rel2.offset: 3 6; + image { normal: "bt_sm_base1.png"; border: 6 6 6 6; @@ -18557,14 +18576,6 @@ collections { inherit: "default" 0.0; visible: 1; color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } } } part { @@ -18658,19 +18669,18 @@ collections { description { state: "default" 0.0; align: 0.5 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; + aspect: 1.5 1.0; + aspect_preference: BOTH; visible: 0; + /* color: 200 0 0 100; */ rel1 { relative: 0.0 0.0; - offset: 2 2; + offset: 5 5; } rel2 { - to_y: "e.text.label"; - relative: 1.0 0.0; - offset: -3 -1; + relative: 1.0 1.0; + offset: -6 -30; } - color: 0 0 0 0; } } part { @@ -18736,30 +18746,32 @@ collections { } part { name: "e.text.label"; - type: TEXT; + type: TEXTBLOCK; effect: SOFT_SHADOW; mouse_events: 0; scale: 1; description { state: "default" 0.0; - align: 0.5 1.0; + align: 0.5 0.0; fixed: 0 1; - rel1 { - relative: 0.0 1.0; - offset: 2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: -3 -2; - } - visible: 0; color: 224 224 224 255; color3: 0 0 0 64; + visible: 0; + rel1 { + to: "icon0"; + relative: 0.0 1.0; + offset: 4 3; + } + rel2 { + to: "icon0"; + relative: 1.0 1.0; + offset: -5 35; + } + text { - font: "Sans:style=Bold"; - size: 10; + style: "fileman_icon_name_full"; min: 0 1; - align: 0.5 0.5; + max: 0 1; text_class: "fileman_icon"; } } @@ -18818,7 +18830,10 @@ collections { mouse_events: 1; description { state: "default" 0.0; - color: 0 0 0 0; + visible: 0; + /* color: 0 0 200 100; */ + rel1.offset: 8 8; + rel2.offset: -9 -9; } } part { @@ -19022,6 +19037,7 @@ collections { } } } +#if 0 group { name: "e/fileman/desktop/icon/variable"; images { @@ -19516,8 +19532,10 @@ collections { } } } +#endif group { name: "e/fileman/desktop/icon/fixed"; + alias: "e/fileman/desktop/icon/variable"; images { image: "bt_sm_base1.png" COMP; image: "bt_sm_shine.png" COMP; @@ -19530,6 +19548,16 @@ collections { image: "icon_efm_vol_unmounted.png" COMP; image: "icon_efm_vol_mounted.png" COMP; } + styles { + style { + name: "fileman_desktop_icon_name"; + base: "font=Sans:style=Bold font_size=10 text_class=desktop_icon align=center color=#fff wrap=mixed ellipsis=1.0"; + } + style { + name: "fileman_desktop_icon_name_full"; + base: "font=Sans:style=Bold font_size=10 text_class=desktop_icon align=center color=#fff wrap=mixed"; + } + } parts { part { name: "bg"; @@ -19538,14 +19566,11 @@ collections { state: "default" 0.0; visible: 0; color: 255 255 255 0; - rel1 { - relative: 0.0 0.0; - offset: -5 -5; - } - rel2 { - relative: 1.0 1.0; - offset: 4 4; - } + rel1.to_x: "e.text.label"; + rel1.offset: -2 0; + rel2.to: "e.text.label"; + rel2.offset: 3 6; + image { normal: "bt_sm_base1.png"; border: 6 6 6 6; @@ -19556,14 +19581,6 @@ collections { inherit: "default" 0.0; visible: 1; color: 255 255 255 255; - rel1 { - relative: 0.0 0.0; - offset: -2 -2; - } - rel2 { - relative: 1.0 1.0; - offset: 1 1; - } } } part { @@ -19657,19 +19674,18 @@ collections { description { state: "default" 0.0; align: 0.5 0.5; - aspect: 1.0 1.0; - aspect_preference: VERTICAL; + aspect: 1.5 1.0; + aspect_preference: BOTH; visible: 0; + /* color: 200 0 0 100; */ rel1 { relative: 0.0 0.0; - offset: 2 2; + offset: 5 5; } rel2 { - to_y: "e.text.label"; - relative: 1.0 0.0; - offset: -3 -1; + relative: 1.0 1.0; + offset: -6 -30; } - color: 0 0 0 0; } } part { @@ -19735,37 +19751,40 @@ collections { } part { name: "e.text.label"; - type: TEXT; + type: TEXTBLOCK; effect: SOFT_SHADOW; mouse_events: 0; scale: 1; description { state: "default" 0.0; - align: 0.5 1.0; + align: 0.5 0.0; fixed: 0 1; + color: 224 224 224 255; + color3: 0 0 0 64; rel1 { + to: "icon0"; relative: 0.0 1.0; - offset: 2 -2; + offset: 4 3; } rel2 { + to: "icon0"; relative: 1.0 1.0; - offset: -3 -2; + offset: -5 35; } - color: 224 224 224 255; - color3: 0 0 0 32; + text { - font: "Sans:style=Bold"; - size: 10; + style: "fileman_desktop_icon_name"; min: 0 1; - align: 0.5 0.5; - text_class: "desktop_icon"; } } description { state: "selected" 0.0; inherit: "default" 0.0; - color: 224 224 224 255; - color3: 0 0 0 64; + text { + style: "fileman_desktop_icon_name_full"; + min: 0 1; + max: 0 1; + } } } part { @@ -19817,7 +19836,10 @@ collections { mouse_events: 1; description { state: "default" 0.0; - color: 0 0 0 0; + visible: 0; + /* color: 0 0 200 100; */ + rel1.offset: 8 8; + rel2.offset: -9 -9; } } part {