summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlliver Schinagl <o.schinagl@ultimaker.com>2015-02-04 10:52:46 (GMT)
committerOlliver Schinagl <o.schinagl@ultimaker.com>2015-02-04 10:52:51 (GMT)
commitdf16d25702d9b428990a75d1ebf25dff1dbe4a3d (patch)
treee481fb1739583da2c30a8bb56a3ff9e1a4e67350
parent2f832d3043dc08a0893707132772a070c9cd70e1 (diff)
downloadeulogium-df16d25702d9b428990a75d1ebf25dff1dbe4a3d.zip
eulogium-df16d25702d9b428990a75d1ebf25dff1dbe4a3d.tar.gz
eulogium-df16d25702d9b428990a75d1ebf25dff1dbe4a3d.tar.bz2
First real commit!; mainscreen responding to middle-mouse clicks
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
-rw-r--r--data/themes/ulticontroller_2.0/mainscreen.edc371
1 files changed, 359 insertions, 12 deletions
diff --git a/data/themes/ulticontroller_2.0/mainscreen.edc b/data/themes/ulticontroller_2.0/mainscreen.edc
index 8c2dff0..58d09ff 100644
--- a/data/themes/ulticontroller_2.0/mainscreen.edc
+++ b/data/themes/ulticontroller_2.0/mainscreen.edc
@@ -1,14 +1,361 @@
-images.image: "ultimaker_logo.png" COMP;
-
collections {
- group {
- name: "test";
- parts {
- part { name: "main"; type: IMAGE;
- description {
- image.normal: "ultimaker_logo.png";
- }
- }
- }
- }
+ group {
+ name: "mainscreen";
+ min: 128 64;
+ max: 128 64;
+ parts {
+ part {
+ name: "background";
+ type: RECT;
+ mouse_events: 0;
+
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ }
+ }
+ }
+
+ part {
+ name: "print";
+ type: RECT;
+ mouse_events: 1;
+
+ description {
+ state: "default" 0.0;
+ min: 60 40;
+ max: 60 40;
+ align: 0.0 0.0;
+ color: 0 0 0 255;
+
+ rel1 {
+ to_x: "vspacer";
+ offset: -62 3;
+ }
+ }
+ description {
+ state: "active" 0.0;
+ min: 60 40;
+ max: 60 40;
+ align: 0.0 0.0;
+ color: 255 255 255 255;
+
+ rel1 {
+ to_x: "vspacer";
+ offset: -62 3;
+ }
+ }
+ }
+
+ part {
+ name: "print.text";
+ type: TEXT;
+ mouse_events: 0;
+
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to: "print";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ to: "print";
+ }
+ text {
+ text: "Print";
+ font: "oled_font_large";
+ align: 0.5 0.5;
+ }
+ }
+ description {
+ state: "active" 0.0;
+ color: 0 0 0 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to: "print";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ to: "print";
+ }
+ text {
+ text: "Print";
+ font: "oled_font_large";
+ align: 0.5 0.5;
+ }
+ }
+ }
+
+ part {
+ name: "vspacer";
+ type: RECT;
+ mouse_events: 0;
+
+ description {
+ state: "default" 0.0;
+ min: 1 45;
+ max: 1 45;
+ align: 0.0 0.0;
+ color: 255 255 255 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 64 0;
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ }
+ }
+ }
+
+ part {
+ name: "material";
+ type: RECT;
+ mouse_events: 1;
+
+ description {
+ state: "default" 0.0;
+ min: 60 40;
+ max: 60 40;
+ align: 0.0 0.0;
+ color: 0 0 0 255;
+
+ rel1 {
+ to_x: "vspacer";
+ offset: 3 3;
+ }
+ }
+ description {
+ state: "active" 0.0;
+ min: 60 40;
+ max: 60 40;
+ align: 0.0 0.0;
+ color: 255 255 255 255;
+
+ rel1 {
+ to_x: "vspacer";
+ offset: 3 3;
+ }
+ }
+ }
+
+ part {
+ name: "material.text";
+ type: TEXT;
+ mouse_events: 0;
+
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to: "material";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ to: "material";
+ }
+ text {
+ text: "Material";
+ font: "oled_font_large";
+ align: 0.5 0.5;
+ }
+ }
+
+ description {
+ state: "active" 0.0;
+ color: 0 0 0 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to: "material";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ to: "material";
+ }
+ text {
+ text: "Material";
+ font: "oled_font_large";
+ align: 0.5 0.5;
+ }
+ }
+ }
+
+ part {
+ name: "hspacer";
+ type: RECT;
+ mouse_events: 0;
+
+ description {
+ state: "default" 0.0;
+ min: 128 1;
+ max: 128 1;
+ align: 0.0 0.0;
+ color: 255 255 255 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 46;
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ }
+ }
+ }
+
+ part {
+ name: "maintanance";
+ type: RECT;
+ mouse_events: 1;
+
+ description {
+ state: "default" 0.0;
+ min: 126 20;
+ max: 126 20;
+ align: 0.0 0.0;
+ color: 0 0 0 255;
+
+ rel1 {
+ to_y: "hspacer";
+ offset: 2 2;
+ }
+ }
+ description {
+ state: "active" 0.0;
+ min: 126 20;
+ max: 126 20;
+ align: 0.0 0.0;
+ color: 255 255 255 255;
+
+ rel1 {
+ to_y: "hspacer";
+ offset: 2 2;
+ }
+ }
+ }
+
+ part {
+ name: "maintanance.text";
+ type: TEXT;
+ mouse_events: 0;
+
+ description {
+ state: "default" 0.0;
+ color: 255 255 255 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to: "maintanance";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ to: "maintanance";
+ }
+ text {
+ text: "Maintanance";
+ font: "oled_font_large";
+ align: 0.5 0.5;
+ }
+ }
+
+ description {
+ state: "active" 0.0;
+ color: 0 0 0 255;
+
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to: "maintanance";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ offset: 0 0;
+ to: "maintanance";
+ }
+ text {
+ text: "Maintanance";
+ font: "oled_font_large";
+ align: 0.5 0.5;
+ }
+ }
+ }
+ }
+
+ programs {
+ program {
+ name: "button_print_click";
+ signal: "mouse,down,2";
+ source: "print";
+ action: STATE_SET "active" 0.0;
+ target: "print";
+ target: "print.text";
+ }
+ program {
+ name: "button_print_unclick";
+ signal: "mouse,up,2";
+ source: "print";
+ action: STATE_SET "default" 0.0;
+ target: "print";
+ target: "print.text";
+ }
+
+ program {
+ name: "button_material_click";
+ signal: "mouse,down,2";
+ source: "material";
+ action: STATE_SET "active" 0.0;
+ target: "material";
+ target: "material.text";
+ }
+ program {
+ name: "button_material_unclick";
+ signal: "mouse,up,2";
+ source: "material";
+ action: STATE_SET "default" 0.0;
+ target: "material";
+ target: "material.text";
+ }
+
+ program {
+ name: "button_maintanance_click";
+ signal: "mouse,down,2";
+ source: "maintanance";
+ action: STATE_SET "active" 0.0;
+ target: "maintanance";
+ target: "maintanance.text";
+ }
+ program {
+ name: "button_maintanance_unclick";
+ signal: "mouse,up,2";
+ source: "maintanance";
+ action: STATE_SET "default" 0.0;
+ target: "maintanance";
+ target: "maintanance.text";
+ }
+ }
+ }
}