Add default_1080 theme
authorRobert Erickson <rerickso@jaguarlandrover.com>
Tue, 18 Nov 2014 20:59:12 +0000 (18:59 -0200)
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>
Wed, 19 Nov 2014 13:06:20 +0000 (11:06 -0200)
Change-Id: If2452283b24b5ef8c02147630e40357a04420ebc
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
data/themes/Makefile.am
data/themes/default/default_1080.edc [new file with mode: 0644]
src/wkb-main.c

index fd143f50e2b35cccf6b169246b37af5bd375e001..3b2a9ec789218235c40cf424bfebde4e3aea3821 100644 (file)
@@ -8,11 +8,13 @@ EDJE_FLAGS = $(EDJE_FLAGS_VERBOSE_$(V))
 
 filesdir = $(pkgdatadir)
 files_DATA = default_600.edj \
-            default_720.edj
+            default_720.edj \
+            default_1080.edj
 
 DEFAULT_FILES = default/default.edc \
                default/default_600.edc \
                default/default_720.edc \
+               default/default_1080.edc \
                default/ignorekeys.txt \
                default/fonts/DroidSans-Bold.ttf \
                default/fonts/DroidSans.ttf \
@@ -47,5 +49,13 @@ default_720.edj: Makefile default/default_720.edc $(default_FILES)
            $(top_srcdir)/data/themes/default/default_720.edc \
            $(top_builddir)/data/themes/default_720.edj
 
+default_1080.edj: Makefile default/default_1080.edc $(default_FILES)
+       $(EDJE_CC) $(EDJE_FLAGS) \
+           -dd $(top_srcdir)/data/themes/default \
+           -id $(top_srcdir)/data/themes/default/images \
+           -fd $(top_srcdir)/data/themes/default/fonts \
+           $(top_srcdir)/data/themes/default/default_1080.edc \
+           $(top_builddir)/data/themes/default_1080.edj
+
 clean-local:
        rm -f $(top_builddir)/data/themes/*.edj
diff --git a/data/themes/default/default_1080.edc b/data/themes/default/default_1080.edc
new file mode 100644 (file)
index 0000000..d5f23d6
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright © 2014 Jaguar Landrover
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#define SCALE 1.5
+
+#define MIN_WIDTH 1080
+#define MAX_WIDTH 1280
+#define MIN_HEIGHT 900
+#define MAX_HEIGHT 900
+
+#define NUMERIC_KEY_HEIGHT 150
+
+#include "default.edc"
index 5c38e4ff0be440c9d5737ec92363f27949c64ebb..86464db47a07bcdc50caf1556cba2d6037f13de5 100644 (file)
@@ -423,7 +423,9 @@ _wkb_ui_setup(struct weekeyboard *wkb)
         /* Check which theme we should use according to the screen width */
         ecore_wl_screen_size_get(&w, &h);
         DBG("Screen size: w=%d, h=%d", w, h);
-        if (w >= 720)
+        if (w >= 1080)
+           w = 1080;
+        else if (w >= 720)
            w = 720;
         else
            w = 600;