enventor - support dark theme
|
@ -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
|
||||
])
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 952 B After Width: | Height: | Size: 952 B |
Before Width: | Height: | Size: 981 B After Width: | Height: | Size: 981 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 305 B |
Before Width: | Height: | Size: 482 B After Width: | Height: | Size: 482 B |
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 275 B |
After Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 746 B |
After Width: | Height: | Size: 194 B |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 633 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 201 B |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 160 B |
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 509 B After Width: | Height: | Size: 509 B |
After Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 762 B |
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
#define FN "Sans"
|
||||
|
||||
collections {
|
||||
#include "content.edc"
|
||||
#include "images.edc"
|
||||
#include "theme_ext.edc"
|
||||
#include "layout.edc"
|
||||
#include "menu.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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 952 B |
After Width: | Height: | Size: 981 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 230 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 305 B |
After Width: | Height: | Size: 482 B |
After Width: | Height: | Size: 285 B |
After Width: | Height: | Size: 275 B |
After Width: | Height: | Size: 187 B |
After Width: | Height: | Size: 391 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 252 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 746 B |
After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 201 B |
After Width: | Height: | Size: 302 B |
After Width: | Height: | Size: 207 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 160 B |
After Width: | Height: | Size: 166 B |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 509 B |
After Width: | Height: | Size: 286 B |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 762 B |
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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
|
|
@ -3,3 +3,4 @@
|
|||
|
||||
const char *PROTO_EDC_PATH = "/tmp/.proto.edc";
|
||||
char EDJE_PATH[PATH_MAX];
|
||||
Eina_Bool DARK_THEME = EINA_FALSE;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
"<align=right>Line [<color=#000000>%d</color>:<color=#000000>%d</color>]</align>", cur_line, max_line);
|
||||
if (DARK_THEME)
|
||||
snprintf(buf, sizeof(buf),
|
||||
"<align=right>Line [<color=#008bac>%d</color>:<color=#008bac>%d</color>]</align>", cur_line, max_line);
|
||||
else
|
||||
snprintf(buf, sizeof(buf),
|
||||
"<align=right>Line [<color=#000000>%d</color>:<color=#000000>%d</color>]</align>", 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), "<align=right>File [<color=#000000>%s</color>] Group [<color=#000000>%s</color>]</align>", filename, group_name);
|
||||
if (DARK_THEME)
|
||||
snprintf(buf, sizeof(buf), "<align=right>File [<color=#008bac>%s</color>] Group [<color=#008bac>%s</color>]</align>", filename, group_name);
|
||||
else
|
||||
snprintf(buf, sizeof(buf), "<align=right>File [<color=#000000>%s</color>] Group [<color=#000000>%s</color>]</align>", 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 [<color=#000000>0</color>,<color=#000000>0</color>] [<color=#000000>0.00</color>,<color=#000000>0.00</color>]");
|
||||
if (DARK_THEME)
|
||||
elm_object_part_text_set(layout, "elm.text.cur_pos",
|
||||
"Cursor [<color=#008bac>0</color>,<color=#008bac>0</color>] [<color=#008bac>0.00</color>,<color=#008bac>0.00</color>]");
|
||||
else
|
||||
elm_object_part_text_set(layout, "elm.text.cur_pos",
|
||||
"Cursor [<color=#000000>0</color>,<color=#000000>0</color>] [<color=#000000>0.00</color>,<color=#000000>0.00</color>]");
|
||||
|
||||
|
||||
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 [<color=#000000>%d</color>x<color=#000000>%d</color>]", w, h);
|
||||
if (DARK_THEME)
|
||||
snprintf(buf, sizeof(buf),
|
||||
"Size [<color=#008bac>%d</color>x<color=#008bac>%d</color>]", w, h);
|
||||
else
|
||||
snprintf(buf, sizeof(buf),
|
||||
"Size [<color=#000000>%d</color>x<color=#000000>%d</color>]", 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 [<color=#000000>%d</color>,<color=#000000>%d</color>] [<color=#000000>%0.2f</color>,<color=#000000>%0.2f</color>]", x, y, rel_x, rel_y);
|
||||
if (DARK_THEME)
|
||||
snprintf(buf, sizeof(buf),
|
||||
"Cursor [<color=#008bac>%d</color>,<color=#008bac>%d</color>] [<color=#008bac>%0.2f</color>,<color=#008bac>%0.2f</color>]", x, y, rel_x, rel_y);
|
||||
else
|
||||
snprintf(buf, sizeof(buf),
|
||||
"Cursor [<color=#000000>%d</color>,<color=#000000>%d</color>] [<color=#000000>%0.2f</color>,<color=#000000>%0.2f</color>]", x, y, rel_x, rel_y);
|
||||
|
||||
elm_object_part_text_set(sd->layout, "elm.text.cur_pos", buf);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
extern const char *PROTO_EDC_PATH;
|
||||
extern char EDJE_PATH[PATH_MAX];
|
||||
|
||||
extern Eina_Bool DARK_THEME;
|
||||
|
||||
|
|