diff --git a/configure.ac b/configure.ac index 8eb1b5d..1a55eda 100644 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,8 @@ src/bin/Makefile data/Makefile data/images/Makefile data/themes/Makefile +data/themes/default/Makefile +data/themes/dark/Makefile data/.proto/Makefile ]) diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am index f4e9868..6a462d1 100644 --- a/data/themes/Makefile.am +++ b/data/themes/Makefile.am @@ -1,17 +1,3 @@ MAINTAINERCLEANFILES = Makefile.in -EDJE_CC = @edje_cc@ -EDJE_FLAGS = -id $(top_srcdir)/data/themes/images - -filesdir = $(datadir)/$(PACKAGE)/themes -files_DATA = enventor.edj - -EXTRA_DIST = enventor.edc - -enventor.edj: Makefile $(EXTRA_DIST) - $(EDJE_CC) $(EDJE_FLAGS) \ - $(top_srcdir)/data/themes/enventor.edc \ - $(top_builddir)/data/themes/enventor.edj - -clean-local: - rm -f *.edj +SUBDIRS = default dark diff --git a/data/themes/dark/.Makefile.am.swp b/data/themes/dark/.Makefile.am.swp new file mode 100644 index 0000000..f4f5fdf Binary files /dev/null and b/data/themes/dark/.Makefile.am.swp differ diff --git a/data/themes/dark/.menu.edc.swp b/data/themes/dark/.menu.edc.swp new file mode 100644 index 0000000..cf7165f Binary files /dev/null and b/data/themes/dark/.menu.edc.swp differ diff --git a/data/themes/dark/Makefile.am b/data/themes/dark/Makefile.am new file mode 100644 index 0000000..48c9834 --- /dev/null +++ b/data/themes/dark/Makefile.am @@ -0,0 +1,17 @@ +MAINTAINERCLEANFILES = Makefile.in + +EDJE_CC = @edje_cc@ +EDJE_FLAGS = -id $(top_srcdir)/data/themes/dark/images + +filesdir = $(datadir)/$(PACKAGE)/themes +files_DATA = enventor_dark.edj + +EXTRA_DIST = enventor_dark.edc + +enventor_dark.edj: Makefile $(EXTRA_DIST) + $(EDJE_CC) $(EDJE_FLAGS) \ + $(top_srcdir)/data/themes/dark/enventor_dark.edc \ + $(top_builddir)/data/themes/dark/enventor_dark.edj + +clean-local: + rm -f *.edj diff --git a/data/themes/content.edc b/data/themes/dark/content.edc similarity index 100% rename from data/themes/content.edc rename to data/themes/dark/content.edc diff --git a/data/themes/enventor.edc b/data/themes/dark/enventor_dark.edc similarity index 100% rename from data/themes/enventor.edc rename to data/themes/dark/enventor_dark.edc diff --git a/data/themes/images.edc b/data/themes/dark/images.edc similarity index 100% rename from data/themes/images.edc rename to data/themes/dark/images.edc diff --git a/data/themes/images/arrow_down.png b/data/themes/dark/images/arrow_down.png similarity index 100% rename from data/themes/images/arrow_down.png rename to data/themes/dark/images/arrow_down.png diff --git a/data/themes/images/arrow_left.png b/data/themes/dark/images/arrow_left.png similarity index 100% rename from data/themes/images/arrow_left.png rename to data/themes/dark/images/arrow_left.png diff --git a/data/themes/images/arrow_right.png b/data/themes/dark/images/arrow_right.png similarity index 100% rename from data/themes/images/arrow_right.png rename to data/themes/dark/images/arrow_right.png diff --git a/data/themes/images/arrow_up.png b/data/themes/dark/images/arrow_up.png similarity index 100% rename from data/themes/images/arrow_up.png rename to data/themes/dark/images/arrow_up.png diff --git a/data/themes/images/bt_base1.png b/data/themes/dark/images/bt_base1.png similarity index 100% rename from data/themes/images/bt_base1.png rename to data/themes/dark/images/bt_base1.png diff --git a/data/themes/images/bt_base2.png b/data/themes/dark/images/bt_base2.png similarity index 100% rename from data/themes/images/bt_base2.png rename to data/themes/dark/images/bt_base2.png diff --git a/data/themes/images/bt_dis_base.png b/data/themes/dark/images/bt_dis_base.png similarity index 100% rename from data/themes/images/bt_dis_base.png rename to data/themes/dark/images/bt_dis_base.png diff --git a/data/themes/images/bt_dis_hilight.png b/data/themes/dark/images/bt_dis_hilight.png similarity index 100% rename from data/themes/images/bt_dis_hilight.png rename to data/themes/dark/images/bt_dis_hilight.png diff --git a/data/themes/images/bt_glow.png b/data/themes/dark/images/bt_glow.png similarity index 100% rename from data/themes/images/bt_glow.png rename to data/themes/dark/images/bt_glow.png diff --git a/data/themes/images/bt_hilight.png b/data/themes/dark/images/bt_hilight.png similarity index 100% rename from data/themes/images/bt_hilight.png rename to data/themes/dark/images/bt_hilight.png diff --git a/data/themes/images/bt_shine.png b/data/themes/dark/images/bt_shine.png similarity index 100% rename from data/themes/images/bt_shine.png rename to data/themes/dark/images/bt_shine.png diff --git a/data/themes/images/bt_sm_base2.png b/data/themes/dark/images/bt_sm_base2.png similarity index 100% rename from data/themes/images/bt_sm_base2.png rename to data/themes/dark/images/bt_sm_base2.png diff --git a/data/themes/images/bt_sm_hilight.png b/data/themes/dark/images/bt_sm_hilight.png similarity index 100% rename from data/themes/images/bt_sm_hilight.png rename to data/themes/dark/images/bt_sm_hilight.png diff --git a/data/themes/images/bt_sm_shine.png b/data/themes/dark/images/bt_sm_shine.png similarity index 100% rename from data/themes/images/bt_sm_shine.png rename to data/themes/dark/images/bt_sm_shine.png diff --git a/data/themes/dark/images/bub_over_bot.png b/data/themes/dark/images/bub_over_bot.png new file mode 100644 index 0000000..68b147c Binary files /dev/null and b/data/themes/dark/images/bub_over_bot.png differ diff --git a/data/themes/images/cur_box.png b/data/themes/dark/images/cur_box.png similarity index 100% rename from data/themes/images/cur_box.png rename to data/themes/dark/images/cur_box.png diff --git a/data/themes/images/cur_glow.png b/data/themes/dark/images/cur_glow.png similarity index 100% rename from data/themes/images/cur_glow.png rename to data/themes/dark/images/cur_glow.png diff --git a/data/themes/images/cur_hi.png b/data/themes/dark/images/cur_hi.png similarity index 100% rename from data/themes/images/cur_hi.png rename to data/themes/dark/images/cur_hi.png diff --git a/data/themes/images/cur_shad.png b/data/themes/dark/images/cur_shad.png similarity index 100% rename from data/themes/images/cur_shad.png rename to data/themes/dark/images/cur_shad.png diff --git a/data/themes/images/cur_shine.png b/data/themes/dark/images/cur_shine.png similarity index 100% rename from data/themes/images/cur_shine.png rename to data/themes/dark/images/cur_shine.png diff --git a/data/themes/images/fileselect.png b/data/themes/dark/images/fileselect.png similarity index 100% rename from data/themes/images/fileselect.png rename to data/themes/dark/images/fileselect.png diff --git a/data/themes/images/folder.png b/data/themes/dark/images/folder.png similarity index 100% rename from data/themes/images/folder.png rename to data/themes/dark/images/folder.png diff --git a/data/themes/dark/images/holes_vert.png b/data/themes/dark/images/holes_vert.png new file mode 100644 index 0000000..01611d1 Binary files /dev/null and b/data/themes/dark/images/holes_vert.png differ diff --git a/data/themes/images/logo.png b/data/themes/dark/images/logo.png similarity index 100% rename from data/themes/images/logo.png rename to data/themes/dark/images/logo.png diff --git a/data/themes/dark/images/menu_layout.png b/data/themes/dark/images/menu_layout.png new file mode 100644 index 0000000..967bd9a Binary files /dev/null and b/data/themes/dark/images/menu_layout.png differ diff --git a/data/themes/images/minus.png b/data/themes/dark/images/minus.png similarity index 100% rename from data/themes/images/minus.png rename to data/themes/dark/images/minus.png diff --git a/data/themes/images/part_highlight.png b/data/themes/dark/images/part_highlight.png similarity index 100% rename from data/themes/images/part_highlight.png rename to data/themes/dark/images/part_highlight.png diff --git a/data/themes/images/plus.png b/data/themes/dark/images/plus.png similarity index 100% rename from data/themes/images/plus.png rename to data/themes/dark/images/plus.png diff --git a/data/themes/images/preference.png b/data/themes/dark/images/preference.png similarity index 100% rename from data/themes/images/preference.png rename to data/themes/dark/images/preference.png diff --git a/data/themes/images/sb_runnerh.png b/data/themes/dark/images/sb_runnerh.png similarity index 100% rename from data/themes/images/sb_runnerh.png rename to data/themes/dark/images/sb_runnerh.png diff --git a/data/themes/images/sb_runnerv.png b/data/themes/dark/images/sb_runnerv.png similarity index 100% rename from data/themes/images/sb_runnerv.png rename to data/themes/dark/images/sb_runnerv.png diff --git a/data/themes/images/setting_icon.png b/data/themes/dark/images/setting_icon.png similarity index 100% rename from data/themes/images/setting_icon.png rename to data/themes/dark/images/setting_icon.png diff --git a/data/themes/images/shelf_inset.png b/data/themes/dark/images/shelf_inset.png similarity index 100% rename from data/themes/images/shelf_inset.png rename to data/themes/dark/images/shelf_inset.png diff --git a/data/themes/dark/images/shine.png b/data/themes/dark/images/shine.png new file mode 100644 index 0000000..e433c02 Binary files /dev/null and b/data/themes/dark/images/shine.png differ diff --git a/data/themes/images/sl_bt2_2.png b/data/themes/dark/images/sl_bt2_2.png similarity index 100% rename from data/themes/images/sl_bt2_2.png rename to data/themes/dark/images/sl_bt2_2.png diff --git a/data/themes/images/swallow.png b/data/themes/dark/images/swallow.png similarity index 100% rename from data/themes/images/swallow.png rename to data/themes/dark/images/swallow.png diff --git a/data/themes/images/warning.png b/data/themes/dark/images/warning.png similarity index 100% rename from data/themes/images/warning.png rename to data/themes/dark/images/warning.png diff --git a/data/themes/layout.edc b/data/themes/dark/layout.edc similarity index 99% rename from data/themes/layout.edc rename to data/themes/dark/layout.edc index ef5c1ee..26578db 100644 --- a/data/themes/layout.edc +++ b/data/themes/dark/layout.edc @@ -1,6 +1,6 @@ styles { style { name: "entry_statusbar_style"; - base: "font="FN" font_size=11 color=#000000 text_class=entry color=#606060"; + base: "font="FN" font_size=11 text_class=entry color=#ffffff"; } } diff --git a/data/themes/dark/menu.edc b/data/themes/dark/menu.edc new file mode 100644 index 0000000..d6b2af7 --- /dev/null +++ b/data/themes/dark/menu.edc @@ -0,0 +1,1302 @@ +images { + image: "menu_layout.png" COMP; + image: "folder.png" COMP; + image: "preference.png" COMP; + image: "warning.png" COMP; + image: "setting_icon.png" COMP; + image: "fileselect.png" COMP; + image: "logo.png" COMP; + image: "shine.png" COMP; + image: "bub_over_bot.png" COMP; +} + +group { name: "about_layout"; + parts { + part { name: "clipper"; + type: RECT; + description { state: "default" 0.0; + color: 127 127 127 127; + } + description { state: "show" 0.0; + color: 255 255 255 255; + } + } + part { name: "bg"; + type: RECT; + clip_to: "clipper"; + description { state: "default" 0.0; + color: 0 0 0 175; + } + } + part { name: "logo"; + scale: 1; + description { state: "default" 0.0; + min: 100 100; + max: 100 100; + image.normal: "logo.png"; + align: 1 1; + color: 255 255 255 205; + } + } + part { name: "left_top_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 10 10; + fixed: 1 1; + align: 0 0; + rel2.relative: 0 0; + } + } + part { name: "right_bottom_padding"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + min: 10 10; + fixed: 1 1; + align: 1 1; + rel1.relative: 1 1; + } + } + part { name: "elm.swallow.entry"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "left_top_padding"; + rel1.relative: 1 1; + rel2.to: "right_bottom_padding"; + rel2.relative: 0 0; + } + } + part { name: "event_blocker"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + } + programs { + program { name: "load"; + signal: "load"; + action: STATE_SET "show" 0.0; + transition: "DECELERATE" 0.5; + target: "clipper"; + after: "event_blocker_hide"; + } + program { name: "dismiss"; + signal: "elm,state,dismiss"; + source: ""; + action: STATE_SET "default" 0.0; +// transition: "DECELERATE" 0.125; + target: "clipper"; + target: "event_blocker"; + after: "dismiss_done"; + } + program { name: "event_blocker_hide"; + signal: "elm,state,event_blocker,hide"; + source: ""; + action: STATE_SET "hide" 0.0; + target: "event_blocker"; + } + program { name: "dismiss_done"; + action: SIGNAL_EMIT "elm,state,dismiss,done" ""; + } + } +} + +group { name: "fileselector_layout"; + parts { + part { name: "clipper"; + type: RECT; + description { state: "default" 0.0; + color: 127 127 127 127; + } + description { state: "show" 0.0; + color: 255 255 255 255; + } + } + part { name: "bg"; + type: RECT; + clip_to: "clipper"; + description { state: "default" 0.0; + color: 0 0 0 175; + } + } + part { name: "base_frame_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + min: 600 380; + max: 600 380; + fixed: 1 1; + image.normal: "menu_layout.png"; + image.border: 10 10 10 10; + image.border_scale: 1; + } + } + part { name: "shine_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + rel1 { to: "base_frame_img"; relative: 0 0; } + rel2 { to: "base_frame_img"; relative: 1 0; } + align: 0.5 0; + min: 600 3; + fixed: 1 1; + image.normal: "shine.png"; + } + } + part { name: "base_frame"; + type: SPACER; + description { + rel1 { to: "base_frame_img"; offset: 10 10; } + rel2 { to: "base_frame_img"; offset: -11 -11; } + } + } + part { name: "title_frame"; + type: RECT; + clip_to: "clipper"; + description { + rel1 { to: "base_frame"; } + rel2 { to: "base_frame"; relative: 1 0; } + align: 0.5 0; + min: 0 23; + fixed: 0 1; + color: 0 0 0 255; + } + } + part { name: "title_icon"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0.5; + min: 20 20; + max: 20 20; + fixed: 1 1; + rel1.to: "title_frame"; + rel2.to: "title_frame"; + image.normal: "fileselect.png"; + } + } + part { name: "elm.text.title"; + type: TEXT; + scale: 1; + clip_to: "clipper"; + effect: GLOW; + description { + rel1.to: "title_frame"; + rel2.to: "title_frame"; + align: 0.5 0.5; + fixed: 1 1; + text { + font: FN; + size: 12; + align: 0.5 0.5; + min: 1 0; + } + color: 51 153 255 255; + color2: 51 153 255 24; + color3: 51 153 255 18; + } + } + part { name: "elm.swallow.fileselector"; + type: SWALLOW; + clip_to: "clipper"; + description { + rel1 { to: "title_frame"; relative: 0 1; } + rel2 { to: "base_frame"; } + } + } + part { name: "elm.text.msg"; + type: TEXT; + scale: 1; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.relative: 0 1; + rel1.to: "elm.swallow.fileselector"; + rel2.relative: 1 1; + rel2.to: "elm.swallow.fileselector"; + text { + font: FN; + size: 11; + align: 0.5 1; + text: "adfasdfadsf"; + } + color: 0 0 0 0; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + color: 255 0 0 255; + } + } + part { name: "event_blocker"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "over_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + mouse_events: 0; + description { + rel1 { to: "base_frame_img"; relative: 0 0; } + rel2 { to: "base_frame_img"; relative: 1 1; } + image.normal: "bub_over_bot.png"; + } + } + } + programs { + program { name: "load"; + signal: "load"; + action: STATE_SET "show" 0.0; + transition: "DECELERATE" 0.5; + target: "clipper"; + after: "event_blocker_hide"; + } + program { name: "dismiss"; + signal: "elm,state,dismiss"; + source: ""; + action: STATE_SET "default" 0.0; +// transition: "DECELERATE" 0.125; + target: "clipper"; + target: "event_blocker"; + after: "dismiss_done"; + } + program { name: "event_blocker_hide"; + signal: "elm,state,event_blocker,hide"; + source: ""; + action: STATE_SET "hide" 0.0; + target: "event_blocker"; + } + program { name: "dismiss_done"; + action: SIGNAL_EMIT "elm,state,dismiss,done" ""; + } + program { name: "msg_show"; + signal: "elm,action,msg,show"; + source: ""; + action: STATE_SET "show" 0.0; + target: "elm.text.msg"; + transition: DECELERATE 0.3; + after: "msg_idle"; + } + program { name: "msg_idle"; + action: STATE_SET "show" 0.0; + target: "elm.text.msg"; + transition: LINEAR 1; + after: "msg_hide"; + } + program { name: "msg_hide"; + action: STATE_SET "default" 0.0; + target: "elm.text.msg"; + transition: DECELERATE 0.3; + } + } +} + +group { name: "warning_layout"; + parts { + part { name: "clipper"; + type: RECT; + description { state: "default" 0.0; + color: 127 127 127 127; + } + description {state: "show" 0.0; + color: 255 255 255 255; + } + } + part { name: "bg"; + type: RECT; + clip_to: "clipper"; + description { state: "default" 0.0; + color: 0 0 0 175; + } + } + part { name: "base_frame_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + min: 300 145; + max: 300 145; + fixed: 1 1; + image.normal: "menu_layout.png"; + image.border: 10 10 10 10; + image.border_scale: 1; + } + } + part { name: "shine_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + rel1 { to: "base_frame_img"; relative: 0 0; } + rel2 { to: "base_frame_img"; relative: 1 0; } + align: 0.5 0; + min: 600 3; + fixed: 1 1; + image.normal: "shine.png"; + } + } + part { name: "base_frame"; + type: SPACER; + description { + rel1 { to: "base_frame_img"; offset: 10 10; } + rel2 { to: "base_frame_img"; offset: -11 -11; } + } + } + part { name: "title_bg"; + type: RECT; + scale: 1; + description { + rel1.to: "base_frame"; + rel2.to: "base_frame"; + rel2.relative: 1 0; + align: 0.5 0; + min: 0 23; + fixed: 0 1; + color: 0 0 0 255; + } + } + part { name: "warning_img"; + type: IMAGE; + clip_to: "clipper"; + description { + min: 20 20; + max: 20 20; + fixed: 1 1; + align: 0 0.5; + rel1.to: "title_bg"; + rel2.to: "title_bg"; + rel1.offset: 5 0; + image.normal: "warning.png"; + } + } + part { name: "elm.text.title"; + type: TEXT; + clip_to: "clipper"; + scale: 1; + effect: GLOW; + description { + rel1.to: "title_bg"; + rel2.to: "title_bg"; + text.text: "EDC has been changed"; + text { + font: FN; + size: 12; + align: 0.5 0.5; + min: 1 1; + } + fixed: 1 1; + align: 0.5 0.5; + color: 51 153 255 255; + color2: 51 153 255 24; + color3: 51 153 255 18; + } + } + part { name: "elm.text.desc"; + type: TEXT; + clip_to: "clipper"; + scale: 1; + description { + rel1 { to: "elm.text.title"; relative: 0.5 1; offset: 0 10; } + rel2 { to: "elm.text.title"; relative: 0.5 1; } + text.text: "Without save, you will lost last changes!"; + text { + font: FN; + size: 12; + align: 0.5 0; + min: 1 1; + } + align: 0.5 0; + fixed: 1 1; + } + } + part { name: "elm.text.question"; + type: TEXT; + clip_to: "clipper"; + scale: 1; + description { + rel1 { to: "elm.text.desc"; relative: 0.5 1; } + rel2 { to: "elm.text.desc"; relative: 0.5 1; } + text.text: "Are you sure you want to do this?"; + text { + font: FN; + size: 12; + align: 0.5 0; + min: 1 1; + } + align: 0.5 0; + fixed: 1 1; + } + } + part { name: "elm.swallow.save"; + type: SWALLOW; + clip_to: "clipper"; + scale: 1; + description { + rel1.to: "elm.swallow.yes"; + rel2.to: "elm.swallow.yes"; + rel1.relative: 0 0; + rel2.relative: 0 1; + rel2.offset: -10 -1; + min: 50 25; + align: 1 1; + fixed: 1 1; + } + } + part { name: "elm.swallow.yes"; + type: SWALLOW; + clip_to: "clipper"; + scale: 1; + description { + rel1.to: "base_frame"; + rel2.to: "base_frame"; + rel1.relative: 0.5 1; + rel2.relative: 0.5 1; + min: 50 25; + align: 0.5 1; + fixed: 1 1; + } + } + part { name: "elm.swallow.no"; + type: SWALLOW; + clip_to: "clipper"; + scale: 1; + description { + rel1.to: "elm.swallow.yes"; + rel2.to: "elm.swallow.yes"; + rel1.relative: 1 0; + rel2.relative: 1 1; + rel1.offset: 10 0; + min: 50 25; + align: 0 0.5; + fixed: 1 1; + color: 0 0 0 255; + } + } + part { name: "event_blocker"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "over_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + mouse_events: 0; + description { + rel1 { to: "base_frame_img"; relative: 0 0; } + rel2 { to: "base_frame_img"; relative: 1 1; } + image.normal: "bub_over_bot.png"; + } + } + } + programs { + program { name: "load"; + signal: "load"; + action: STATE_SET "show" 0.0; + transition: "DECELERATE" 0.25; + target: "clipper"; + after: "event_blocker_hide"; + } + program { name: "dismiss"; + signal: "elm,state,dismiss"; + source: ""; + action: STATE_SET "default" 0.0; + transition: "DECELERATE" 0.125; + target: "clipper"; + target: "event_blocker"; + after: "dismiss_done"; + } + program { name: "event_blocker_hide"; + signal: "elm,state,event_blocker,hide"; + source: ""; + action: STATE_SET "hide" 0.0; + target: "event_blocker"; + } + program { name: "dismiss_done"; + action: SIGNAL_EMIT "elm,state,dismiss,done" ""; + } + } +} + +group { name: "button_layout"; + parts { + part { name: "elm.swallow.btn"; + type: SWALLOW; + scale: 1; + description { state: "default" 0.0; + align: 0.5 0.5; + min: 50 50; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + fixed: 1 1; + } + description { state: "zoom" 0.0; + inherit: "default" 0.0; + min: 80 80; + } + } + } + programs { + program { name: "btn_effect"; + signal: "elm,action,btn,zoom"; + source: ""; + action: STATE_SET "zoom" 0.0; + target: "elm.swallow.btn"; + transition: LINEAR 0.25; + } + } +} + +group { name: "menu_layout"; + parts { + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + } + description { state: "show" 0.0; + color: 0 0 0 175; + } + } + part { name: "clipper"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 0; + } + description { state: "show" 0.0; + color: 255 255 255 255; + } + } + part { name: "base_frame"; + type: SPACER; + scale: 1; + description { + align: 0.5 0.5; + min: 640 0; + fixed: 1 0; + rel1.relative: 0.5 0; + rel2.relative: 0.5 1; + } + } + part { name: "title"; + type: TEXT; + scale: 1; + effect: GLOW; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.relative: 0 0; + rel2.relative: 1 0; + rel1.to_x: "base_frame"; + rel2.to_x: "base_frame"; + rel1.to_y: "padding1"; + rel2.to_y: "padding1"; + min: 0 120; + fixed: 0 1; + align: 1 1; + text { + font: FN; + text: "Enventor Menu"; + size: 28; + align: 0.5 1; + min: 1 0; + } + color: 51 153 255 255; + color2: 51 153 255 24; + color3: 51 153 255 18; + } + } + part { name: "padding1"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + rel1.relative: 0 0.5; + rel2.relative: 0 0.5; + rel1.to: "base_frame"; + rel2.to: "base_frame"; + min: 23 120; + fixed: 1 1; + align: 0 0.5; + } + } + part { name: "elm.swallow.new_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "padding1"; + rel2.to: "padding1"; + rel1.relative: 1 0; + align: 0 0.5; + min: 80 80; + fixed: 1 1; + } + } + part { name: "padding2"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.swallow.new_btn"; + rel2.to: "elm.swallow.new_btn"; + rel1.relative: 1 0; + min: 23 80; + fixed: 1 1; + align: 0 0.5; + } + } + part { name: "elm.swallow.save_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "padding2"; + rel2.to: "padding2"; + rel1.relative: 1 0; + align: 0 0.5; + min: 80 80; + fixed: 1 1; + } + } + part { name: "padding3"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.swallow.save_btn"; + rel2.to: "elm.swallow.save_btn"; + rel1.relative: 1 0; + min: 23 80; + fixed: 1 1; + align: 0 0.5; + } + } + part { name: "elm.swallow.load_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "padding3"; + rel2.to: "padding3"; + rel1.relative: 1 0; + align: 0 0.5; + min: 80 80; + fixed: 1 1; + } + } + part { name: "padding4"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.swallow.load_btn"; + rel2.to: "elm.swallow.load_btn"; + rel1.relative: 1 0; + min: 23 80; + fixed: 1 1; + align: 0 0.5; + } + } + part { name: "elm.swallow.setting_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "padding4"; + rel2.to: "padding4"; + rel1.relative: 1 0; + align: 0 0.5; + min: 80 80; + fixed: 1 1; + } + } + part { name: "padding5"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.swallow.setting_btn"; + rel2.to: "elm.swallow.setting_btn"; + rel1.relative: 1 0; + min: 23 80; + fixed: 1 1; + align: 0 0.5; + } + } + part { name: "elm.swallow.about_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "padding5"; + rel2.to: "padding5"; + rel1.relative: 1 0; + align: 0 0.5; + min: 80 80; + fixed: 1 1; + } + } + part { name: "padding6"; + type: SPACER; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.swallow.about_btn"; + rel2.to: "elm.swallow.about_btn"; + rel1.relative: 1 0; + min: 23 80; + fixed: 1 1; + align: 0 0.5; + } + } + part { name: "elm.swallow.exit_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "padding6"; + rel2.to: "padding6"; + rel1.relative: 1 0; + align: 0 0.5; + min: 80 80; + fixed: 1 1; + } + } + part { name: "event_blocker"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + } + programs { + program { name: "load"; + signal: "load"; + action: STATE_SET "show" 0.0; + transition: "DECELERATE" 0.25; + target: "bg"; + target: "clipper"; + after: "event_blocker_hide"; + } + program { name: "event_blocker_hide"; + signal: "elm,state,event_blocker,hide"; + source: ""; + action: STATE_SET "hide" 0.0; + target: "event_blocker"; + } + program { name: "dismiss"; + signal: "elm,state,dismiss"; + source: ""; + action: STATE_SET "default" 0.0; + transition: "DECELERATE" 0.125; + target: "bg"; + target: "event_blocker"; + target: "clipper"; + after: "dismiss_done"; + } + program { name: "dismiss_done"; + action: SIGNAL_EMIT "elm,state,dismiss,done" ""; + } + } +} + +group { name: "setting_layout"; + parts { + part { name: "clipper"; + type: RECT; + description { state: "default" 0.0; + color: 127 127 127 127; + } + description { state: "show" 0.0; + color: 255 255 255 255; + } + } + part { name: "bg"; + type: RECT; + clip_to: "clipper"; + description { state: "default" 0.0; + color: 0 0 0 175; + } + } + part { name: "base_frame_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + min: 600 380; + max: 600 380; + fixed: 1 1; + image.normal: "menu_layout.png"; + image.border: 10 10 10 10; + image.border_scale: 1; + } + } + part { name: "shine_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + rel1 { to: "base_frame_img"; relative: 0 0; } + rel2 { to: "base_frame_img"; relative: 1 0; } + align: 0.5 0; + min: 600 3; + fixed: 1 1; + image.normal: "shine.png"; + } + } + part { name: "base_frame"; + type: SPACER; + description { + rel1 {to: "base_frame_img"; offset: 10 10;} + rel2 {to: "base_frame_img"; offset: -11 -11;} + } + } + part { name: "title_frame"; + type: RECT; + clip_to: "clipper"; + description { + rel1 {to: "base_frame"; relative: 0 0;} + rel2 {to: "base_frame"; relative: 1 0;} + align: 0.5 0; + min: 0 23; + fixed: 0 1; + color: 0 0 0 255; + } + } + part { name: "title_icon"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0.5; + min: 20 20; + max: 20 20; + fixed: 1 1; + rel1.to: "title_frame"; + rel2.to: "title_frame"; + image.normal: "setting_icon.png"; + } + } + part { name: "title_name"; + type: TEXT; + scale: 1; + clip_to: "clipper"; + effect: GLOW; + description { + rel1.to: "title_frame"; + rel2.to: "title_frame"; + align: 0.5 0.5; + fixed: 1 1; + text { + font: FN; + text: "Setting"; + size: 12; + align: 0.5 0.5; + min: 1 0; + } + color: 51 153 255 255; + color2: 51 153 255 24; + color3: 51 153 255 18; + } + } + part { name: "img_path_frame"; + type: SPACER; + description { + rel1 {to: "title_frame"; relative: 0 1;} + rel2 {to: "title_frame"; relative: 1 1;} + align: 0.5 0; + min: 0 30; + fixed: 0 1; + } + } + part { name: "snd_path_frame"; + type: SPACER; + description { + rel1 {to: "img_path_frame"; relative: 0 1;} + rel2 {to: "img_path_frame"; relative: 1 1;} + align: 0.5 0; + min: 0 30; + fixed: 0 1; + } + } + part { name: "fnt_path_frame"; + type: SPACER; + description { + rel1 {to: "snd_path_frame"; relative: 0 1;} + rel2 {to: "snd_path_frame"; relative: 1 1;} + align: 0.5 0; + min: 0 30; + fixed: 0 1; + } + } + part { name: "data_path_frame"; + type: SPACER; + description { + rel1 {to: "fnt_path_frame"; relative: 0 1;} + rel2 {to: "fnt_path_frame"; relative: 1 1;} + align: 0.5 0; + min: 0 30; + fixed: 0 1; + } + } + part { name: "preference_frame"; + type: SPACER; + description { + rel1 {to: "data_path_frame"; relative: 0 1;} + rel2 {to: "data_path_frame"; relative: 1 1;} + align: 0.5 0; + min: 0 185; + fixed: 0 1; + } + } + part { name: "img_path_icon"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0.5; + min: 20 20; + max: 20 20; + fixed: 1 1; + rel1.to: "img_path_frame"; + rel2.to: "img_path_frame"; + image.normal: "folder.png"; + } + } + part { name: "img_path_guide"; + type: TEXT; + scale: 1; + clip_to: "clipper"; + description { + rel1 {to: "img_path_icon"; relative: 1 0; offset: 5 1;} + rel2 {to: "img_path_icon"; relative: 1 1;} + color: 255 255 255 255; + align: 0 0.5; + fixed: 1 1; + text { + font: FN; + text: "Image Paths:"; + size: 12; + align: 0 0.5; + min: 1 0; + } + } + } + part { name: "elm.swallow.img_path_entry"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0; + fixed: 1 1; + rel1.to_x: "img_path_guide"; + rel1.to_y: "img_path_guide"; + rel1.offset: 5 0; + rel1.relative: 1 0; + rel2.to: "img_path_frame"; + } + } + part { name: "snd_path_icon"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0.5; + min: 20 20; + max: 20 20; + fixed: 1 1; + rel1.to: "snd_path_frame"; + rel2.to: "snd_path_frame"; + image.normal: "folder.png"; + } + } + part { name: "snd_path_guide"; + type: TEXT; + scale: 1; + clip_to: "clipper"; + description { + rel1 {to: "snd_path_icon"; relative: 1 0; offset: 5 1;} + rel2 {to: "snd_path_icon"; relative: 1 1;} + color: 255 255 255 255; + align: 0 0.5; + fixed: 1 1; + text { + font: FN; + text: "Sound Paths:"; + size: 12; + align: 0 0.5; + min: 1 0; + } + } + } + part { name: "elm.swallow.snd_path_entry"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0; + fixed: 1 1; + rel1.to_x: "snd_path_guide"; + rel1.to_y: "snd_path_guide"; + rel1.offset: 5 0; + rel1.relative: 1 0; + rel2.to: "snd_path_frame"; + } + } + part { name: "fnt_path_icon"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0.5; + min: 20 20; + max: 20 20; + fixed: 1 1; + rel1.to: "fnt_path_frame"; + rel2.to: "fnt_path_frame"; + image.normal: "folder.png"; + } + } + part { name: "fnt_path_guide"; + type: TEXT; + scale: 1; + clip_to: "clipper"; + description { + rel1 {to: "fnt_path_icon"; relative: 1 0; offset: 5 1;} + rel2 {to: "fnt_path_icon"; relative: 1 1;} + color: 255 255 255 255; + align: 0 0.5; + fixed: 1 1; + text { + font: FN; + text: "Font Paths:"; + size: 12; + align: 0 0.5; + min: 1 0; + } + } + } + part { name: "elm.swallow.fnt_path_entry"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0; + fixed: 1 1; + rel1.to_x: "fnt_path_guide"; + rel1.to_y: "fnt_path_guide"; + rel1.offset: 17 0; + rel1.relative: 1 0; + rel2.to: "fnt_path_frame"; + } + } + part { name: "data_path_icon"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0.5; + min: 20 20; + max: 20 20; + fixed: 1 1; + rel1.to: "data_path_frame"; + rel2.to: "data_path_frame"; + image.normal: "folder.png"; + } + } + part { name: "data_path_guide"; + type: TEXT; + scale: 1; + clip_to: "clipper"; + description { + rel1 {to: "data_path_icon"; relative: 1 0; offset: 5 1;} + rel2 {to: "data_path_icon"; relative: 1 1;} + color: 255 255 255 255; + align: 0 0.5; + fixed: 1 1; + text { + font: FN; + text: "Data Paths:"; + size: 12; + align: 0 0.5; + min: 1 0; + } + } + } + part { name: "elm.swallow.data_path_entry"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0; + fixed: 1 1; + rel1.to_x: "data_path_guide"; + rel1.to_y: "data_path_guide"; + rel1.offset: 14 0; + rel1.relative: 1 0; + rel2.to: "data_path_frame"; + } + } + part { name: "preference_icon"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0; + min: 20 20; + max: 20 20; + fixed: 1 1; + rel1.to: "preference_frame"; + rel2.to: "preference_frame"; + image.normal: "preference.png"; + } + } + part { name: "preference_guide"; + type: TEXT; + scale: 1; + clip_to: "clipper"; + description { + rel1 {to: "preference_icon"; relative: 1 0; offset: 5 1;} + rel2 {to: "preference_icon"; relative: 1 1;} + color: 255 255 255 255; + align: 0 0; + fixed: 1 1; + text { + font: FN; + text: "Preferences:"; + size: 12; + align: 0 0; + min: 1 0; + } + } + } + part { name: "elm.swallow.preference"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { + rel1.to_x: "preference_guide"; + rel1.to_y: "preference_guide"; + rel1.offset: 0 10; + rel1.relative: 0 1; + rel2.to: "preference_frame"; + } + } + part { name: "elm.swallow.apply_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { + align: 1 0.5; + min: 50 25; + fixed: 1 1; + rel1.to: "elm.swallow.reset_btn"; + rel1.relative: 0 0; + rel2.to: "elm.swallow.reset_btn"; + rel2.relative: 0 1; + } + } + part { name: "elm.swallow.reset_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { + align: 0.5 1; + min: 50 25; + fixed: 1 1; + rel1.to: "base_frame"; + rel1.relative: 0.5 1; + rel2.to: "base_frame"; + rel2.relative: 0.5 1; + } + } + part { name: "elm.swallow.cancel_btn"; + type: SWALLOW; + scale: 1; + clip_to: "clipper"; + description { + align: 0 0.5; + min: 50 25; + fixed: 1 1; + rel1.to: "elm.swallow.reset_btn"; + rel1.relative: 1 0; + rel2.to: "elm.swallow.reset_btn"; + rel2.relative: 1 1; + } + } + part { name: "event_blocker"; + type: RECT; + description { state: "default" 0.0; + color: 0 0 0 0; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "over_img"; + type: IMAGE; + scale: 1; + clip_to: "clipper"; + mouse_events: 0; + description { + rel1 { to: "base_frame_img"; relative: 0 0; } + rel2 { to: "base_frame_img"; relative: 1 1; } + image.normal: "bub_over_bot.png"; + } + } + } + programs { + program { name: "load"; + signal: "load"; + action: STATE_SET "show" 0.0; + transition: "DECELERATE" 0.5; + target: "clipper"; + after: "event_blocker_hide"; + } + program { name: "dismiss"; + signal: "elm,state,dismiss"; + source: ""; + action: STATE_SET "default" 0.0; +// transition: "DECELERATE" 0.125; + target: "clipper"; + target: "event_blocker"; + after: "dismiss_done"; + } + program { name: "event_blocker_hide"; + signal: "elm,state,event_blocker,hide"; + source: ""; + action: STATE_SET "hide" 0.0; + target: "event_blocker"; + } + program { name: "dismiss_done"; + action: SIGNAL_EMIT "elm,state,dismiss,done" ""; + } + } +} + + diff --git a/data/themes/dark/theme_ext.edc b/data/themes/dark/theme_ext.edc new file mode 100644 index 0000000..11a6f45 --- /dev/null +++ b/data/themes/dark/theme_ext.edc @@ -0,0 +1,2219 @@ +styles + { + style { name: "entry_linenumber_style"; + base: "font="FN" font_size=11 color=#a0a0a0 text_class=entry"; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#800 underline=on underline_color=#8008"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + style { name: "entry_edit_style"; + base: "font="FN" font_size=11 color=#cfcfcf text_class=entry"; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#800 underline=on underline_color=#8008"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + style { name: "entry_textblock_guide_style"; + base: "font="FN" font_size=10 color=#00000040 wrap=word text_class=entry ellipsis=0.0"; + tag: "em" "+ font_style=Oblique"; + tag: "hilight" "+ font_weight=Bold"; + } + style { name: "entry_single_textblock_style"; + base: "font="FN" font_size=12 color=#ffffff wrap=none text_class=entry left_margin=2 right_margin=2"; + tag: "br" ""; + tag: "ps" ""; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + +/* + style { name: "entry_textblock_style_mixedwrap"; + base: "font=Sans font_size=10 color=#000 wrap=mixed text_class=entry left_margin=2 right_margin=2"; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#800 underline=on underline_color=#8008"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + style { name: "entry_textblock_disabled_style_mixedwrap"; + base: "font=Sans font_size=10 color=#00000080 wrap=char text_class=entry left_margin=2 right_margin=2"; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + style { name: "entry_textblock_guide_style_mixedwrap"; + base: "font=Sans font_size=10 color=#00000040 wrap=mixed text_class=entry left_margin=2 right_margin=2 ellipsis=0.0"; + tag: "em" "+ font_style=Oblique"; + tag: "hilight" "+ font_weight=Bold"; + } + style { name: "entry_textblock_style_charwrap"; + base: "font=Sans font_size=10 color=#000 wrap=char text_class=entry left_margin=2 right_margin=2"; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#800 underline=on underline_color=#8008"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + style { name: "entry_textblock_disabled_style_charwrap"; + base: "font=Sans font_size=10 color=#00000080 wrap=char text_class=entry left_margin=2 right_margin=2"; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + style { name: "entry_textblock_guide_style_charwrap"; + base: "font=Sans font_size=10 color=#00000040 wrap=char text_class=entry left_margin=2 right_margin=2 ellipsis=0.0"; + tag: "em" "+ font_style=Oblique"; + tag: "hilight" "+ font_weight=Bold"; + } + style { name: "entry_single_t2xtblock_style"; + base: "font=Sans font_size=10 color=#000 wrap=none text_class=entry left_margin=2 right_margin=2"; + tag: "br" ""; + tag: "ps" ""; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#800 underline=on underline_color=#8008"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + style { name: "entry_single_textblock_disabled_style"; + base: "font=Sans font_size=10 color=#00000080 wrap=none text_class=entry left_margin=2 right_margin=2"; + tag: "br" ""; + tag: "ps" ""; + tag: "em" "+ font_style=Oblique"; + tag: "link" "+ color=#00000080 underline=on underline_color=#00000080"; + tag: "hilight" "+ font_weight=Bold"; + tag: "preedit" "+ underline=on underline_color=#000"; + tag: "preedit_sel" "+ backing=on backing_color=#000 color=#FFFFFF"; + } + style { name: "entry_single_textblock_guide_style"; + base: "font=Sans font_size=10 color=#00000080 wrap=none text_class=entry left_margin=2 right_margin=2 ellipsis=0.0"; + tag: "br" ""; + tag: "ps" ""; + tag: "em" "+ font_style=Oblique"; + tag: "hilight" "+ font_weight=Bold"; + } +*/ + } + +group { name: "elm/scroller/entry/about"; + script { + public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; + public timer0(val) { + new v; + v = get_int(sbvis_v); + if (v) { + v = get_int(sbalways_v); + if (!v) { + emit("do-hide-vbar", ""); + set_int(sbvis_v, 0); + } + } + v = get_int(sbvis_h); + if (v) { + v = get_int(sbalways_h); + if (!v) { + emit("do-hide-hbar", ""); + set_int(sbvis_h, 0); + } + } + set_int(sbvis_timer, 0); + return 0; + } + } + images { + image: "shelf_inset.png" COMP; + image: "bt_sm_base2.png" COMP; + image: "bt_sm_shine.png" COMP; + image: "bt_sm_hilight.png" COMP; + image: "sl_bt2_2.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + rel1.offset: 2 2; + rel2.offset: -3 -3; + color: 255 255 255 0; + } + } + part { name: "clipper"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + rel1.offset: 2 2; + rel2.offset: -3 -3; + } + } + part { name: "contentclipper"; + type: RECT; + mouse_events: 0; + clip_to: "clipper"; + description { state: "default" 0.0; + rel1.to: "elm.swallow.icon"; + rel1.relative: 1.0 0.0; + rel2.to: "elm.swallow.end"; + rel2.relative: 0.0 1.0; + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + clip_to: "clipper"; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + to: "bg"; + relative: -1.0 0.0; + offset: 0 0; + } + rel2 { + to: "bg"; + relative: 0.0 1.0; + offset: -1 -1; + } + visible: 0; + } + description { state: "visible" 0.0; + fixed: 1 1; + align: 0.0 1.0; + rel1 { + to: "bg"; + relative: 0.0 0.0; + offset: 0 0; + } + rel2 { + to: "bg"; + relative: 0.0 1.0; + offset: -1 -1; + } + visible: 1; + } + } + part { name: "elm.swallow.end"; + type: SWALLOW; + clip_to: "clipper"; + description { state: "default" 0.0; + fixed: 1 1; + rel1 { + to: "bg"; + relative: 1.0 0.0; + offset: 0 0; + } + rel2 { + to: "bg"; + relative: 1.0 1.0; + offset: -1 -1; + } + visible: 0; + } + description { state: "visible" 0.0; + fixed: 1 1; + align: 1.0 1.0; + rel1 { + to: "bg"; + relative: 1.0 0.0; + offset: 0 0; + } + rel2 { + to: "bg"; + relative: 1.0 1.0; + offset: -1 -1; + } + visible: 1; + } + } + part { name: "elm.swallow.content"; + clip_to: "contentclipper"; + type: SWALLOW; + description { state: "default" 0.0; + rel1 { + to: "elm.swallow.icon"; + relative: 1.0 0.0; + offset: 4 4; + } + rel2 { + to: "elm.swallow.end"; + relative: 0.0 1.0; + offset: -5 -5; + } + } + } + part { name: "sb_vbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_vbar_clip"; + clip_to: "sb_vbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_vbar"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + min: 10 17; + align: 1.0 0.0; + rel1 { + relative: 0.0 0.0; + offset: -2 2; + to_y: "elm.swallow.content"; + to_x: "elm.swallow.end"; + } + rel2 { + relative: 0.0 0.0; + offset: -2 -1; + to_y: "sb_hbar"; + to_x: "elm.swallow.end"; + } + } + } + part { name: "elm.dragable.vbar"; + clip_to: "sb_vbar_clip"; + mouse_events: 0; + dragable { + x: 0 0 0; + y: 1 1 0; + confine: "sb_vbar"; + } + description { state: "default" 0.0; + fixed: 1 1; + min: 10 17; + max: 10 99999; + rel1 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_vbar"; + } + rel2 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_vbar"; + } + image { + normal: "bt_sm_base2.png"; + border: 6 6 6 6; + middle: SOLID; + } + } + } + part { name: "sb_vbar_over1"; + clip_to: "sb_vbar_clip"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.dragable.vbar"; + rel2.relative: 1.0 0.5; + rel2.to: "elm.dragable.vbar"; + image { + normal: "bt_sm_hilight.png"; + border: 6 6 6 0; + } + } + } + part { name: "sb_vbar_over2"; + clip_to: "sb_vbar_clip"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.dragable.vbar"; + rel2.to: "elm.dragable.vbar"; + image { + normal: "bt_sm_shine.png"; + border: 6 6 6 0; + } + } + } + + part { name: "sb_hbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_hbar_clip"; + clip_to: "sb_hbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + color: 255 255 255 0; + } + } + part { name: "sb_hbar"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + fixed: 1 1; + visible: 0; + min: 17 10; + align: 0.0 1.0; + rel1 { + relative: 0.0 1.0; + offset: 2 0; + to_x: "elm.swallow.content"; + to_y: "elm.swallow.content"; + } + rel2 { + relative: 0.0 1.0; + offset: -1 -1; + to_x: "sb_vbar"; + to_y: "elm.swallow.content"; + } + } + } + part { name: "elm.dragable.hbar"; + clip_to: "sb_hbar_clip"; + mouse_events: 0; + dragable { + x: 1 1 0; + y: 0 0 0; + confine: "sb_hbar"; + } + description { state: "default" 0.0; + fixed: 1 1; + min: 17 10; + max: 99999 10; + rel1 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_hbar"; + } + rel2 { + relative: 0.5 0.5; + offset: 0 0; + to: "sb_hbar"; + } + image { + normal: "bt_sm_base2.png"; + border: 4 4 4 4; + middle: SOLID; + } + } + } + part { name: "sb_hbar_over1"; + clip_to: "sb_hbar_clip"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.dragable.hbar"; + rel2.relative: 1.0 0.5; + rel2.to: "elm.dragable.hbar"; + image { + normal: "bt_sm_hilight.png"; + border: 4 4 4 0; + } + } + } + part { name: "sb_hbar_over2"; + clip_to: "sb_hbar_clip"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.dragable.hbar"; + rel2.to: "elm.dragable.hbar"; + image { + normal: "bt_sm_shine.png"; + border: 4 4 4 0; + } + } + } + } + programs { + program { name: "load"; + signal: "load"; + source: ""; + script { + set_state(PART:"sb_hbar_clip", "hidden", 0.0); + set_state(PART:"sb_vbar_clip", "hidden", 0.0); + set_int(sbvis_h, 0); + set_int(sbvis_v, 0); + set_int(sbalways_v, 0); + set_int(sbalways_h, 0); + set_int(sbvis_timer, 0); + } + } + program { name: "icon_show"; + signal: "elm,action,show,icon"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.icon"; + } + program { name: "icon_hide"; + signal: "elm,action,hide,icon"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.icon"; + } + program { name: "end_show"; + signal: "elm,action,show,end"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "elm.swallow.end"; + } + program { name: "end_hide"; + signal: "elm,action,hide,end"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "elm.swallow.end"; + } + program { name: "vbar_show"; + signal: "elm,action,show,vbar"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "sb_vbar_clip_master"; + } + program { name: "vbar_hide"; + signal: "elm,action,hide,vbar"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "sb_vbar_clip_master"; + } + program { name: "vbar_show_always"; + signal: "elm,action,show_always,vbar"; + source: "elm"; + script { + new v; + v = get_int(sbvis_v); + v |= get_int(sbalways_v); + if (!v) { + set_int(sbalways_v, 1); + emit("do-show-vbar", ""); + set_int(sbvis_v, 1); + } + } + } + program { name: "vbar_show_notalways"; + signal: "elm,action,show_notalways,vbar"; + source: "elm"; + script { + new v; + v = get_int(sbalways_v); + if (v) { + set_int(sbalways_v, 0); + v = get_int(sbvis_v); + if (!v) { + emit("do-hide-vbar", ""); + set_int(sbvis_v, 0); + } + } + } + } + program { name: "sb_vbar_show"; + signal: "do-show-vbar"; + source: ""; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.5; + target: "sb_vbar_clip"; + } + program { name: "sb_vbar_hide"; + signal: "do-hide-vbar"; + source: ""; + action: STATE_SET "hidden" 0.0; + transition: LINEAR 0.5; + target: "sb_vbar_clip"; + } + + program { name: "hbar_show"; + signal: "elm,action,show,hbar"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "sb_hbar_clip_master"; + } + program { name: "hbar_hide"; + signal: "elm,action,hide,hbar"; + source: "elm"; + action: STATE_SET "hidden" 0.0; + target: "sb_hbar_clip_master"; + } + program { name: "hbar_show_always"; + signal: "elm,action,show_always,hbar"; + source: "elm"; + script { + new v; + v = get_int(sbvis_h); + v |= get_int(sbalways_h); + if (!v) { + set_int(sbalways_h, 1); + emit("do-show-hbar", ""); + set_int(sbvis_h, 1); + } + } + } + program { name: "hbar_show_notalways"; + signal: "elm,action,show_notalways,hbar"; + source: "elm"; + script { + new v; + v = get_int(sbalways_h); + if (v) { + set_int(sbalways_h, 0); + v = get_int(sbvis_h); + if (!v) { + emit("do-hide-hbar", ""); + set_int(sbvis_h, 0); + } + } + } + } + program { name: "sb_hbar_show"; + signal: "do-show-hbar"; + source: ""; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.5; + target: "sb_hbar_clip"; + } + program { name: "sb_hbar_hide"; + signal: "do-hide-hbar"; + source: ""; + action: STATE_SET "hidden" 0.0; + transition: LINEAR 0.5; + target: "sb_hbar_clip"; + } + + program { name: "scroll"; + signal: "elm,action,scroll"; + source: "elm"; + script { + new v; + v = get_int(sbvis_v); + v |= get_int(sbalways_v); + if (!v) { + emit("do-show-vbar", ""); + set_int(sbvis_v, 1); + } + v = get_int(sbvis_h); + v |= get_int(sbalways_h); + if (!v) { + emit("do-show-hbar", ""); + set_int(sbvis_h, 1); + } + v = get_int(sbvis_timer); + if (v > 0) cancel_timer(v); + v = timer(1.0, "timer0", 0); + set_int(sbvis_timer, v); + } + } + } +} + +group { name: "elm/entry/base/enventor"; + alias: "elm/entry/base/about"; + parts { + part { name: "elm.text"; + type: TEXTBLOCK; + mouse_events: 1; + scale: 1; + entry_mode: EDITABLE; + select_mode: EXPLICIT; + multiline: 1; + source: "elm/entry/selection/enventor"; // selection under + source4: "elm/entry/cursor/enventor"; // cursorover + source5: "elm/entry/anchor/enventor"; // anchor under + description { state: "default" 0.0; + /* we gotta use 0 0 here, because of scrolled entries */ + fixed: 0 0; + align: 0 0; + text { + style: "entry_edit_style"; + min: 0 1; + align: 0.0 0.0; + } + } + } + } + programs { + program { name: "focus"; + signal: "load"; + source: ""; + action: FOCUS_SET; + target: "elm.text"; + } + } +} + +group { name: "elm/entry/base-nowrap-noedit/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.text"; + entry_mode: PLAIN; + description { state: "default" 0.0; + align: 0 0; + text { + style: "entry_edit_style"; + min: 1 1; + align: 0.0 0.0; + } + } + } + } +} + +group { name: "elm/entry/base-nowrap/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.text"; + select_mode: EXPLICIT; + description { state: "default" 0.0; + align: 0 0; + text { + style: "entry_edit_style"; + min: 1 1; + align: 0.0 0.0; + } + } + } + } +} + +group { name: "elm/entry/base-nowrap-noedit/linenumber"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.text"; + entry_mode: PLAIN; + description { state: "default" 0.0; + align: 0 0; + text { + style: "entry_linenumber_style"; + min: 1 1; + align: 0.0 0.0; + } + } + } + } +} + +group { name: "elm/entry/base-single/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.text"; + multiline: 0; + description { state: "default" 0.0; + align: 0.0 0.5; + text { + style: "entry_single_textblock_style"; + min: 1 1; + max: 0 0; + align: 0.0 0.5; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_single_textblock_disabled_style"; + } + } + } + } +} + +group { name: "elm/entry/cursor/enventor"; + images { + image: "cur_box.png" COMP; + image: "cur_hi.png" COMP; + image: "cur_shad.png" COMP; + image: "cur_shine.png" COMP; + image: "cur_glow.png" COMP; + } + parts { + part { name: "clip2"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "clip"; + rel2.to: "clip"; + visible: 0; + } + description { state: "focused" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "clip"; + type: RECT; + mouse_events: 0; + clip_to: "clip2"; + description { state: "default" 0.0; + rel1.offset: -10 0; + rel2.offset: 9 9; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "bg"; + mouse_events: 0; + clip_to: "clip"; + description { state: "default" 0.0; + rel1.to: "base"; + rel1.offset: -2 0; + rel2.to: "base"; + rel2.offset: 1 1; + image.border: 2 2 2 2; + image.border_scale: 1; + image.normal: "cur_shad.png"; + } + } + part { name: "base"; + mouse_events: 0; + scale: 1; + clip_to: "clip"; + description { state: "default" 0.0; + min: 2 2; + align: 0.5 1.0; + rel1.relative: 0.0 1.0; + rel1.offset: 0 -1; + rel2.relative: 1.0 1.0; + rel2.offset: -1 -1; + image.normal: "cur_box.png"; + } + } + part { name: "hi"; + mouse_events: 0; + clip_to: "clip"; + description { state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + rel2.relative: 1.0 0.5; + image.normal: "cur_hi.png"; + } + } + part { name: "shine"; + mouse_events: 0; + clip_to: "clip"; + clip_to: "clip2"; + description { state: "default" 0.0; + rel1.to: "base"; + rel2.to: "base"; + rel2.relative: 1.0 0.75; + image.border: 2 2 1 0; + image.border_scale: 1; + image.normal: "cur_shine.png"; + fill.smooth: 0; + } + } + part { name: "glow"; + mouse_events: 0; + clip_to: "clip2"; + description { state: "default" 0.0; + rel1.to: "base"; + rel1.relative: 0.0 -2.0; + rel1.offset: -2 0; + rel2.to: "base"; + rel2.relative: 1.0 0.0; + rel2.offset: 1 1; + image.border: 2 2 0 4; + image.border_scale: 1; + image.normal: "cur_glow.png"; + fill.smooth: 0; + color: 255 255 255 0; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + color: 255 255 255 55; + visible: 1; + } + } + } + programs { + program { name: "blink"; + action: STATE_SET "visible" 0.0; + in: 0.2 0.0; + target: "clip"; + after: "blink2"; + } + program { name: "blink2"; + action: STATE_SET "visible" 0.0; + in: 0.2 0.0; + target: "glow"; + after: "blink3"; + } + program { name: "blink3"; + action: STATE_SET "default" 0.0; + in: 0.2 0.0; + target: "glow"; + after: "blink4"; + } + program { name: "blink4"; + action: STATE_SET "default" 0.0; + in: 0.2 0.0; + target: "clip"; + after: "blink"; + } + program { name: "noblink"; + action: ACTION_STOP; + target: "blink"; + target: "blink2"; + target: "blink3"; + target: "blink4"; + after: "noblink2"; + } + program { name: "noblink2"; + action: STATE_SET "default" 0.0; + target: "clip"; + target: "glow"; + } + program { name: "focused"; + signal: "elm,action,focus"; + source: "elm"; + action: STATE_SET "focused" 0.0; + target: "clip2"; + after: "blink"; + } + program { name: "unfocused"; + signal: "elm,action,unfocus"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "clip2"; + after: "noblink"; + } + } +} + +group { name: "elm/entry/selection/enventor"; + parts { + part { name: "bg"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + color: 128 128 128 128; + } + } + } +} + +group { name: "elm/entry/anchor/enventor"; + parts { + part { name: "bg"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + color: 128 0 0 64; + } + } + } +} + +/* +group { name: "elm/entry/base-mixedwrap/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.guide"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.text"; + rel2.to: "elm.text"; + text { + style: "entry_textblock_guide_style_mixedwrap"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "elm.text"; + description { state: "default" 0.0; + fixed: 1 0; + text { + style: "entry_textblock_style_mixedwrap"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_textblock_disabled_style_mixedwrap"; + min: 0 1; + } + } + } + } +} + +group { name: "elm/entry/base-charwrap/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.guide"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.text"; + rel2.to: "elm.text"; + text { + style: "entry_textblock_guide_style_charwrap"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "elm.text"; + description { state: "default" 0.0; + fixed: 1 0; + text { + style: "entry_textblock_style_charwrap"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_textblock_disabled_style_charwrap"; + min: 0 1; + } + } + } + } +} + +group { name: "elm/entry/base-single/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.guide"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.text"; + rel2.to: "elm.text"; + text { + style: "entry_single_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "elm.text"; + multiline: 0; + description { state: "default" 0.0; + text { + style: "entry_single_textblock_style"; + min: 1 1; + max: 0 0; + align: 0.0 0.5; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_single_textblock_disabled_style"; + } + } + } + } +} + +group { name: "elm/entry/base-single-noedit/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.text"; + entry_mode: PLAIN; + multiline: 0; + source: "elm/entry/selection/enventor"; // selection under + source4: ""; // cursorover + source5: "elm/entry/anchor/enventor"; // anchor under + description { state: "default" 0.0; + text { + style: "entry_single_textblock_style"; + min: 1 1; + max: 0 0; + align: 0.0 0.5; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_single_textblock_disabled_style"; + } + } + } + } +} + +group { name: "elm/entry/base-noedit/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.text"; + entry_mode: PLAIN; + source: "elm/entry/selection/enventor"; // selection under + source4: ""; // cursorover + source5: "elm/entry/anchor/enventor"; // anchor under + description { state: "default" 0.0; + fixed: 1 0; + text { + style: "entry_textblock_style"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_textblock_disabled_style"; + } + } + } + } +} + +group { name: "elm/entry/base-noedit-mixedwrap/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.text"; + entry_mode: PLAIN; + source: "elm/entry/selection/enventor"; // selection under + source4: ""; // cursorover + source5: "elm/entry/anchor/enventor"; // anchor under + description { state: "default" 0.0; + fixed: 1 0; + text { + style: "entry_textblock_style_mixedwrap"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_textblock_disabled_style_mixedwrap"; + } + } + } + } +} + +group { name: "elm/entry/base-noedit-charwrap/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.text"; + entry_mode: PLAIN; + source: "elm/entry/selection/enventor"; // selection under + source4: ""; // cursorover + source5: "elm/entry/anchor/enventor"; // anchor under + description { state: "default" 0.0; + fixed: 1 0; + text { + style: "entry_textblock_style_charwrap"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_textblock_disabled_style_charwrap"; + } + } + } + } +} + +group { name: "elm/entry/base-password/enventor"; + inherit: "elm/entry/base/enventor"; + parts { + part { name: "elm.guide"; + type: TEXTBLOCK; + mouse_events: 0; + scale: 1; + description { state: "default" 0.0; + rel1.to: "elm.text"; + rel2.to: "elm.text"; + text { + style: "entry_single_textblock_guide_style"; + min: 0 1; + align: 0.0 0.0; + } + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "elm.text"; + entry_mode: PASSWORD; + multiline: 0; + source: "elm/entry/selection/enventor"; // selection under + source4: "elm/entry/cursor/enventor"; // cursorover + source5: "elm/entry/anchor/enventor"; // anchor under + description { state: "default" 0.0; + text { + style: "entry_single_textblock_style"; + repch: "*"; + min: 1 1; + max: 0 0; + align: 0.0 0.5; + } + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + text { + style: "entry_single_textblock_disabled_style"; + } + } + } + } +} +*/ + +group { name: "elm/ctxpopup/bg/enventor"; + parts { + part { name: "ctxpopup_bg"; + type: RECT; + mouse_events: 1; + description { state: "default" 0.0; + color: 0 0 0 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + color: 0 0 0 15; + } + } + } + programs { + program { name: "clicked_event"; + signal: "mouse,clicked,1"; + source: "ctxpopup_bg"; + action: SIGNAL_EMIT "elm,action,click" ""; + } + program { name: "show"; + signal: "elm,state,show"; + source: "elm"; + action: STATE_SET "visible" 0.0; + target: "ctxpopup_bg"; + transition: LINEAR 0.25; + } + program { name: "hide"; + signal: "elm,state,hide"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "ctxpopup_bg"; + transition: LINEAR 0.25; + } + } +} + +group { name: "elm/list/base/enventor"; + data { + item: "focus_highlight" "on"; + } + script { + public sbvis_v, sbvis_h; + } + images { + image: "shelf_inset.png" COMP; + image: "sl_bt2_2.png" COMP; + image: "bt_sm_base2.png" COMP; + image: "bt_sm_shine.png" COMP; + image: "bt_sm_hilight.png" COMP; + image: "sb_runnerh.png" COMP; + image: "sb_runnerv.png" COMP; + image: "arrow_up.png" COMP; + image: "arrow_down.png" COMP; + image: "arrow_right.png" COMP; + image: "arrow_left.png" COMP; + } + parts { + part { name: "bg"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.offset: 1 1; + rel2.offset: -2 -2; + color: 255 255 255 0; + } + } + part { name: "clipper"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + clip_to: "clipper"; + description { state: "default" 0.0; + rel2 { + to_x: "sb_vbar"; + to_y: "sb_hbar"; + relative: 1.0 1.0; + offset: -1 -1; + } + } + description { state: "both" 0.0; + inherit: "default" 0.0; + rel2.relative: 0.0 1.0; + } + description { state: "vertical" 0.0; + inherit: "default" 0.0; + rel2.relative: 0.0 1.0; + } + description { state: "horizontal" 0.0; + inherit: "default" 0.0; + rel2.relative: 1.0 0.0; + } + } + part { name: "conf_over"; + mouse_events: 0; + description { state: "default" 0.0; + image { + normal: "shelf_inset.png"; + border: 7 7 7 7; + middle: 0; + } + fill.smooth: 0; + } + } + part { name: "focus_highlight"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.offset: -1 -1; + rel2.offset: 0 0; + image { + normal: "sl_bt2_2.png"; + border: 7 7 7 7; + middle: 0; + } + fill.smooth: 0; + color: 200 155 0 0; + } + description { state: "enabled" 0.0; + inherit: "default" 0.0; + color: 200 155 0 255; + } + } + part { name: "elm.scrollbar.base"; + type: SWALLOW; + mouse_events: 0; + description { state: "default" 0.0; + min: 13 13; + fixed: 1 1; + align: 1.0 1.0; + rel1.relative: 1.0 1.0; + rel2.offset: 12 12; + } + description { state: "vertical" 0.0; + inherit: "default" 0.0; + align: 1.0 0.0; + rel2.offset: -2 12; + } + description { state: "horizontal" 0.0; + inherit: "default" 0.0; + align: 0.0 1.0; + rel2.offset: 12 -2; + } + description { state: "both" 0.0; + inherit: "default" 0.0; + align: 1.0 1.0; + rel2.offset: -2 -2; + } + } + part { name: "sb_vbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + } + } + part { name: "sb_vbar_clip"; + type: RECT; + mouse_events: 0; + clip_to: "sb_vbar_clip_master"; + description { state: "default" 0.0; + rel1.to: "sb_vbar_clip_master"; + rel2.to: "sb_vbar_clip_master"; + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + max: 0 99999; + } + } + part { name: "sb_vbar"; + type: RECT; + mouse_events: 0; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + min: 13 0; + fixed: 1 1; + color: 0 0 0 0; + align: 0.0 0.5; + rel1 { + to_y: "sb_vbar_a1"; + to_x: "elm.scrollbar.base"; + relative: 0.0 1.0; + offset: 0 -1; + } + rel2 { + to_y: "sb_vbar_a2"; + relative: 1.0 0.0; + offset: -1 -2; + } + } + } + part { name: "sb_vbar_runner"; + mouse_events: 0; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + min: 3 0; + max: 3 99999; + fixed: 1 1; + align: 1.0 0.5; + rel1 { + to: "sb_vbar"; + relative: 0.5 0.0; + offset: 0 2; + } + rel2 { + to: "sb_vbar"; + relative: 0.5 1.0; + offset: 0 -2; + } + image { + normal: "sb_runnerv.png"; + border: 0 0 4 4; + } + fill.smooth: 0; + } + } + part { name: "sb_vbar_p1"; + type: RECT; + mouse_events: 1; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + color: 0 0 0 0; + fixed: 1 1; + rel1 { + to: "sb_vbar_a1"; + relative: 0.0 1.0; + } + rel2 { + to: "elm.dragable.vbar"; + relative: 1.0 0.0; + } + } + } + part { name: "sb_vbar_p2"; + type: RECT; + mouse_events: 1; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + color: 0 0 0 0; + fixed: 1 1; + rel1 { + to: "elm.dragable.vbar"; + relative: 0.0 1.0; + } + rel2 { + to: "sb_vbar_a2"; + relative: 1.0 0.0; + } + } + } + part { name: "sb_vbar_a1"; + type: RECT; + mouse_events: 1; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + min: 13 13; + fixed: 1 1; + align: 0.5 0.0; + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + color: 0 0 0 0; + rel1 { + to_y: "sb_vbar_clip"; + to_x: "elm.scrollbar.base"; + relative: 0.0 0.0; + offset: 0 1; + } + rel2 { + to: "elm.scrollbar.base"; + relative: 1.0 0.0; + offset: -1 -2; + } + } + } + part { name: "sb_vbar_a1_arrow"; + mouse_events: 0; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + rel1.to: "sb_vbar_a1"; + rel2.to: "sb_vbar_a1"; + image.normal: "arrow_up.png"; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + rel1.offset: 0 -1; + rel2.offset: -1 -2; + } + } + part { name: "sb_vbar_a2"; + type: RECT; + mouse_events: 1; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + min: 13 13; + fixed: 1 1; + align: 0.5 1.0; + aspect: 1.0 1.0; + aspect_preference: HORIZONTAL; + color: 0 0 0 0; + rel1.to: "elm.scrollbar.base"; + rel2 { + to: "elm.scrollbar.base"; + relative: 1.0 0.0; + } + } + } + part { name: "sb_vbar_a2_arrow"; + mouse_events: 0; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + rel1.to: "sb_vbar_a2"; + rel2.to: "sb_vbar_a2"; + image.normal: "arrow_down.png"; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + rel1.offset: 0 1; + rel2.offset: -1 0; + } + } + part { name: "elm.dragable.vbar"; + type: RECT; + mouse_events: 1; + clip_to: "sb_vbar_clip"; + dragable { + x: 0 0 0; + y: 1 1 0; + confine: "sb_vbar"; + } + description { state: "default" 0.0; + min: 13 20; + fixed: 1 1; + aspect: 1.0 0.5; + aspect_preference: VERTICAL; + align: 0.5 0.0; + color: 0 0 0 0; + rel1 { + to_y: "sb_vbar"; + to_x: "elm.scrollbar.base"; + relative: 0.0 0.0; + } + rel2.to_y: "sb_vbar"; + } + } + part { name: "elm.dragable.vbar.image"; + mouse_events: 0; + clip_to: "sb_vbar_clip"; + description { state: "default" 0.0; + rel1.to: "elm.dragable.vbar"; + rel2.to: "elm.dragable.vbar"; + image { + normal: "bt_sm_base2.png"; + border: 6 6 6 6; + } + } + } + part { name: "sb_vbar_over1"; + clip_to: "sb_vbar_clip"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.dragable.vbar.image"; + rel2 { + to: "elm.dragable.vbar.image"; + relative: 1.0 0.5; + } + image { + normal: "bt_sm_hilight.png"; + border: 6 6 6 0; + } + } + } + part { name: "sb_vbar_over2"; + clip_to: "sb_vbar_clip"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.dragable.vbar.image"; + rel2.to: "elm.dragable.vbar.image"; + image { + normal: "bt_sm_shine.png"; + border: 6 6 6 0; + } + } + } + part { name: "sb_hbar_clip_master"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + } + description { state: "hidden" 0.0; + visible: 0; + } + } + part { name: "sb_hbar_clip"; + type: RECT; + mouse_events: 0; + clip_to: "sb_hbar_clip_master"; + description { state: "default" 0.0; + rel1.to: "sb_hbar_clip_master"; + rel2.to: "sb_hbar_clip_master"; + } + description { state: "hidden" 0.0; + inherit: "default" 0.0; + visible: 0; + max: 99999 0; + } + } + part { name: "sb_hbar"; + type: RECT; + mouse_events: 0; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + min: 0 13; + fixed: 1 1; + color: 0 0 0 0; + align: 0.5 0.5; + rel1 { + to_x: "sb_hbar_a1"; + to_y: "elm.scrollbar.base"; + relative: 1.0 0.0; + offset: -1 0; + } + rel2 { + to_x: "sb_hbar_a2"; + relative: 0.0 1.0; + offset: -2 -1; + } + } + } + part { name: "sb_hbar_runner"; + mouse_events: 0; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + min: 0 3; + max: 99999 3; + fixed: 1 1; + align: 0.5 0.5; + rel1 { + to: "sb_hbar"; + relative: 0.0 0.5; + offset: 2 0; + } + rel2 { + to: "sb_hbar"; + relative: 1.0 0.5; + offset: -2 0; + } + image { + normal: "sb_runnerh.png"; + border: 4 4 0 0; + } + fill.smooth: 0; + } + } + part { name: "elm.dragable.hbar"; + type: RECT; + mouse_events: 1; + clip_to: "sb_hbar_clip"; + dragable { + x: 1 1 0; + y: 0 0 0; + confine: "sb_hbar"; + } + description { state: "default" 0.0; + min: 20 13; + fixed: 1 1; + aspect_preference: HORIZONTAL; + align: 0.0 1.0; + color: 0 0 0 0; + rel1 { + to_x: "sb_hbar"; + relative: 0.0 1.0; + } + rel2.to_x: "sb_hbar"; + } + } + part { name: "elm.dragable.hbar.image"; + mouse_events: 0; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + rel1.to: "elm.dragable.hbar"; + rel2.to: "elm.dragable.hbar"; + image { + normal: "bt_sm_base2.png"; + border: 6 6 6 6; + } + } + } + part { name: "sb_hbar_over1"; + clip_to: "sb_hbar_clip"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.dragable.hbar.image"; + rel2 { + to: "elm.dragable.hbar.image"; + relative: 1.0 0.5; + } + image { + normal: "bt_sm_hilight.png"; + border: 6 6 6 0; + } + } + } + part { name: "sb_hbar_over2"; + clip_to: "sb_hbar_clip"; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.dragable.hbar.image"; + rel2.to: "elm.dragable.hbar.image"; + image { + normal: "bt_sm_shine.png"; + border: 6 6 6 0; + } + } + } + part { name: "sb_hbar_p1"; + type: RECT; + mouse_events: 1; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + color: 0 0 0 0; + fixed: 1 1; + rel1 { + to: "sb_hbar_a1"; + relative: 1.0 0.0; + } + rel2 { + to: "elm.dragable.hbar"; + relative: 0.0 1.0; + } + } + } + part { name: "sb_hbar_p2"; + type: RECT; + mouse_events: 1; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + color: 0 0 0 0; + fixed: 1 1; + rel1 { + to: "elm.dragable.hbar"; + relative: 1.0 0.0; + } + rel2 { + to: "sb_hbar_a2"; + relative: 0.0 1.0; + } + } + } + part { name: "sb_hbar_a1"; + type: RECT; + mouse_events: 1; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + min: 13 13; + fixed: 1 1; + align: 0.0 1.0; + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + color: 0 0 0 0; + rel1 { + to_x: "sb_hbar_clip"; + to_y: "elm.scrollbar.base"; + relative: 0.0 0.0; + } + rel2 { + to: "elm.scrollbar.base"; + relative: 0.0 1.0; + offset: -1 -1; + } + } + } + part { name: "sb_hbar_a1_arrow"; + mouse_events: 0; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + rel1.to: "sb_hbar_a1"; + rel2.to: "sb_hbar_a1"; + image.normal: "arrow_left.png"; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + rel1.offset: -1 0; + rel2.offset: -2 -1; + } + } + part { name: "sb_hbar_a2"; + type: RECT; + mouse_events: 1; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + min: 13 13; + align: 1.0 1.0; + aspect: 1.0 1.0; + fixed: 1 1; + aspect_preference: VERTICAL; + color: 0 0 0 0; + rel1 { + to: "elm.scrollbar.base"; + relative: 1.0 0.0; + } + rel2 { + to: "elm.scrollbar.base"; + relative: 0.0 1.0; + } + } + } + part { name: "sb_hbar_a2_arrow"; + mouse_events: 0; + clip_to: "sb_hbar_clip"; + description { state: "default" 0.0; + rel1.to: "sb_hbar_a2"; + rel2.to: "sb_hbar_a2"; + image.normal: "arrow_right.png"; + } + description { state: "clicked" 0.0; + inherit: "default" 0.0; + rel1.offset: 1 0; + rel2.offset: 0 -1; + } + } + part { name: "disabler"; + type: RECT; + description { state: "default" 0.0; + rel1.to: "clipper"; + rel2.to: "clipper"; + color: 0 0 0 0; + visible: 0; + } + description { state: "disabled" 0.0; + inherit: "default" 0.0; + visible: 1; + color: 128 128 128 128; + } + } + programs { + program { name: "load"; + signal: "load"; + source: ""; + script { + set_state(PART:"sb_hbar_clip", "hidden", 0.0); + set_state(PART:"sb_vbar_clip", "hidden", 0.0); + set_int(sbvis_h, 0); + set_int(sbvis_v, 0); + } + } + program { name: "vbar_show"; + signal: "elm,action,show,vbar"; + source: "elm"; + script { + set_state(PART:"sb_vbar_clip_master", "default", 0.0); + set_int(sbvis_v, 1); + if (get_int(sbvis_h)) { + set_state(PART:"elm.swallow.content", "both", 0.0); + set_state(PART:"elm.scrollbar.base", "both", 0.0); + } else { + set_state(PART:"elm.scrollbar.base", "vertical", 0.0); + set_state(PART:"elm.swallow.content", "vertical", 0.0); + } + emit("do-show-vbar", ""); + } + } + program { name: "vbar_hide"; + signal: "elm,action,hide,vbar"; + source: "elm"; + script { + set_state(PART:"sb_vbar_clip_master", "hidden", 0.0); + set_int(sbvis_v, 0); + if (get_int(sbvis_h)) { + set_state(PART:"elm.swallow.content", "horizontal", 0.0); + set_state(PART:"elm.scrollbar.base", "horizontal", 0.0); + } else { + set_state(PART:"elm.swallow.content", "default", 0.0); + set_state(PART:"elm.scrollbar.base", "default", 0.0); + } + emit("do-hide-vbar", ""); + } + } + program { name: "sb_vbar_down"; + signal: "mouse,down,1"; + source: "elm.dragable.vbar"; + action: STATE_SET "clicked" 0.0; + target: "elm.dragable.vbar"; + } + program { name: "sb_vbar_up"; + signal: "mouse,up,1"; + source: "elm.dragable.vbar"; + action: STATE_SET "default" 0.0; + target: "elm.dragable.vbar"; + } + program { name: "sb_vbar_show"; + signal: "do-show-vbar"; + source: ""; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.1; + target: "sb_vbar_clip"; + } + program { name: "sb_vbar_hide"; + signal: "do-hide-vbar"; + source: ""; + action: STATE_SET "hidden" 0.0; + transition: LINEAR 1.0; + target: "sb_vbar_clip"; + } + program { name: "sb_vbar_press"; + signal: "mouse,down,1"; + source: "elm.dragable.vbar"; + action: SIGNAL_EMIT "elm,vbar,press" "elm"; + } + program { name: "sb_vbar_unpress"; + signal: "mouse,up,1"; + source: "elm.dragable.vbar"; + action: SIGNAL_EMIT "elm,vbar,unpress" "elm"; + } + program { name: "sb_vbar_a1_down"; + signal: "mouse,down,1"; + source: "sb_vbar_a1"; + action: STATE_SET "clicked" 0.0; + target: "sb_vbar_a1_arrow"; + } + program { name: "sb_vbar_a1_down2"; + signal: "mouse,down,1"; + source: "sb_vbar_a1"; + action: DRAG_VAL_STEP 0.0 -1.0; + target: "elm.dragable.vbar"; + } + program { name: "sb_vbar_a1_up"; + signal: "mouse,up,1"; + source: "sb_vbar_a1"; + action: STATE_SET "default" 0.0; + target: "sb_vbar_a1_arrow"; + } + program { name: "sb_vbar_a2_down"; + signal: "mouse,down,1"; + source: "sb_vbar_a2"; + action: STATE_SET "clicked" 0.0; + target: "sb_vbar_a2_arrow"; + } + program { name: "sb_vbar_a2_down2"; + signal: "mouse,down,1"; + source: "sb_vbar_a2"; + action: DRAG_VAL_STEP 0.0 1.0; + target: "elm.dragable.vbar"; + } + program { name: "sb_vbar_a2_up"; + signal: "mouse,up,1"; + source: "sb_vbar_a2"; + action: STATE_SET "default" 0.0; + target: "sb_vbar_a2_arrow"; + } + program { name: "sb_vbar_p1_down"; + signal: "mouse,down,1"; + source: "sb_vbar_p1"; + action: DRAG_VAL_PAGE 0.0 -1.0; + target: "elm.dragable.vbar"; + } + program { name: "sb_vbar_p2_down"; + signal: "mouse,down,1"; + source: "sb_vbar_p2"; + action: DRAG_VAL_PAGE 0.0 1.0; + target: "elm.dragable.vbar"; + } + program { name: "hbar_show"; + signal: "elm,action,show,hbar"; + source: "elm"; + script { + set_state(PART:"sb_hbar_clip_master", "default", 0.0); + set_int(sbvis_h, 1); + if (get_int(sbvis_v)) { + set_state(PART:"elm.swallow.content", "both", 0.0); + set_state(PART:"elm.scrollbar.base", "both", 0.0); + } else { + set_state(PART:"elm.swallow.content", "horizontal", 0.0); + set_state(PART:"elm.scrollbar.base", "horizontal", 0.0); + } + emit("do-show-hbar", ""); + } + } + program { name: "hbar_hide"; + signal: "elm,action,hide,hbar"; + source: "elm"; + script { + set_state(PART:"sb_hbar_clip_master", "hidden", 0.0); + set_int(sbvis_h, 0); + if (get_int(sbvis_v)) { + set_state(PART:"elm.swallow.content", "vertical", 0.0); + set_state(PART:"elm.scrollbar.base", "vertical", 0.0); + } else { + set_state(PART:"elm.swallow.content", "default", 0.0); + set_state(PART:"elm.scrollbar.base", "default", 0.0); + } + emit("do-hide-hbar", ""); + } + } + program { name: "sb_hbar_down"; + signal: "mouse,down,1"; + source: "elm.dragable.hbar"; + action: STATE_SET "clicked" 0.0; + target: "elm.dragable.hbar"; + } + program { name: "sb_hbar_up"; + signal: "mouse,up,1"; + source: "elm.dragable.hbar"; + action: STATE_SET "default" 0.0; + target: "elm.dragable.hbar"; + } + program { name: "sb_hbar_show"; + signal: "do-show-hbar"; + source: ""; + action: STATE_SET "default" 0.0; + transition: LINEAR 0.1; + target: "sb_hbar_clip"; + } + program { name: "sb_hbar_hide"; + signal: "do-hide-hbar"; + source: ""; + action: STATE_SET "hidden" 0.0; + transition: LINEAR 1.0; + target: "sb_hbar_clip"; + } + program { name: "sb_hbar_press"; + signal: "mouse,down,1"; + source: "elm.dragable.hbar"; + action: SIGNAL_EMIT "elm,hbar,press" "elm"; + } + program { name: "sb_hbar_unpress"; + signal: "mouse,up,1"; + source: "elm.dragable.hbar"; + action: SIGNAL_EMIT "elm,hbar,unpress" "elm"; + } + program { name: "sb_hbar_a1_down"; + signal: "mouse,down,1"; + source: "sb_hbar_a1"; + action: STATE_SET "clicked" 0.0; + target: "sb_hbar_a1_arrow"; + } + program { name: "sb_hbar_a1_down2"; + signal: "mouse,down,1"; + source: "sb_hbar_a1"; + action: DRAG_VAL_STEP -1.0 0.0; + target: "elm.dragable.hbar"; + } + program { name: "sb_hbar_a1_up"; + signal: "mouse,up,1"; + source: "sb_hbar_a1"; + action: STATE_SET "default" 0.0; + target: "sb_hbar_a1_arrow"; + } + program { name: "sb_hbar_a2_down"; + signal: "mouse,down,1"; + source: "sb_hbar_a2"; + action: STATE_SET "clicked" 0.0; + target: "sb_hbar_a2_arrow"; + } + program { name: "sb_hbar_a2_down2"; + signal: "mouse,down,1"; + source: "sb_hbar_a2"; + action: DRAG_VAL_STEP 1.0 0.0; + target: "elm.dragable.hbar"; + } + program { name: "sb_hbar_a2_up"; + signal: "mouse,up,1"; + source: "sb_hbar_a2"; + action: STATE_SET "default" 0.0; + target: "sb_hbar_a2_arrow"; + } + program { name: "sb_hbar_p1_down"; + signal: "mouse,down,1"; + source: "sb_hbar_p1"; + action: DRAG_VAL_PAGE -1.0 0.0; + target: "elm.dragable.hbar"; + } + program { name: "sb_hbar_p2_down"; + signal: "mouse,down,1"; + source: "sb_hbar_p2"; + action: DRAG_VAL_PAGE 1.0 0.0; + target: "elm.dragable.hbar"; + } + program { name: "disable"; + signal: "elm,state,disabled"; + source: "elm"; + action: STATE_SET "disabled" 0.0; + target: "disabler"; + } + program { name: "enable"; + signal: "elm,state,enabled"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "disabler"; + } + } + } +} + +group { name: "elm/panes/vertical/enventor"; + images.image: "holes_vert.png" COMP; + parts { + part { name: "whole"; type: SPACER; + description { state: "default" 0.0; + } + } + part { name: "whole_left"; type: RECT; + description { state: "default" 0.0; + rel2.to_x: "elm.bar"; + rel2.relative: 1.0 1.0; + rel2.offset: -4 -1; + } + } + part { name: "whole_right"; type: RECT; + description { state: "default" 0.0; + rel1.to_x: "elm.bar"; + rel1.relative: 0.0 0.0; + rel1.offset: 3 0; + } + } + part { name: "right_bg"; type: RECT; + description { state: "default" 0.0; + rel1.to: "elm.swallow.right"; + rel2.to: "elm.swallow.right"; + color: 20 20 20 255; + } + } + part { name: "elm.swallow.left"; type: SWALLOW; + clip_to: "whole_left"; + description { state: "default" 0.0; + rel2.to_x: "elm.bar"; + rel2.relative: 0.0 1.0; + rel2.offset: -4 -1; + fixed: 1 0; + } + } + part { name: "elm.swallow.right"; type: SWALLOW; + clip_to: "whole_right"; + description { state: "default" 0.0; + rel1.to_x: "elm.bar"; + rel1.relative: 1.0 0.0; + rel1.offset: 3 0; + fixed: 1 0; + } + } + part { name: "elm.bar"; type: SPACER; + dragable { confine: "whole"; + x: 1 1 1; + y: 0 0 0; + } + description { state: "default" 0.0; + max: 18 99999; + min: 18 14; + fixed: 1 1; + rel1.relative: 0.5 0.5; + rel2.relative: 0.5 0.5; + } + } + part { name: "dots"; mouse_events: 0; + description { state: "default" 0.0; + image.normal: "holes_vert.png"; + rel1.to: "elm.bar"; + rel2.to: "elm.bar"; + min: 4 14; + max: 4 14; + fixed: 1 1; + } + } + part { name: "elm.swallow.event"; type: SWALLOW; + description { state: "default" 0.0; + visible: 0; + min: 10 16; + fixed: 1 1; + rel1.to: "elm.bar"; + rel2.to: "elm.bar"; + } + } + part { name: "bar"; type: RECT; + dragable.events: "elm.bar"; + description { state: "default" 0.0; + min: 18 32; + max: 99999 99999; + fixed: 1 1; + rel1.to_x: "elm.swallow.event"; + rel2.to_x: "elm.swallow.event"; + color: 0 0 0 0; + } + } + part { name: "elm.swallow.left_arrow"; + type: SWALLOW; + description { state: "default" 0.0; + min: 20 20; + fixed: 1 1; + align: 0.5 1; + rel1.to: "elm.bar"; + rel2.to: "elm.bar"; + rel2.relative: 1 0; + rel1.offset: 0 -20; + rel2.offset: -1 -21; + } + } + part { name: "elm.swallow.right_arrow"; + type: SWALLOW; + description { state: "default" 0.0; + min: 20 20; + fixed: 1 1; + align: 0.5 0; + rel1.to: "elm.bar"; + rel2.to: "elm.bar"; + rel1.relative: 0 1; + rel1.offset: 0 20; + rel2.offset: -1 -21; + } + } + } +} diff --git a/data/themes/default/Makefile.am b/data/themes/default/Makefile.am new file mode 100644 index 0000000..4e5bc9d --- /dev/null +++ b/data/themes/default/Makefile.am @@ -0,0 +1,17 @@ +MAINTAINERCLEANFILES = Makefile.in + +EDJE_CC = @edje_cc@ +EDJE_FLAGS = -id $(top_srcdir)/data/themes/default/images + +filesdir = $(datadir)/$(PACKAGE)/themes +files_DATA = enventor.edj + +EXTRA_DIST = enventor.edc + +enventor.edj: Makefile $(EXTRA_DIST) + $(EDJE_CC) $(EDJE_FLAGS) \ + $(top_srcdir)/data/themes/default/enventor.edc \ + $(top_builddir)/data/themes/default/enventor.edj + +clean-local: + rm -f *.edj diff --git a/data/themes/default/content.edc b/data/themes/default/content.edc new file mode 100644 index 0000000..9af2ae9 --- /dev/null +++ b/data/themes/default/content.edc @@ -0,0 +1,110 @@ +images { + image: "part_highlight.png" COMP; + image: "swallow.png" COMP; +} + +group { name: "swallow"; + parts { + part { name: "base"; + type: RECT; + repeat_events: 1; + description { state: "default" 0.0; + color: 255 255 255 10; + } + } + part { name: "img"; + type: IMAGE; + repeat_events: 1; + description { state: "default" 0.0; + image.normal: "swallow.png"; + align: 0.5 0.5; + min: 0 0; + max: 120 120; + color: 255 255 255 127; + aspect: 1 1; + aspect_preference: BOTH; + } + } + part { name: "frame_l"; + type: RECT; + repeat_events: 1; + description { state: "default" 0.0; + align: 0 0.5; + rel1.relative: 0 0; + rel2.relative: 0 1; + color: 255 0 255 127; + min: 1 0; + fixed: 1 0; + } + } + part { name: "frame_r"; + type: RECT; + repeat_events: 1; + description { state: "default" 0.0; + align: 1 0.5; + rel1.relative: 1 0; + rel2.relative: 1 1; + color: 0 255 0 127; + min: 1 0; + fixed: 1 0; + } + } + part { name: "frame_t"; + type: RECT; + repeat_events: 1; + description { state: "default" 0.0; + align: 0.5 0; + rel1.relative: 0 0; + rel2.relative: 1 0; + color: 255 0 255 127; + min: 0 1; + fixed: 0 1; + } + } + part { name: "frame_b"; + type: RECT; + repeat_events: 1; + description { state: "default" 0.0; + align: 0.5 1; + rel1.relative: 0 1; + rel2.relative: 1 1; + color: 0 0 255 127; + min: 0 1; + fixed: 0 1; + } + } + } +} + +group { name: "part_highlight"; + parts { + part { name: "base"; + type: IMAGE; + mouse_events: 0; + description { state: "default" 0.0; + image.normal: "part_highlight.png"; + image.border: 3 3 3 3; + image.border_scale: 1; + } + description { state: "transparent" 0.0; + inherit: "default" 0.0; + color: 255 255 255 0; + } + } + } + programs { + program { name: "load"; + signal: "load"; + action: STATE_SET "transparent" 0.0; + target: "base"; + transition: LINEAR 0.65; + after: "anim"; + } + program { name: "anim"; + action: STATE_SET "default" 0.0; + target: "base"; + transition: LINEAR 0.65; + after: "load"; + } + } +} diff --git a/data/themes/default/enventor.edc b/data/themes/default/enventor.edc new file mode 100644 index 0000000..e2e460b --- /dev/null +++ b/data/themes/default/enventor.edc @@ -0,0 +1,9 @@ +#define FN "Sans" + +collections { + #include "content.edc" + #include "images.edc" + #include "theme_ext.edc" + #include "layout.edc" + #include "menu.edc" +} diff --git a/data/themes/default/images.edc b/data/themes/default/images.edc new file mode 100644 index 0000000..ff0782d --- /dev/null +++ b/data/themes/default/images.edc @@ -0,0 +1,26 @@ +images { + image: "plus.png" COMP; + image: "minus.png" COMP; +} + +group { name: "plus_img"; + parts { + part { name: "img"; + type: IMAGE; + description { state: "default" 0.0; + image.normal: "plus.png"; + } + } + } +} + +group { name: "minus_img"; + parts { + part { name: "img"; + type: IMAGE; + description { state: "default" 0.0; + image.normal: "minus.png"; + } + } + } +} diff --git a/data/themes/default/images/arrow_down.png b/data/themes/default/images/arrow_down.png new file mode 100644 index 0000000..db81aac Binary files /dev/null and b/data/themes/default/images/arrow_down.png differ diff --git a/data/themes/default/images/arrow_left.png b/data/themes/default/images/arrow_left.png new file mode 100644 index 0000000..fbe0795 Binary files /dev/null and b/data/themes/default/images/arrow_left.png differ diff --git a/data/themes/default/images/arrow_right.png b/data/themes/default/images/arrow_right.png new file mode 100644 index 0000000..268d6d1 Binary files /dev/null and b/data/themes/default/images/arrow_right.png differ diff --git a/data/themes/default/images/arrow_up.png b/data/themes/default/images/arrow_up.png new file mode 100644 index 0000000..a90fe93 Binary files /dev/null and b/data/themes/default/images/arrow_up.png differ diff --git a/data/themes/default/images/bt_base1.png b/data/themes/default/images/bt_base1.png new file mode 100644 index 0000000..2d1f179 Binary files /dev/null and b/data/themes/default/images/bt_base1.png differ diff --git a/data/themes/default/images/bt_base2.png b/data/themes/default/images/bt_base2.png new file mode 100644 index 0000000..dd3e3ce Binary files /dev/null and b/data/themes/default/images/bt_base2.png differ diff --git a/data/themes/default/images/bt_dis_base.png b/data/themes/default/images/bt_dis_base.png new file mode 100644 index 0000000..06f3dd5 Binary files /dev/null and b/data/themes/default/images/bt_dis_base.png differ diff --git a/data/themes/default/images/bt_dis_hilight.png b/data/themes/default/images/bt_dis_hilight.png new file mode 100644 index 0000000..e5cf7d3 Binary files /dev/null and b/data/themes/default/images/bt_dis_hilight.png differ diff --git a/data/themes/default/images/bt_glow.png b/data/themes/default/images/bt_glow.png new file mode 100644 index 0000000..e995ff1 Binary files /dev/null and b/data/themes/default/images/bt_glow.png differ diff --git a/data/themes/default/images/bt_hilight.png b/data/themes/default/images/bt_hilight.png new file mode 100644 index 0000000..3b7fe5b Binary files /dev/null and b/data/themes/default/images/bt_hilight.png differ diff --git a/data/themes/default/images/bt_shine.png b/data/themes/default/images/bt_shine.png new file mode 100644 index 0000000..a58bdee Binary files /dev/null and b/data/themes/default/images/bt_shine.png differ diff --git a/data/themes/default/images/bt_sm_base2.png b/data/themes/default/images/bt_sm_base2.png new file mode 100644 index 0000000..f159648 Binary files /dev/null and b/data/themes/default/images/bt_sm_base2.png differ diff --git a/data/themes/default/images/bt_sm_hilight.png b/data/themes/default/images/bt_sm_hilight.png new file mode 100644 index 0000000..63899ca Binary files /dev/null and b/data/themes/default/images/bt_sm_hilight.png differ diff --git a/data/themes/default/images/bt_sm_shine.png b/data/themes/default/images/bt_sm_shine.png new file mode 100644 index 0000000..23bf311 Binary files /dev/null and b/data/themes/default/images/bt_sm_shine.png differ diff --git a/data/themes/default/images/cur_box.png b/data/themes/default/images/cur_box.png new file mode 100644 index 0000000..136b8c8 Binary files /dev/null and b/data/themes/default/images/cur_box.png differ diff --git a/data/themes/default/images/cur_glow.png b/data/themes/default/images/cur_glow.png new file mode 100644 index 0000000..fd922bd Binary files /dev/null and b/data/themes/default/images/cur_glow.png differ diff --git a/data/themes/default/images/cur_hi.png b/data/themes/default/images/cur_hi.png new file mode 100644 index 0000000..cbafef8 Binary files /dev/null and b/data/themes/default/images/cur_hi.png differ diff --git a/data/themes/default/images/cur_shad.png b/data/themes/default/images/cur_shad.png new file mode 100644 index 0000000..3e899de Binary files /dev/null and b/data/themes/default/images/cur_shad.png differ diff --git a/data/themes/default/images/cur_shine.png b/data/themes/default/images/cur_shine.png new file mode 100644 index 0000000..6df5a6d Binary files /dev/null and b/data/themes/default/images/cur_shine.png differ diff --git a/data/themes/default/images/fileselect.png b/data/themes/default/images/fileselect.png new file mode 100644 index 0000000..40d11bd Binary files /dev/null and b/data/themes/default/images/fileselect.png differ diff --git a/data/themes/default/images/folder.png b/data/themes/default/images/folder.png new file mode 100644 index 0000000..38c5ae8 Binary files /dev/null and b/data/themes/default/images/folder.png differ diff --git a/data/themes/default/images/logo.png b/data/themes/default/images/logo.png new file mode 100644 index 0000000..af8fd2f Binary files /dev/null and b/data/themes/default/images/logo.png differ diff --git a/data/themes/images/menu_layout.png b/data/themes/default/images/menu_layout.png similarity index 100% rename from data/themes/images/menu_layout.png rename to data/themes/default/images/menu_layout.png diff --git a/data/themes/default/images/minus.png b/data/themes/default/images/minus.png new file mode 100644 index 0000000..a2d9ce5 Binary files /dev/null and b/data/themes/default/images/minus.png differ diff --git a/data/themes/default/images/part_highlight.png b/data/themes/default/images/part_highlight.png new file mode 100644 index 0000000..d1c5d42 Binary files /dev/null and b/data/themes/default/images/part_highlight.png differ diff --git a/data/themes/default/images/plus.png b/data/themes/default/images/plus.png new file mode 100644 index 0000000..fe02207 Binary files /dev/null and b/data/themes/default/images/plus.png differ diff --git a/data/themes/default/images/preference.png b/data/themes/default/images/preference.png new file mode 100644 index 0000000..2d68444 Binary files /dev/null and b/data/themes/default/images/preference.png differ diff --git a/data/themes/default/images/sb_runnerh.png b/data/themes/default/images/sb_runnerh.png new file mode 100644 index 0000000..a483ce8 Binary files /dev/null and b/data/themes/default/images/sb_runnerh.png differ diff --git a/data/themes/default/images/sb_runnerv.png b/data/themes/default/images/sb_runnerv.png new file mode 100644 index 0000000..cb2da6f Binary files /dev/null and b/data/themes/default/images/sb_runnerv.png differ diff --git a/data/themes/default/images/setting_icon.png b/data/themes/default/images/setting_icon.png new file mode 100644 index 0000000..43602b0 Binary files /dev/null and b/data/themes/default/images/setting_icon.png differ diff --git a/data/themes/default/images/shelf_inset.png b/data/themes/default/images/shelf_inset.png new file mode 100644 index 0000000..bb1989d Binary files /dev/null and b/data/themes/default/images/shelf_inset.png differ diff --git a/data/themes/default/images/sl_bt2_2.png b/data/themes/default/images/sl_bt2_2.png new file mode 100644 index 0000000..061ac29 Binary files /dev/null and b/data/themes/default/images/sl_bt2_2.png differ diff --git a/data/themes/default/images/swallow.png b/data/themes/default/images/swallow.png new file mode 100644 index 0000000..f2ba89d Binary files /dev/null and b/data/themes/default/images/swallow.png differ diff --git a/data/themes/default/images/warning.png b/data/themes/default/images/warning.png new file mode 100644 index 0000000..b5b391e Binary files /dev/null and b/data/themes/default/images/warning.png differ diff --git a/data/themes/default/layout.edc b/data/themes/default/layout.edc new file mode 100644 index 0000000..7122da1 --- /dev/null +++ b/data/themes/default/layout.edc @@ -0,0 +1,370 @@ +styles { + style { name: "entry_statusbar_style"; + base: "font="FN" font_size=11 text_class=entry color=#606060"; + } +} + +group { name: "viewer_layout"; + parts { + part { name: "prev_clipper"; + type: RECT; + description { state: "default" 0.0; + } + description { state: "switched" 0.0; + color: 255 255 255 0; + } + } + part { name: "cur_clipper"; + type: RECT; + description { state: "default" 0.0; + rel1.relative: -1 0; + rel2.relative: 0 1; + color: 255 255 255 0; + } + description { state: "switched" 0.0; + rel1.relative: 0 0; + rel2.relative: 1 1; + color: 255 255 255 255; + } + } + part { name: "elm.swallow.prev"; + type: SWALLOW; + clip_to: "prev_clipper"; + description { state: "default" 0.0; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + clip_to: "cur_clipper"; + description { state: "default" 0.0; + rel1.to: "cur_clipper"; + rel2.to: "cur_clipper"; + } + } + } + programs { + program { name: "switch_instant"; + signal: "elm,view,switch,instant"; + source: ""; + action: STATE_SET "switched" 0.0; + target: "prev_clipper"; + target: "cur_clipper"; + } + program { name: "switch"; + signal: "elm,view,switch"; + source: ""; + action: STATE_SET "default" 0.0; + target: "prev_clipper"; + target: "cur_clipper"; + after: "switched"; + } + program { name: "switched"; + action: STATE_SET "switched" 0.0; + target: "prev_clipper"; + target: "cur_clipper"; + transition: DECELERATE 0.25; + } + } +} + +group { name: "preview_layout"; + parts { + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + min: 100 100; + color: 225 225 225 255; + rel1.offset: 2 2; + rel2.offset: -3 -3; + } + } + part { name: "elm.swallow.img"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + } + } + } +} + +group { name: "slider_layout"; + parts { + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + min: 100 25; + color: 225 225 225 255; + rel1.offset: 2 2; + rel2.offset: -3 -3; + } + } + part { name: "elm.swallow.plus"; + type: SWALLOW; + description { state: "default" 0.0; + min: 20 20; + fixed: 1 1; + align: 0 0.5; + rel1.relative: 0.0 0.5; + rel1.offset: 5 0; + rel2.relative: 0.0 0.5; + } + } + part { name: "elm.swallow.minus"; + type: SWALLOW; + description { state: "default" 0.0; + min: 20 20; + fixed: 1 1; + align: 0 0.5; + rel1.to: "elm.swallow.plus"; + rel2.to: "elm.swallow.plus"; + rel1.relative: 1.0 0.5; + rel2.relative: 1.0 0.5; + rel1.offset: 1 0; + } + } + part { name: "elm.swallow.slider"; + type: SWALLOW; + description { state: "default" 0.0; + rel1.to_x: "elm.swallow.minus"; + rel1.offset: 10 0; + } + } + } +} + +group { name: "statusbar_layout"; + parts { + part { name: "base_clip"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + } + description { state: "hide" 0.0; + color: 0 0 0 0; + } + } + part { name: "elm.text.view_size"; + type: TEXTBLOCK; + scale: 1; + clip_to: "base_clip"; + description { + rel2.relative: 0.0 1.0; + align: 0 0.5; + min: 120 18; + fixed: 1 1; + rel1.offset: 0 -1; + rel2.offset: -1 -2; + text.style: "entry_statusbar_style"; + } + } + part { name: "elm.text.cur_pos"; + type: TEXTBLOCK; + scale: 1; + clip_to: "base_clip"; + description { + rel1.to: "elm.text.view_size"; + rel1.relative: 1 0.0; + rel2.to: "elm.text.view_size"; + rel2.relative: 1 1.0; + min: 180 18; + fixed: 1 1; + align: 0 0.5; + text.style: "entry_statusbar_style"; + } + } + part { name: "elm.text.file_group_name"; + type: TEXTBLOCK; + scale: 1; + clip_to: "base_clip"; + description { + rel1.to: "elm.text.cur_pos"; + rel1.relative: 1 0.0; + rel2.to: "elm.text.line"; + rel2.relative: 0 1.0; + align: 1 0.5; + text.style: "entry_statusbar_style"; + } + } + part { name: "elm.text.line"; + type: TEXTBLOCK; + scale: 1; + clip_to: "base_clip"; + description { + rel1.relative: 1 0; + rel1.offset: 0 -1; + rel2.offset: -1 -2; + align: 1 0.5; + min: 100 18; + fixed: 1 1; + text.style: "entry_statusbar_style"; + } + } + part { name: "elm.text.info_msg"; + type: TEXT; + scale: 1; + description { state: "default" 0.0; + align: 0 0.5; + color: 0 0 0 0; + rel1.offset: 0 -1; + rel2.offset: -1 -2; + text { + font: FN; + size: 11; + align: 0 0.5; + } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + color: 255 0 0 255; + } + } + program { name: "info_msg_show"; + signal: "elm,action,info_msg,show"; + source: ""; + action: STATE_SET "hide" 0.0; + target: "base_clip"; + transition: DECELERATE 0.15; + after: "info_msg_show2"; + } + program { name: "info_msg_show2"; + action: STATE_SET "show" 0.0; + target: "elm.text.info_msg"; + transition: DECELERATE 0.3; + after: "info_msg_idle"; + } + program { name: "info_msg_idle"; + action: STATE_SET "show" 0.0; + target: "elm.text.info_msg"; + transition: LINEAR 2; + after: "info_msg_hide"; + } + program { name: "info_msg_hide"; + signal: "elm,action,info_msg,hide"; + source: ""; + action: STATE_SET "default" 0.0; + target: "elm.text.info_msg"; + transition: DECELERATE 0.3; + after: "info_msg_hide2"; + } + program { name: "info_msg_hide2"; + action: STATE_SET "default" 0.0; + target: "base_clip"; + transition: DECELERATE 0.3; + } + } +} + +group { name: "main_layout"; + parts { + part { name: "base"; + type: SPACER; + scale: 1; + description { + min: 640 440; + } + } + part { name: "elm.swallow.panes"; + type: SWALLOW; + scale: 1; + description { + rel1.relative: 0 0; + rel2.relative: 1 0; + rel2.to_y: "elm.swallow.statusbar"; + } + } + part { name: "statusbar_clip"; + type: RECT; + scale: 1; + description { state: "default" 0.0; + rel1.relative: 0 1; + rel2.relative: 1 1; + align: 0.5 1; + min: 0 15; + fixed: 0 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + align: 0.5 0; + } + } + part { name: "elm.swallow.statusbar"; + type: SWALLOW; + scale: 1; + clip_to: "statusbar_clip"; + description { state: "default" 0.0; + rel1.to: "statusbar_clip"; + rel2.to: "statusbar_clip"; + } + } + } + programs { + program { name: "statusbar_show"; + signal: "elm,state,statusbar,show"; + action: STATE_SET "default" 0.0; + target: "statusbar_clip"; + transition: DECELERATE 0.35; + } + program { name: "statusbar_hide"; + signal: "elm,state,statusbar,hide"; + action: STATE_SET "hide" 0.0; + target: "statusbar_clip"; + transition: DECELERATE 0.35; + } + } +} + +group { name: "edit_layout"; + parts { + part { name: "base_clip"; + type: RECT; + description { state: "default" 0.0; + rel1.to: "elm.swallow.linenumber"; + rel2.to: "elm.swallow.linenumber"; + rel2.relative: 1 1; + } + description { state: "hide" 0.0; + rel1.to: "elm.swallow.linenumber"; + rel2.to: "elm.swallow.linenumber"; + rel2.relative: 0 1; + } + } + part { name: "elm.swallow.linenumber"; + type: SWALLOW; + scale: 1; + clip_to: "base_clip"; + mouse_events: 0; + description { + fixed: 1 0; + align: 0 0.5; + min: 15 0; + rel1.relative: 0 0; + rel1.offset: 3 0; + rel2.relative: 0 1; + } + } + part { name: "elm.swallow.edit"; + type: SWALLOW; + scale: 1; + description { + align: 0.5 0.5; + rel1.relative: 1 0; + rel1.to: "base_clip"; + } + } + } + programs { + program { name: "linenumber_show"; + signal: "elm,state,linenumber,show"; + action: STATE_SET "default" 0.0; + target: "base_clip"; + transition: DECELERATE 0.35; + } + program { name: "linenumber_hide"; + signal: "elm,state,linenumber,hide"; + action: STATE_SET "hide" 0.0; + target: "base_clip"; + transition: DECELERATE 0.35; + } + } +} diff --git a/data/themes/menu.edc b/data/themes/default/menu.edc similarity index 99% rename from data/themes/menu.edc rename to data/themes/default/menu.edc index df6e5de..2949bb0 100644 --- a/data/themes/menu.edc +++ b/data/themes/default/menu.edc @@ -6,7 +6,6 @@ images { image: "setting_icon.png" COMP; image: "fileselect.png" COMP; image: "logo.png" COMP; - image: "logo_reflect.png" COMP; } group { name: "about_layout"; @@ -133,10 +132,9 @@ group { name: "fileselector_layout"; scale: 1; clip_to: "clipper"; description { - min: 600 425; - max: 600 425; + min: 600 400; + max: 600 400; fixed: 1 1; - color: 255 255 255 255; image.normal: "menu_layout.png"; image.border: 20 20 20 20; image.border_scale: 1; @@ -309,10 +307,9 @@ group { name: "warning_layout"; scale: 1; clip_to: "clipper"; description { - min: 300 165; - max: 300 165; + min: 300 145; + max: 300 145; fixed: 1 1; - color: 255 255 255 255; image.normal: "menu_layout.png"; image.border: 20 20 20 20; image.border_scale: 1; @@ -800,10 +797,9 @@ group { name: "setting_layout"; scale: 1; clip_to: "clipper"; description { - min: 600 425; - max: 600 425; + min: 600 400; + max: 600 400; fixed: 1 1; - color: 255 255 255 255; image.normal: "menu_layout.png"; image.border: 20 20 20 20; image.border_scale: 1; @@ -910,7 +906,7 @@ group { name: "setting_layout"; rel1 {to: "data_path_frame"; relative: 0 1;} rel2 {to: "data_path_frame"; relative: 1 1;} align: 0.5 0; - min: 0 205; + min: 0 185; fixed: 0 1; } } diff --git a/data/themes/theme_ext.edc b/data/themes/default/theme_ext.edc similarity index 99% rename from data/themes/theme_ext.edc rename to data/themes/default/theme_ext.edc index 798b1c7..f7f96a7 100644 --- a/data/themes/theme_ext.edc +++ b/data/themes/default/theme_ext.edc @@ -2260,7 +2260,6 @@ group { name: "elm/panes/vertical/enventor"; rel2.relative: 1 0; rel1.offset: 0 -10; rel2.offset: -1 -11; - color: 125 0 0 125; } } part { name: "elm.swallow.right_arrow"; @@ -2275,7 +2274,6 @@ group { name: "elm/panes/vertical/enventor"; rel2.relative: 1 1; rel1.offset: 0 10; rel2.offset: -1 -9; - color: 125 0 0 125; } } //Arrow diff --git a/src/bin/globals.c b/src/bin/globals.c index 9690742..0aa0ef4 100644 --- a/src/bin/globals.c +++ b/src/bin/globals.c @@ -3,3 +3,4 @@ const char *PROTO_EDC_PATH = "/tmp/.proto.edc"; char EDJE_PATH[PATH_MAX]; +Eina_Bool DARK_THEME = EINA_FALSE; diff --git a/src/bin/main.c b/src/bin/main.c index 2c21943..dcc03f4 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -581,8 +581,15 @@ elm_setup() elm_app_info_set(main, "enventor", "images/logo.png"); - snprintf(EDJE_PATH, sizeof(EDJE_PATH), "%s/themes/enventor.edj", - elm_app_data_dir_get()); + if (theme && !strcmp(theme, "dark")) + { + DARK_THEME = EINA_TRUE; + snprintf(EDJE_PATH, sizeof(EDJE_PATH), "%s/themes/enventor_dark.edj", + elm_app_data_dir_get()); + } + else + snprintf(EDJE_PATH, sizeof(EDJE_PATH), "%s/themes/enventor.edj", + elm_app_data_dir_get()); elm_theme_extension_add(NULL, EDJE_PATH); } diff --git a/src/bin/statusbar.c b/src/bin/statusbar.c index ab5ac8e..78d227e 100644 --- a/src/bin/statusbar.c +++ b/src/bin/statusbar.c @@ -12,8 +12,12 @@ void stats_line_num_update(stats_data *sd, int cur_line, int max_line) { char buf[128]; - snprintf(buf, sizeof(buf), - "Line [%d:%d]", cur_line, max_line); + if (DARK_THEME) + snprintf(buf, sizeof(buf), + "Line [%d:%d]", cur_line, max_line); + else + snprintf(buf, sizeof(buf), + "Line [%d:%d]", cur_line, max_line); elm_object_part_text_set(sd->layout, "elm.text.line", buf); } @@ -22,7 +26,11 @@ stats_edc_file_set(stats_data *sd, Eina_Stringshare *group_name) { char buf[PATH_MAX]; const char *filename = ecore_file_file_get(config_edc_path_get(sd->cd)); - snprintf(buf, sizeof(buf), "File [%s] Group [%s]", filename, group_name); + if (DARK_THEME) + snprintf(buf, sizeof(buf), "File [%s] Group [%s]", filename, group_name); + else + snprintf(buf, sizeof(buf), "File [%s] Group [%s]", filename, group_name); + elm_object_part_text_set(sd->layout, "elm.text.file_group_name", buf); sd->group_name = eina_stringshare_add(group_name); @@ -38,8 +46,13 @@ stats_init(Evas_Object *parent, config_data *cd) evas_object_show(layout); //FIXME: temporarily setup - elm_object_part_text_set(layout, "elm.text.cur_pos", - "Cursor [0,0] [0.00,0.00]"); + if (DARK_THEME) + elm_object_part_text_set(layout, "elm.text.cur_pos", + "Cursor [0,0] [0.00,0.00]"); + else + elm_object_part_text_set(layout, "elm.text.cur_pos", + "Cursor [0,0] [0.00,0.00]"); + sd->layout = layout; sd->cd = cd; @@ -84,8 +97,13 @@ stats_view_size_update(stats_data *sd) config_view_size_get(sd->cd, &w, &h); char buf[128]; - snprintf(buf, sizeof(buf), - "Size [%dx%d]", w, h); + if (DARK_THEME) + snprintf(buf, sizeof(buf), + "Size [%dx%d]", w, h); + else + snprintf(buf, sizeof(buf), + "Size [%dx%d]", w, h); + elm_object_part_text_set(sd->layout, "elm.text.view_size", buf); } @@ -93,7 +111,12 @@ void stats_cursor_pos_update(stats_data *sd, Evas_Coord x, Evas_Coord y, float rel_x, float rel_y) { char buf[128]; - snprintf(buf, sizeof(buf), - "Cursor [%d,%d] [%0.2f,%0.2f]", x, y, rel_x, rel_y); + if (DARK_THEME) + snprintf(buf, sizeof(buf), + "Cursor [%d,%d] [%0.2f,%0.2f]", x, y, rel_x, rel_y); + else + snprintf(buf, sizeof(buf), + "Cursor [%d,%d] [%0.2f,%0.2f]", x, y, rel_x, rel_y); + elm_object_part_text_set(sd->layout, "elm.text.cur_pos", buf); } diff --git a/src/bin/syntax_color.c b/src/bin/syntax_color.c index 0d8a58d..2bd667c 100644 --- a/src/bin/syntax_color.c +++ b/src/bin/syntax_color.c @@ -25,12 +25,25 @@ color_init(Eina_Strbuf *strbuf) { color_data *cd = malloc(sizeof(color_data)); cd->strbuf = strbuf; - cd->col1 = eina_stringshare_add("424242"); - cd->col2 = eina_stringshare_add("a000a0"); - cd->col3 = eina_stringshare_add("0000a0"); - cd->col4 = eina_stringshare_add("969600"); - cd->col5 = eina_stringshare_add("009600"); - cd->col6 = eina_stringshare_add("00C0C0"); + + if (DARK_THEME) + { + cd->col1 = eina_stringshare_add("A6A6A6"); + cd->col2 = eina_stringshare_add("00BBBC"); + cd->col3 = eina_stringshare_add("C8C600"); + cd->col4 = eina_stringshare_add("C000C0"); + cd->col5 = eina_stringshare_add("00D000"); + cd->col6 = eina_stringshare_add("0000FF"); + } + else + { + cd->col1 = eina_stringshare_add("424242"); + cd->col2 = eina_stringshare_add("A000A0"); + cd->col3 = eina_stringshare_add("0000A0"); + cd->col4 = eina_stringshare_add("969600"); + cd->col5 = eina_stringshare_add("009600"); + cd->col6 = eina_stringshare_add("00C0C0"); + } return cd; } diff --git a/src/include/globals.h b/src/include/globals.h index d904adc..e3ba5ea 100644 --- a/src/include/globals.h +++ b/src/include/globals.h @@ -1,4 +1,4 @@ extern const char *PROTO_EDC_PATH; extern char EDJE_PATH[PATH_MAX]; - +extern Eina_Bool DARK_THEME;