themes: split default theme into different files per edje group

This commit is contained in:
Boris Faure 2020-01-19 19:37:15 +01:00
parent 4dc1a2122e
commit 4cbf4c7b28
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
17 changed files with 5520 additions and 5500 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,100 @@
///////////////////////////////////////////////////////////////////////////
//// the about box content image
group { name: "terminology/about";
images {
image: "ab_base.png" COMP;
image: "ab_shell.png" COMP;
}
styles {
style { name: "aboutstyle";
base: "font=Sans font_size=8 color=#3f1 style=glow glow2_color=#3f13 glow_color=#3f11 wrap=word";
tag: "b" "+ color=#8f8 glow2_color=#3f15 glow_color=#3f12";
}
}
parts {
part { name: "base";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
relative: (39/198) (27/198);
to: "shell";
}
rel2 {
relative: (151/198) (115/198);
to: "shell";
}
image.normal: "ab_base.png";
}
}
part { name: "baseclip"; type: RECT;
description { state: "default" 0.0;
color: 255 255 255 255;
rel1.to: "base";
rel2.to: "base";
}
}
part { name: "terminology.text"; type: TEXTBLOCK;
clip_to: "baseclip";
mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
align: 0.5 0.0;
max: 10000 10000;
rel1 {
to: "base";
relative: 0.08 1.0;
}
rel2 {
to: "base";
relative: 0.97 1.0;
}
text {
style: "aboutstyle";
text: "Hello world.<br>This is <b>Terminology</b>, your friendly neighbourhood terminal.<br><br>This needs more text to test vertical scrolling to see if the animation works right.<br>I hope this will be enough now.";
min: 0 1;
}
}
description { state: "up" 0.0;
inherit: "default" 0.0;
align: 0.5 1.0;
rel1.relative: 0.08 0.0;
rel2.relative: 0.97 0.0;
}
}
part { name: "shell";
scale: 1;
description { state: "default" 0.0;
max: 198 198;
aspect: 1.0 1.0;
aspect_preference: BOTH;
image.normal: "ab_shell.png";
}
}
}
programs {
program {
signal: "begin"; source: "terminology";
action: ACTION_STOP;
target: "show";
target: "show2";
after: "begin2";
}
program { name: "begin2";
action: STATE_SET "default" 0.0;
target: "terminology.text";
after: "show";
}
program { name: "show";
action: STATE_SET "up" 0.0;
transition: LINEAR 60.0;
target: "terminology.text";
after: "show2";
}
program { name: "show2";
action: STATE_SET "default" 0.0;
target: "terminology.text";
after: "show";
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,291 @@
group { name: "terminology/base";
images.image: "pm_shadow.png" COMP;
images.image: "bg_bevel.png" COMP;
images.image: "bg_glint.png" COMP;
parts {
part { name: "terminology.content"; type: SWALLOW;
description { state: "default" 0.0;
}
}
////////////////////////////////////////////////////////////////////
// a place terminology will place an entry box for internal commands
part { name: "cmdclip"; type: RECT;
description { state: "default" 0.0;
rel1.to: "terminology.cmdbox";
rel1.offset: -100 -100;
rel2.to: "terminology.cmdbox";
rel2.offset: 99 99;
color: 255 255 255 0;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
visible: 1;
}
}
part { name: "cmdshadow"; mouse_events: 0;
clip_to: "cmdclip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "cmdback";
rel1.offset: -32 -32;
rel2.to: "cmdback";
rel2.offset: 31 31;
image.normal: "pm_shadow.png";
image.border: 64 64 64 64;
fill.smooth: 0;
}
}
part { name: "cmdback"; type: RECT;
clip_to: "cmdclip";
description { state: "default" 0.0;
color: 48 48 48 255;
rel1.to: "terminology.cmdbox";
rel1.offset: -2 -2;
rel2.to: "terminology.cmdbox";
rel2.offset: 1 1;
}
}
part { name: "terminology.cmdbox"; type: SWALLOW;
clip_to: "cmdclip";
description { state: "default" 0.0;
fixed: 1 1;
min: 8 8;
rel1.relative: 0.0 1.0;
rel1.offset: 8 9;
rel2.offset: -9 9;
align: 0.5 0.0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
rel1.offset: 8 -9;
rel2.offset: -9 -9;
align: 0.5 1.0;
}
}
part { name: "cmdbevel"; mouse_events: 0;
clip_to: "cmdclip";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "cmdback";
rel2.to: "cmdback";
image.normal: "bg_bevel.png";
image.border: 3 3 3 3;
image.middle: 0;
fill.smooth: 0;
}
}
part { name: "cmdglint"; mouse_events: 0;
clip_to: "cmdclip";
description { state: "default" 0.0;
fixed: 1 1;
min: 79 5;
max: 79 5;
rel1 {
to: "cmdback";
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
to: "cmdback";
relative: 1.0 0.0;
offset: -1 0;
}
image.normal: "bg_glint.png";
}
}
program {
signal: "cmdbox,show"; source: "terminology";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.4;
target: "cmdclip";
}
program {
signal: "cmdbox,show"; source: "terminology";
action: STATE_SET "visible" 0.0;
transition: SPRING 0.4 0.5 4;
target: "terminology.cmdbox";
}
program {
signal: "cmdbox,hide"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: ACCELERATE 0.5;
target: "terminology.cmdbox";
target: "cmdclip";
}
////////////////////////////////////////////////////////////////////
// overlayed options and controls
part { name: "terminology.about"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
min: 198 198;
max: 198 198;
align: 0.5 0.0;
visible: 0;
rel1.relative: 0.0 1.0;
rel2.relative: 1.0 1.0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
align: 0.5 0.5;
rel1.relative: 0.0 0.0;
rel2.relative: 1.0 1.0;
}
}
program {
signal: "about,show"; source: "terminology";
action: STATE_SET "visible" 0.0;
transition: SPRING 1.2 2.0 6;
target: "terminology.about";
}
program {
signal: "about,hide"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.6;
target: "terminology.about";
}
////////////////////////////////////////////////////////////////////
// swallow to hold invisible rect to click on to dismiss things
part { name: "terminology.dismiss"; type: SWALLOW;
description { state: "default" 0.0;
}
}
////////////////////////////////////////////////////////////////////
// overlayed options and controls
part { name: "terminology.optdetails"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
min: 40 40;
align: 0.0 0.5;
visible: 0;
rel1 {
relative: 1.0 0.02;
offset: 8 8;
}
rel2 {
relative: 1.0 0.98;
offset: 8 -9;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
align: 1.0 0.5;
rel1 {
relative: 0.1 0.02;
offset: 8 8;
}
rel2 {
to_x: "terminology.options";
relative: 0.0 0.98;
offset: -9 -9;
}
}
}
program {
signal: "optdetails,show"; source: "terminology";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.4;
target: "terminology.optdetails";
}
program {
signal: "optdetails,hide"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.2;
target: "terminology.optdetails";
after: "opdt_hide2";
}
program { name: "opdt_hide2";
action: SIGNAL_EMIT "optdetails,hide,done" "terminology";
}
part { name: "terminology.options"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
align: 0.0 0.5;
visible: 0;
rel1 {
relative: 1.0 0.02;
offset: 8 8;
}
rel2 {
relative: 1.0 0.98;
offset: 8 -9;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
align: 1.0 0.5;
rel1 {
offset: -9 8;
}
rel2 {
offset: -9 -9;
}
}
}
program {
signal: "options,show"; source: "terminology";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.4;
target: "terminology.options";
}
program {
signal: "options,hide"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.6;
target: "terminology.options";
}
part { name: "terminology.controls"; type: SWALLOW;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
min: 10 10;
align: 0.0 0.5;
visible: 0;
rel1 {
relative: 1.0 0.5;
offset: 8 8;
}
rel2 {
relative: 1.0 0.5;
offset: 8 -9;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
align: 1.0 0.5;
rel1 {
relative: 1.0 0.5;
offset: -9 8;
}
rel2 {
offset: -9 -9;
}
}
}
program {
signal: "controls,show"; source: "terminology";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.3;
target: "terminology.controls";
}
program {
signal: "controls,hide"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.5;
target: "terminology.controls";
}
}
}

View File

@ -0,0 +1,90 @@
///////////////////////////////////////////////////////////////////////////
//// the background and general container for the terminal
group { name: "terminology/core";
script {
public message(Msg_Type:type, id, ...) {
if (type != MSG_INT)
return;
if (id == 1) { // fade
new r, g, b, a, v;
v = (getarg(2) * 255) / 100;
custom_state(PART:"fade", "default", 0.0);
get_state_val(PART:"fade", STATE_COLOR, r, g, b, a);
set_state_val(PART:"fade", STATE_COLOR, r, g, b, v);
set_state(PART:"fade", "custom", 0.0);
}
}
}
parts {
////////////////////////////////////////////////////////////////////
// background handling
part { name: "fade"; type: RECT;
description { state: "default" 0.0;
}
}
part { name: "terminology.background"; type: SWALLOW;
clip_to: "fade";
description { state: "default" 0.0;
}
description { state: "image" 0.0;
inherit: "default" 0.0;
}
description { state: "scale" 0.0;
inherit: "default" 0.0;
}
description { state: "edje" 0.0;
inherit: "default" 0.0;
}
description { state: "movie" 0.0;
inherit: "default" 0.0;
}
}
program {
signal: "media,off"; source: "terminology";
action: STATE_SET "default" 0.0;
target: "terminology.background";
}
program {
signal: "media,image"; source: "terminology";
action: STATE_SET "image" 0.0;
target: "terminology.background";
}
program {
signal: "media,scale"; source: "terminology";
action: STATE_SET "scale" 0.0;
target: "terminology.background";
}
program {
signal: "media,edje"; source: "terminology";
action: STATE_SET "edje" 0.0;
target: "terminology.background";
}
program {
signal: "media,movie"; source: "terminology";
action: STATE_SET "movie" 0.0;
target: "terminology.background";
}
part { name: "terminology.tabregion"; type: SWALLOW;
description { state: "default" 0.0;
fixed: 1 1;
rel2.relative: 1.0 0.0;
min: 1 1;
align: 0.0 0.0;
}
}
////////////////////////////////////////////////////////////////////
// actual text grid for chars, cursors, selectiond etc. goes here
part { name: "terminology.content"; type: SWALLOW;
description { state: "default" 0.0;
rel1.offset: 1 0;
rel1.relative: 0.0 1.0;
rel1.to_y: "terminology.tabregion";
rel2.offset: -2 -2;
}
}
}
}

View File

@ -0,0 +1,635 @@
///////////////////////////////////////////////////////////////////////////
//// the cursor to show where text is typed
group { name: "terminology/cursor";
images {
image: "cr_key.png" COMP;
image: "cr_out.png" COMP;
image: "cr_pulse.png" COMP;
image: "cr_glow.png" COMP;
}
sounds {
sample { name: "key-tap1" LOSSY 64;
source: "kbd-tap.wav";
}
sample { name: "key-tap2" LOSSY 64;
source: "kbd-tap2.wav";
}
sample { name: "key-tap3" LOSSY 64;
source: "kbd-tap3.wav";
}
sample { name: "key-tap4" LOSSY 64;
source: "kbd-tap4.wav";
}
sample { name: "key-tap5" LOSSY 64;
source: "kbd-tap5.wav";
}
}
parts {
part { name: "key";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "outline";
offset: -5 -5;
}
rel2 {
to: "outline";
offset: 4 4;
}
image {
normal: "cr_key.png";
border: 4 4 4 4;
}
color: 51 153 255 0;
}
description { state: "on" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
description { state: "out" 0.0;
inherit: "default" 0.0;
color: 51 153 255 0;
rel1.offset: -7 -15;
rel2.offset: 6 14;
}
}
part { name: "pulse";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "outline";
offset: -4 -4;
}
rel2 {
to: "outline";
offset: 3 3;
}
image {
normal: "cr_pulse.png";
border: 4 4 4 4;
}
color: 51 153 255 0;
}
description { state: "on" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
description { state: "out" 0.0;
inherit: "default" 0.0;
color: 51 153 255 0;
rel1.offset: -8 -8;
rel2.offset: 7 7;
}
}
part { name: "glow";
mouse_events: 0;
description { state: "default" 0.0;
rel1.offset: -4 -4;
rel2.offset: 3 3;
image {
normal: "cr_glow.png";
border: 9 9 9 9;
}
color: 51 153 255 40;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
}
part { name: "outline";
mouse_events: 0;
description { state: "default" 0.0;
image {
normal: "cr_out.png";
border: 3 3 3 3;
}
color: 51 153 255 80;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
programs {
program {
signal: "focus,in,noblink"; source: "terminology";
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
}
program { name: "focus_in";
signal: "focus,in"; source: "terminology";
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
after: "focus2";
after: "pulse";
}
program { name: "focus2";
in: 0.5 0.0;
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.2;
target: "glow";
target: "outline";
after: "focus3";
}
program { name: "focus3";
in: 0.5 0.0;
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
after: "focus2";
after: "pulse";
}
program { name: "pulse";
action: STATE_SET "on" 0.0;
target: "pulse";
after: "pulse2";
}
program { name: "pulse2";
action: STATE_SET "out" 0.0;
transition: DECELERATE 0.4;
target: "pulse";
}
program {
signal: "focus,out"; source: "terminology";
action: ACTION_STOP;
target: "focus_in";
target: "focus2";
target: "focus3";
target: "pulse";
target: "pulse2";
after: "focus_out2";
}
program { name: "focus_out2";
action: STATE_SET "default" 0.0;
target: "glow";
target: "outline";
}
program {
signal: "key,down"; source: "terminology";
script {
new buf[32];
snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
run_program(get_program_id(buf));
}
}
program { name: "key-down1";
action: PLAY_SAMPLE "key-tap1" 1.0 INPUT;
}
program { name: "key-down2";
action: PLAY_SAMPLE "key-tap2" 1.0 INPUT;
}
program { name: "key-down3";
action: PLAY_SAMPLE "key-tap3" 1.0 INPUT;
}
program { name: "key-down4";
action: PLAY_SAMPLE "key-tap4" 1.0 INPUT;
}
program { name: "key-down5";
action: PLAY_SAMPLE "key-tap5" 1.0 INPUT;
}
program {
signal: "key,down"; source: "terminology";
action: STATE_SET "default" 0.0;
target: "key";
after: "key2";
}
program { name: "key2";
action: STATE_SET "on" 0.0;
target: "key";
after: "key3";
}
program { name: "key3";
action: STATE_SET "out" 0.0;
transition: DECELERATE 0.3;
target: "key";
}
}
}
}
///////////////////////////////////////////////////////////////////////////
//// the cursor as a bar to show where text is typed
group { name: "terminology/cursor_bar";
images {
image: "cr_key.png" COMP;
image: "cr_bar_out.png" COMP;
image: "cr_bar_pulse.png" COMP;
image: "cr_bar_glow.png" COMP;
}
sounds {
sample { name: "key-tap1" LOSSY 64;
source: "kbd-tap.wav";
}
sample { name: "key-tap2" LOSSY 64;
source: "kbd-tap2.wav";
}
sample { name: "key-tap3" LOSSY 64;
source: "kbd-tap3.wav";
}
sample { name: "key-tap4" LOSSY 64;
source: "kbd-tap4.wav";
}
sample { name: "key-tap5" LOSSY 64;
source: "kbd-tap5.wav";
}
}
parts {
part { name: "key";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "outline";
offset: -5 -5;
}
rel2 {
to: "outline";
offset: 4 4;
}
image {
normal: "cr_key.png";
border: 4 4 4 4;
}
color: 51 153 255 0;
}
description { state: "on" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
description { state: "out" 0.0;
inherit: "default" 0.0;
color: 51 153 255 0;
rel1.offset: -7 -15;
rel2.offset: 6 14;
}
}
part { name: "pulse";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "outline";
offset: -4 -4;
}
rel2 {
to: "outline";
offset: 3 3;
}
image {
normal: "cr_bar_pulse.png";
border: 4 4 4 4;
}
color: 51 153 255 0;
}
description { state: "on" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
description { state: "out" 0.0;
inherit: "default" 0.0;
color: 51 153 255 0;
rel1.offset: -8 -8;
rel2.offset: 7 7;
}
}
part { name: "glow";
mouse_events: 0;
description { state: "default" 0.0;
rel1.offset: -4 -4;
rel2.offset: 3 3;
image {
normal: "cr_bar_glow.png";
border: 9 9 9 9;
}
color: 51 153 255 40;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
}
part { name: "outline";
mouse_events: 0;
description { state: "default" 0.0;
image {
normal: "cr_bar_out.png";
border: 3 3 3 3;
}
color: 51 153 255 80;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
programs {
program {
signal: "focus,in,noblink"; source: "terminology";
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
}
program { name: "focus_in";
signal: "focus,in"; source: "terminology";
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
after: "focus2";
after: "pulse";
}
program { name: "focus2";
in: 0.5 0.0;
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.2;
target: "glow";
target: "outline";
after: "focus3";
}
program { name: "focus3";
in: 0.5 0.0;
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
after: "focus2";
after: "pulse";
}
program { name: "pulse";
action: STATE_SET "on" 0.0;
target: "pulse";
after: "pulse2";
}
program { name: "pulse2";
action: STATE_SET "out" 0.0;
transition: DECELERATE 0.4;
target: "pulse";
}
program {
signal: "focus,out"; source: "terminology";
action: ACTION_STOP;
target: "focus_in";
target: "focus2";
target: "focus3";
target: "pulse";
target: "pulse2";
after: "focus_out2";
}
program { name: "focus_out2";
action: STATE_SET "default" 0.0;
target: "glow";
target: "outline";
}
program {
signal: "key,down"; source: "terminology";
script {
new buf[32];
snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
run_program(get_program_id(buf));
}
}
program { name: "key-down1";
action: PLAY_SAMPLE "key-tap1" 1.0 INPUT;
}
program { name: "key-down2";
action: PLAY_SAMPLE "key-tap2" 1.0 INPUT;
}
program { name: "key-down3";
action: PLAY_SAMPLE "key-tap3" 1.0 INPUT;
}
program { name: "key-down4";
action: PLAY_SAMPLE "key-tap4" 1.0 INPUT;
}
program { name: "key-down5";
action: PLAY_SAMPLE "key-tap5" 1.0 INPUT;
}
program {
signal: "key,down"; source: "terminology";
action: STATE_SET "default" 0.0;
target: "key";
after: "key2";
}
program { name: "key2";
action: STATE_SET "on" 0.0;
target: "key";
after: "key3";
}
program { name: "key3";
action: STATE_SET "out" 0.0;
transition: DECELERATE 0.3;
target: "key";
}
}
}
}
///////////////////////////////////////////////////////////////////////////
//// the cursor as an underline to show where text is typed
group { name: "terminology/cursor_underline";
images {
image: "cr_key.png" COMP;
image: "cr_underline_out.png" COMP;
image: "cr_underline_pulse.png" COMP;
image: "cr_underline_glow.png" COMP;
}
sounds {
sample { name: "key-tap1" LOSSY 64;
source: "kbd-tap.wav";
}
sample { name: "key-tap2" LOSSY 64;
source: "kbd-tap2.wav";
}
sample { name: "key-tap3" LOSSY 64;
source: "kbd-tap3.wav";
}
sample { name: "key-tap4" LOSSY 64;
source: "kbd-tap4.wav";
}
sample { name: "key-tap5" LOSSY 64;
source: "kbd-tap5.wav";
}
}
parts {
part { name: "key";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "outline";
offset: -5 -5;
}
rel2 {
to: "outline";
offset: 4 4;
}
image {
normal: "cr_key.png";
border: 4 4 4 4;
}
color: 51 153 255 0;
}
description { state: "on" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
description { state: "out" 0.0;
inherit: "default" 0.0;
color: 51 153 255 0;
rel1.offset: -7 -15;
rel2.offset: 6 14;
}
}
part { name: "pulse";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
to: "outline";
offset: -4 -4;
}
rel2 {
to: "outline";
offset: 3 3;
}
image {
normal: "cr_underline_pulse.png";
border: 4 4 4 4;
}
color: 51 153 255 0;
}
description { state: "on" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
description { state: "out" 0.0;
inherit: "default" 0.0;
color: 51 153 255 0;
rel1.offset: -8 -8;
rel2.offset: 7 7;
}
}
part { name: "glow";
mouse_events: 0;
description { state: "default" 0.0;
rel1.offset: -4 -4;
rel2.offset: 3 3;
image {
normal: "cr_underline_glow.png";
border: 9 9 9 9;
}
color: 51 153 255 40;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
color: 51 153 255 255;
}
}
part { name: "outline";
mouse_events: 0;
description { state: "default" 0.0;
image {
normal: "cr_underline_out.png";
border: 3 3 3 3;
}
color: 51 153 255 80;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
}
}
programs {
program {
signal: "focus,in,noblink"; source: "terminology";
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
}
program { name: "focus_in";
signal: "focus,in"; source: "terminology";
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
after: "focus2";
after: "pulse";
}
program { name: "focus2";
in: 0.5 0.0;
action: STATE_SET "default" 0.0;
transition: DECELERATE 0.2;
target: "glow";
target: "outline";
after: "focus3";
}
program { name: "focus3";
in: 0.5 0.0;
action: STATE_SET "focused" 0.0;
target: "glow";
target: "outline";
after: "focus2";
after: "pulse";
}
program { name: "pulse";
action: STATE_SET "on" 0.0;
target: "pulse";
after: "pulse2";
}
program { name: "pulse2";
action: STATE_SET "out" 0.0;
transition: DECELERATE 0.4;
target: "pulse";
}
program {
signal: "focus,out"; source: "terminology";
action: ACTION_STOP;
target: "focus_in";
target: "focus2";
target: "focus3";
target: "pulse";
target: "pulse2";
after: "focus_out2";
}
program { name: "focus_out2";
action: STATE_SET "default" 0.0;
target: "glow";
target: "outline";
}
program {
signal: "key,down"; source: "terminology";
script {
new buf[32];
snprintf(buf, 31, "key-down%i", (rand() % 5) + 1);
run_program(get_program_id(buf));
}
}
program { name: "key-down1";
action: PLAY_SAMPLE "key-tap1" 1.0 INPUT;
}
program { name: "key-down2";
action: PLAY_SAMPLE "key-tap2" 1.0 INPUT;
}
program { name: "key-down3";
action: PLAY_SAMPLE "key-tap3" 1.0 INPUT;
}
program { name: "key-down4";
action: PLAY_SAMPLE "key-tap4" 1.0 INPUT;
}
program { name: "key-down5";
action: PLAY_SAMPLE "key-tap5" 1.0 INPUT;
}
program {
signal: "key,down"; source: "terminology";
action: STATE_SET "default" 0.0;
target: "key";
after: "key2";
}
program { name: "key2";
action: STATE_SET "on" 0.0;
target: "key";
after: "key3";
}
program { name: "key3";
action: STATE_SET "out" 0.0;
transition: DECELERATE 0.3;
target: "key";
}
}
}
}

View File

@ -0,0 +1,56 @@
///////////////////////////////////////////////////////////////////////////
//// used in the font selection dialog to give a base for black text
//// previews so they are always visible
group { name: "terminology/fontpreview";
images {
image: "fn_shadow.png" COMP;
}
parts {
part { name: "shadow";
mouse_events: 0;
description { state: "default" 0.0;
rel1 {
offset: -2 -1;
to: "base";
}
rel2 {
offset: 1 2;
to: "base";
}
image {
normal: "fn_shadow.png";
border: 5 5 5 5;
}
fill.smooth: 0;
}
}
part { name: "base"; type: RECT;
mouse_events: 1;
description { state: "default" 0.0;
color_class: "BG";
rel1.offset: 2 2;
rel2.offset: -3 -3;
}
}
part { name: "clip"; type: RECT;
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
color: 255 255 255 255;
}
}
part { name: "terminology.text.preview"; type: SWALLOW;
clip_to: "clip";
description { state: "default" 0.0;
rel1 {
to: "base";
offset: 1 1;
}
rel2 {
to: "base";
offset: -2 -2;
}
}
}
}
}

View File

@ -0,0 +1,16 @@
#define ICON(Grp, Img) \
group { name: "elm/icon/"##Grp##"/default"; min: 10 10; max: 80 80; \
images.image: Img COMP; \
parts { part { name: "base"; description { state: "default" 0.0; \
aspect: 1.0 1.0; aspect_preference: BOTH; image.normal: Img; \
} } } }
ICON("new", "icon_new.png");
ICON("split-h", "icon_split_h.png");
ICON("split-v", "icon_split_v.png");
ICON("mini-view", "icon_miniview.png");
ICON("close", "icon_close.png");
ICON("copy", "icon_copy.png");
ICON("paste", "icon_paste.png");
ICON("settings", "icon_settings.png");
ICON("about", "icon_about.png");
#undef ICON

View File

@ -0,0 +1,31 @@
group { name: "terminology/keybinding";
parts {
part { name: "shadow"; type: RECT;
mouse_events: 1;
description { state: "default" 0.0;
color: 0 0 0 196;
}
}
part { name: "label"; type: TEXT;
mouse_events: 0;
effect: SOFT_SHADOW BOTTOM;
scale: 1;
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "shadow";
rel2.to: "shadow";
rel1.relative: 0.5 0.5;
rel1.offset: 0 0;
rel2.relative: 0.5 0.5;
rel2.offset: 0 0;
color: 255 255 255 255;
color3: 0 0 0 18;
align: 0.5 0.5;
text { font: "Sans"; size: 12;
min: 1 1;
ellipsis: 0;
}
}
}
};
};

View File

@ -0,0 +1,116 @@
///////////////////////////////////////////////////////////////////////////
//// an object overlayd on text that is a link
group { name: "terminology/link";
images {
image: "lk_bottom.png" COMP;
image: "lk_left.png" COMP;
image: "lk_right.png" COMP;
}
parts {
part { name: "bottom";
mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
image.normal: "lk_bottom.png";
image.border: 9 9 0 0;
align: 0.5 1.0;
min: 20 8;
rel1.offset: -6 0;
rel1.relative: 0.0 1.0;
rel2.offset: 5 0;
color: 51 153 255 255;
fill.smooth: 0;
}
}
part { name: "l";
mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
image.normal: "lk_left.png";
align: 0.0 1.0;
min: 4 4;
rel1.offset: 16 -1;
rel1.relative: 0.0 1.0;
rel2.offset: 16 -1;
rel2.relative: 0.0 1.0;
color: 51 153 255 0;
}
description { state: "out" 0.0;
fixed: 1 1;
inherit: "default" 0.0;
min: 16 16;
rel1.offset: -10 -1;
rel2.offset: -10 -1;
color: 51 153 255 255;
}
description { state: "out2" 0.0;
fixed: 1 1;
inherit: "default" 0.0;
min: 32 32;
rel1.offset: -26 -1;
rel2.offset: -26 -1;
color: 51 153 255 0;
}
}
part { name: "r";
mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
image.normal: "lk_right.png";
align: 1.0 1.0;
min: 4 4;
rel1.offset: -15 0;
rel1.relative: 1.0 1.0;
rel2.offset: -15 0;
rel2.relative: 1.0 1.0;
color: 51 153 255 0;
}
description { state: "out" 0.0;
fixed: 1 1;
inherit: "default" 0.0;
min: 16 16;
rel1.offset: 9 -1;
rel2.offset: 9 -1;
color: 51 153 255 255;
}
description { state: "out2" 0.0;
fixed: 1 1;
inherit: "default" 0.0;
min: 32 32;
rel1.offset: 25 -1;
rel2.offset: 25 -1;
color: 51 153 255 0;
}
}
part { name: "event"; type: RECT;
mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
}
}
programs {
program { name: "show";
signal: "show"; source: "";
action: STATE_SET "out" 0.0;
transition: LINEAR 0.3;
target: "l";
target: "r";
after: "show2";
}
program { name: "show2";
action: STATE_SET "out2" 0.0;
transition: LINEAR 0.3;
target: "l";
target: "r";
after: "show3";
}
program { name: "show3";
action: STATE_SET "default" 0.0;
target: "l";
target: "r";
after: "show";
}
}
}
}

View File

@ -0,0 +1,375 @@
//////////////////////////////////////////////////////////////////////////////
//// the multimedia controls
group { name: "terminology/mediabusy";
images {
image: "media_busy_knob.png" COMP;
image: "media_busy_spinner.png" COMP;
image: "media_busy_progress.png" COMP;
}
script {
public message(Msg_Type:type, id, ...) {
if ((type == MSG_FLOAT) && (id == 1)) {
new Float:val;
val = getfarg(2);
// val 0.0 -. 1.0 percentage
custom_state(PART:"progress", "default", 0.0);
set_state_val(PART:"progress", STATE_REL2, val, 1.0);
set_state(PART:"progress", "custom", 0.0);
}
}
}
parts {
part { name: "progress_area"; type: SPACER;
mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
rel2.to_x: "knob";
rel2.relative: 0.0 1.0;
min: 10 40;
max: 99999 40;
align: 0.0 1.0;
}
}
part { name: "progress";
mouse_events: 0;
clip_to: "fade";
description { state: "default" 0.0;
fixed: 1 1;
rel1.to: "progress_area";
rel2.to: "progress_area";
rel2.relative: 0.0 1.0;
color: 51 153 255 255;
image.normal: "media_busy_progress.png";
image.border: 5 5 0 0;
min: 10 40;
align: 0.0 1.0;
}
}
part { name: "fade"; type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
color: 255 255 255 0;
visible: 0;
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 255;
}
}
part { name: "knob";
clip_to: "fade";
mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
image.normal: "media_busy_knob.png";
min: 40 40;
max: 40 40;
align: 1.0 1.0;
}
}
part { name: "knob_spinner";
clip_to: "fade";
mouse_events: 0;
description { state: "default" 0.0;
fixed: 1 1;
color: 51 153 255 255;
rel1.to: "knob";
rel2.to: "knob";
image.normal: "media_busy_spinner.png";
map {
on: 1;
smooth: 1;
rotation.center: "knob";
}
}
description { state: "spin" 0.0;
inherit: "default" 0.0;
visible: 1;
map.rotation.z: 360;
}
}
}
programs {
program {
signal: "busy"; source: "terminology";
action: STATE_SET "visible" 0.0;
transition: DECELERATE 0.5;
target: "fade";
}
program { name: "spin1";
signal: "busy"; source: "terminology";
action: STATE_SET "spin" 0.0;
transition: LINEAR 0.5;
target: "knob_spinner";
after: "spin2";
}
program { name: "spin2";
action: STATE_SET "default" 0.0;
target: "knob_spinner";
after: "spin1";
}
// program { name: "downloading";
// signal: "busy";
// source: "terminology";
// action: STATE_SET "default" 0.0;
// }
program {
signal: "done"; source: "terminology";
action: STATE_SET "default" 0.0;
transition: DECELERATE 1.5;
target: "fade";
}
}
}
///////////////////////////////////////////////////////////////////////////
//// the multimedia controls
group { name: "terminology/mediactrl";
images {
image: "media_bg.png" COMP;
image: "media_play.png" COMP;
image: "media_stop.png" COMP;
image: "media_pause.png" COMP;
image: "media_line.png" COMP;
image: "media_knob_vol.png" COMP;
image: "media_knob_pos.png" COMP;
}
parts {
part { name: "media_clip"; type: RECT;
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "media_bg";
rel2.to: "media_bg";
}
}
part { name: "media_bg";
clip_to: "media_clip";
description { state: "default" 0.0;
image.normal: "media_bg.png";
image.border: 11 11 11 11;
min: 24 24;
max: 24 24;
align: 1.0 0.0;
}
description { state: "expanded" 0.0;
inherit: "default" 0.0;
min: 216 24;
max: 216 24;
}
}
part { name: "play";
mouse_events: 1;
repeat_events: 1;
clip_to: "media_clip";
description { state: "default" 0.0;
image.normal: "media_pause.png";
max: 24 24;
align: 1.0 0.0;
}
description { state: "paused" 0.0;
inherit: "default" 0.0;
image.normal: "media_play.png";
}
}
part { name: "stop";
mouse_events: 1;
repeat_events: 1;
clip_to: "media_clip";
description { state: "default" 0.0;
image.normal: "media_stop.png";
max: 24 24;
rel1.to: "play";
rel2.to: "play";
rel1.offset: -16 0;
rel2.offset: -16 0;
}
}
part { name: "posline";
mouse_events: 1;
repeat_events: 1;
clip_to: "media_clip";
description { state: "default" 0.0;
image.normal: "media_line.png";
image.border: 15 15 0 0;
min: 90 14;
max: 90 14;
rel1.to: "stop";
rel2.to: "stop";
rel1.offset: -25 0;
rel2.offset: -90 0;
}
}
part { name: "terminology.posdrag";
mouse_events: 0;
repeat_events: 1;
clip_to: "media_clip";
dragable {
confine: "posline";
x: 1 1 0;
y: 0 0 0;
}
description { state: "default" 0.0;
image.normal: "media_knob_pos.png";
min: 14 14;
max: 14 14;
}
description { state: "muted" 0.0;
visible: 0;
}
}
part { name: "volline";
mouse_events: 1;
repeat_events: 1;
clip_to: "media_clip";
description { state: "default" 0.0;
image.normal: "media_line.png";
image.border: 15 15 0 0;
min: 60 14;
max: 60 14;
rel1 {
to: "posline";
offset: -25 0;
}
rel2 {
to: "posline";
relative: 0.0 1.0;
offset: -60 0;
}
}
}
part { name: "terminology.voldrag"; type: IMAGE;
mouse_events: 0;
repeat_events: 1;
clip_to: "media_clip";
dragable {
confine: "volline";
x: 1 1 0;
y: 0 0 0;
}
description { state: "default" 0.0;
image.normal: "media_knob_vol.png";
min: 14 14;
max: 14 14;
}
description { state: "muted" 0.0;
visible: 0;
}
}
}
programs {
program {
signal: "mouse,in"; source: "media_bg";
action: STATE_SET "expanded" 0.0;
transition: SINUSOIDAL 0.4 CURRENT;
target: "media_bg";
}
program {
signal: "mouse,out"; source: "media_bg";
action: STATE_SET "default" 0.0;
transition: SINUSOIDAL 0.4 CURRENT;
target: "media_bg";
}
program {
signal: "mouse,up,*"; source: "play";
filter: "play" "default";
action: SIGNAL_EMIT "pause" "";
}
program {
signal: "mouse,up,1"; source: "play";
filter: "play" "paused";
action: SIGNAL_EMIT "play" "";
}
program {
signal: "mouse,up,1"; source: "stop";
action: SIGNAL_EMIT "stop" "";
}
program {
signal: "pause,set"; source: "terminology";
action: STATE_SET "paused" 0.0;
target: "play";
}
program {
signal: "play,set"; source: "terminology";
action: STATE_SET "default" 0.0;
target: "play";
}
program {
signal: "mute,set"; source: "terminology";
action: STATE_SET "muted" 0.0;
target: "terminology.voldrag";
}
program {
signal: "mute,unset"; source: "terminology";
action: STATE_SET "default" 0.0;
target: "terminology.voldrag";
}
program {
signal: "mouse,down,1"; source: "posline";
filter: "terminology.posdrag" "default";
script {
new x, y, w, h, m_x, m_y;
new Float:pos;
get_geometry(PART:"posline", x, y, w, h);
get_mouse(m_x, m_y);
pos = m_x - x;
pos = pos / w;
set_drag(PART:"terminology.posdrag", pos, 0.0);
emit("pos,drag,start", "");
}
}
program {
signal: "mouse,up,1"; source: "posline";
action: SIGNAL_EMIT "pos,drag,stop" "";
}
program {
signal: "mouse,move"; source: "posline";
script {
new x, y, w, h, m_x, m_y;
new Float:pos;
if (!get_mouse_buttons()) return;
get_geometry(PART:"posline", x, y, w, h);
get_mouse(m_x, m_y);
pos = m_x - x;
pos = pos / w;
set_drag(PART:"terminology.posdrag", pos, 0.0);
emit("pos,drag", "");
}
}
program {
signal: "mouse,down,1"; source: "volline";
filter: "terminology.voldrag" "default";
script {
new x, y, w, h, m_x, m_y;
new Float:pos;
get_geometry(PART:"volline", x, y, w, h);
get_mouse(m_x, m_y);
pos = m_x - x;
pos = pos / w;
set_drag(PART:"terminology.voldrag", pos, 0.0);
emit("vol,drag", "");
}
}
program {
signal: "mouse,move"; source: "volline";
script {
new x, y, w, h, m_x, m_y;
new Float:pos;
if (!get_mouse_buttons()) return;
get_geometry(PART:"volline", x, y, w, h);
get_mouse(m_x, m_y);
pos = m_x - x;
pos = pos / w;
set_drag(PART:"terminology.voldrag", pos, 0.0);
emit("vol,drag", "");
}
}
}
}

View File

@ -0,0 +1,99 @@
group { name: "terminology/miniview";
images {
image: "icon_close.png" COMP;
image: "fn_shadow.png" COMP;
}
set { name: "bg_shadow";
image { image: "bg_shadow.png" COMP; size: 0 0 200 150; }
image { image: "bg_shadow2.png" COMP; size: 200 150 400 300; }
image { image: "bg_shadow3.png" COMP; size: 400 300 99999 99999; }
}
parts {
part { name: "miniview.bg"; type: RECT;
//mouse_events: 1;
description { state: "default" 0.0;
color_class: "BG";
}
}
part { name: "shadow";
mouse_events: 0;
description { state: "default" 0.0;
image.normal: "bg_shadow";
fill.smooth: 0;
}
}
part { name: "miniview.img"; type: SWALLOW;
description { state: "default" 0.0;
visible: 1;
rel1 {
to: "miniview.bg";
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
to: "miniview.bg";
relative: 1.0 1.0;
offset: -1 -1;
}
}
}
part { name: "miniview_screen"; type: RECT;
mouse_events: 1;
dragable {
confine: "miniview.img";
x: 0 0 0;
y: 1 1 0;
}
description { state: "default" 0.0;
color: 255 255 255 40;
fixed:1 1;
}
description { state: "outbounds" 0.0;
color: 255 25 35 40;
fixed:1 1;
}
}
part { name: "miniview.close_shadow"; type: IMAGE;
description { state: "default" 0.0;
image {
normal: "fn_shadow.png";
};
rel1 {
to: "miniview.bg";
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
to: "miniview.bg";
relative: 0.0 0.0;
offset: 16 16;
}
}
}
part { name: "miniview.close"; type: IMAGE;
description { state: "default" 0.0;
image {
normal: "icon_close.png";
};
rel1.to: "miniview.close_shadow";
rel2.to: "miniview.close_shadow";
}
}
};
programs {
program {
signal: "mouse,clicked,1"; source: "miniview.close";
action: SIGNAL_EMIT "miniview,close" "terminology";
}
program {
signal: "miniview_screen,inbounds"; source: "miniview";
action: STATE_SET "default" 0.0;
target: "miniview_screen";
}
program {
signal: "miniview_screen,outbounds"; source: "miniview";
action: STATE_SET "outbounds" 0.0;
target: "miniview_screen";
}
};
};

461
data/themes/default/sel.edc Normal file
View File

@ -0,0 +1,461 @@
///////////////////////////////////////////////////////////////////////////
//// an object to contain the selection tool used for selecting tabs (with
//// a glow grid of terms
group { name: "terminology/sel/base";
images {