From 430c2c95556ee264c43cb6dcc63380721a4bce2f Mon Sep 17 00:00:00 2001 From: Jimmy Huang Date: Tue, 21 May 2013 10:47:23 -0700 Subject: [PATCH] Fixes TIVI-978, where touch calibration is off The dialer has been configured to run at portrait orientation at 720x1280, but the Toyota homescreen is resizing to 1920x1080, although the app UI is able to resize to fit the screen, it seems there's a bug that the keyboard events are unable to sync with the UI that, which results in user will not be able to touch the bottom part of the dialer. A quick patch changing the default layout of the dialer app to landscape mode seems to eliminate this issue. Signed-off-by: Jimmy Huang --- data/themes/default-hd.edc | 6 +++--- data/themes/default-sd.edc | 2 +- data/themes/includes/keypad.edc | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/data/themes/default-hd.edc b/data/themes/default-hd.edc index 4abad67..995d6c2 100644 --- a/data/themes/default-hd.edc +++ b/data/themes/default-hd.edc @@ -1,8 +1,8 @@ -#define WIDTH 720 -#define HEIGHT 1280 +#define WIDTH 1080 +#define HEIGHT 720 #define ACTION_WIDTH 240 -#define ACTION_HEIGHT 170 +#define ACTION_HEIGHT 80 #define CALL_HEIGHT 200 diff --git a/data/themes/default-sd.edc b/data/themes/default-sd.edc index 89ba0c5..68c7299 100644 --- a/data/themes/default-sd.edc +++ b/data/themes/default-sd.edc @@ -2,7 +2,7 @@ #define HEIGHT 640 #define ACTION_WIDTH 120 -#define ACTION_HEIGHT 85 +#define ACTION_HEIGHT 40 #define CALL_HEIGHT 100 diff --git a/data/themes/includes/keypad.edc b/data/themes/includes/keypad.edc index bd9bf9a..78ad3bf 100644 --- a/data/themes/includes/keypad.edc +++ b/data/themes/includes/keypad.edc @@ -116,7 +116,7 @@ group { description { state: "default" 0.0; color: 0 0 0 0; - min: WIDTH 0; + min: WIDTH ACTION_HEIGHT; max: WIDTH WIDTH; /* keep it tight centered */ rel1 { relative: 0.0 1.0; @@ -232,8 +232,8 @@ group { } \ text { \ text: label; \ - font: FONT_NORMAL; \ - size: SIZE_HUGE; \ + font: FONT_NORMAL; \ + size: SIZE_LARGE; \ align: 0.5 0.5; \ } \ } \ @@ -254,7 +254,7 @@ group { rel1 { \ to: "button."##id; \ relative: 0.0 0.5; \ - offset: 0 2; \ + offset: 0 15; \ } \ rel2.to: "button."##id; \ text { \ -- 2.7.4