aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-06-14 07:54:46 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-06-14 07:54:46 +0200
commitcf25e389a24284932e46bfecae18a88c680041e6 (patch)
treed0903c1832f4947054ef2ed9f48f37985785b5eb /data
parent999a5c4680b9c0799b4ddc4be57139d3a4a0689c (diff)
downloadsynthpod-cf25e389a24284932e46bfecae18a88c680041e6.tar.xz
add theme for path:writable string entry.
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt3
-rw-r--r--data/entry.edc119
-rw-r--r--data/modgrid.edc3
-rw-r--r--data/smart_toggle.edc15
-rw-r--r--data/synthpod.edc1
5 files changed, 139 insertions, 2 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index cb71cabb..5fe8715c 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -26,7 +26,8 @@ if(BUILD_UI)
${CMAKE_CURRENT_SOURCE_DIR}/smart_toggle.edc
${CMAKE_CURRENT_SOURCE_DIR}/synthpod.edc
${CMAKE_CURRENT_SOURCE_DIR}/theme.edc
- ${CMAKE_CURRENT_SOURCE_DIR}/omk_logo.edc)
+ ${CMAKE_CURRENT_SOURCE_DIR}/omk_logo.edc
+ ${CMAKE_CURRENT_SOURCE_DIR}/entry.edc)
add_custom_target(THEME ALL DEPENDS ${PROJECT_BINARY_DIR}/synthpod.edj)
install(FILES ${PROJECT_BINARY_DIR}/synthpod.edj DESTINATION ${SYNTHPOD_DATA_DIR})
endif()
diff --git a/data/entry.edc b/data/entry.edc
new file mode 100644
index 00000000..a6fe9166
--- /dev/null
+++ b/data/entry.edc
@@ -0,0 +1,119 @@
+/*
+ * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the Artistic License 2.0 as published by
+ * The Perl Foundation.
+ *
+ * This source is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Artistic License 2.0 for more details.
+ *
+ * You should have received a copy of the Artistic License 2.0
+ * along the source as a COPYING file. If not, obtain it from
+ * http://www.perlfoundation.org/artistic_license_2_0.
+ */
+
+#define ENTRY_UI "/synthpod/entry/ui"
+
+images {
+ image: "border.png" COMP;
+}
+
+group {
+ name: "/synthpod/entry/theme";
+
+ parts {
+ part {
+ name: "shadow";
+ type: RECT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ fixed: 1 1;
+ rel1.relative: 0.0 0.05;
+ rel2.relative: 1.0 0.95;
+ color: 32 32 32 255;
+ }
+ }
+
+ part {
+ name: "col.clip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.00; fixed: 1 1; color: COL00;
+ rel1.to: "shadow";
+ rel2.to: "shadow";
+ }
+ description { state: "default" 0.01; inherit: "default" 0.00; color: COL01; }
+ description { state: "default" 0.02; inherit: "default" 0.00; color: COL02; }
+ description { state: "default" 0.03; inherit: "default" 0.00; color: COL03; }
+ description { state: "default" 0.04; inherit: "default" 0.00; color: COL04; }
+ description { state: "default" 0.05; inherit: "default" 0.00; color: COL05; }
+ description { state: "default" 0.06; inherit: "default" 0.00; color: COL06; }
+ description { state: "default" 0.07; inherit: "default" 0.00; color: COL07; }
+ description { state: "default" 0.08; inherit: "default" 0.00; color: COL08; }
+ description { state: "default" 0.09; inherit: "default" 0.00; color: COL09; }
+ description { state: "default" 0.10; inherit: "default" 0.00; color: COL10; }
+ description { state: "default" 0.11; inherit: "default" 0.00; color: COL11; }
+ description { state: "default" 0.12; inherit: "default" 0.00; color: COL12; }
+ description { state: "default" 0.13; inherit: "default" 0.00; color: COL13; }
+ description { state: "default" 0.14; inherit: "default" 0.00; color: COL14; }
+ description { state: "default" 0.15; inherit: "default" 0.00; color: COL15; }
+ description { state: "default" 0.16; inherit: "default" 0.00; color: COL16; }
+ description { state: "default" 0.17; inherit: "default" 0.00; color: COL17; }
+ description { state: "default" 0.18; inherit: "default" 0.00; color: COL18; }
+ description { state: "default" 0.19; inherit: "default" 0.00; color: COL19; }
+ description { state: "default" 0.20; inherit: "default" 0.00; color: COL20; }
+ }
+
+ part {
+ name: "elm.swallow.content";
+ type: SWALLOW;
+ mouse_events: 1;
+ description {
+ state: "default" 0.0;
+ }
+ }
+
+ part {
+ name: "border";
+ type: IMAGE;
+ mouse_events: 1;
+ repeat_events: 1;
+ clip_to: "col.clip";
+ description {
+ state: "default" 0.0;
+ image.normal: "border.png";
+ image.border: 2 2 0 0;
+ image.middle: NONE;
+ image.scale_hint: STATIC;
+ }
+ }
+ }
+
+ programs {
+ program { signal: "col,00"; source: ENTRY_UI; action: STATE_SET "default" 0.00; target: "col.clip"; }
+ program { signal: "col,01"; source: ENTRY_UI; action: STATE_SET "default" 0.01; target: "col.clip"; }
+ program { signal: "col,02"; source: ENTRY_UI; action: STATE_SET "default" 0.02; target: "col.clip"; }
+ program { signal: "col,03"; source: ENTRY_UI; action: STATE_SET "default" 0.03; target: "col.clip"; }
+ program { signal: "col,04"; source: ENTRY_UI; action: STATE_SET "default" 0.04; target: "col.clip"; }
+ program { signal: "col,05"; source: ENTRY_UI; action: STATE_SET "default" 0.05; target: "col.clip"; }
+ program { signal: "col,06"; source: ENTRY_UI; action: STATE_SET "default" 0.06; target: "col.clip"; }
+ program { signal: "col,07"; source: ENTRY_UI; action: STATE_SET "default" 0.07; target: "col.clip"; }
+ program { signal: "col,08"; source: ENTRY_UI; action: STATE_SET "default" 0.08; target: "col.clip"; }
+ program { signal: "col,09"; source: ENTRY_UI; action: STATE_SET "default" 0.09; target: "col.clip"; }
+ program { signal: "col,10"; source: ENTRY_UI; action: STATE_SET "default" 0.10; target: "col.clip"; }
+ program { signal: "col,11"; source: ENTRY_UI; action: STATE_SET "default" 0.11; target: "col.clip"; }
+ program { signal: "col,12"; source: ENTRY_UI; action: STATE_SET "default" 0.12; target: "col.clip"; }
+ program { signal: "col,13"; source: ENTRY_UI; action: STATE_SET "default" 0.13; target: "col.clip"; }
+ program { signal: "col,14"; source: ENTRY_UI; action: STATE_SET "default" 0.14; target: "col.clip"; }
+ program { signal: "col,15"; source: ENTRY_UI; action: STATE_SET "default" 0.15; target: "col.clip"; }
+ program { signal: "col,16"; source: ENTRY_UI; action: STATE_SET "default" 0.16; target: "col.clip"; }
+ program { signal: "col,17"; source: ENTRY_UI; action: STATE_SET "default" 0.17; target: "col.clip"; }
+ program { signal: "col,18"; source: ENTRY_UI; action: STATE_SET "default" 0.18; target: "col.clip"; }
+ program { signal: "col,19"; source: ENTRY_UI; action: STATE_SET "default" 0.19; target: "col.clip"; }
+ program { signal: "col,20"; source: ENTRY_UI; action: STATE_SET "default" 0.20; target: "col.clip"; }
+ }
+}
diff --git a/data/modgrid.edc b/data/modgrid.edc
index 2b4c2054..d9510318 100644
--- a/data/modgrid.edc
+++ b/data/modgrid.edc
@@ -61,7 +61,8 @@ group {
fixed: 1 1;
image.normal: "border.png";
image.border: 2 2 2 2;
- image.middle: 0;
+ image.middle: NONE;
+ image.scale_hint: STATIC;
}
}
part {
diff --git a/data/smart_toggle.edc b/data/smart_toggle.edc
index ddd0b8e2..527b5792 100644
--- a/data/smart_toggle.edc
+++ b/data/smart_toggle.edc
@@ -18,6 +18,7 @@
#define SMART_TOGGLE_UI "/synthpod/smart_toggle/ui"
images {
+ image: "border.png" COMP;
}
group {
@@ -85,6 +86,20 @@ group {
color: 255 255 255 255;
}
}
+
+ part {
+ name: "border";
+ type: IMAGE;
+ mouse_events: 0;
+ clip_to: "col.clip";
+ description {
+ state: "default" 0.0;
+ image.normal: "border.png";
+ image.border: 2 2 2 2;
+ image.middle: NONE;
+ image.scale_hint: STATIC;
+ }
+ }
part {
name: "ev";
diff --git a/data/synthpod.edc b/data/synthpod.edc
index 2d51354b..fa62eda7 100644
--- a/data/synthpod.edc
+++ b/data/synthpod.edc
@@ -48,4 +48,5 @@ collections {
#include <smart_meter.edc>
#include <smart_spinner.edc>
#include <smart_toggle.edc>
+#include <entry.edc>
}