Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: ui/keyboard/resources/constants.js

Issue 150783002: Aligns the Q A Z keys on the a11y keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/keyboard/resources/layouts/system-qwerty.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/constants.js
diff --git a/ui/keyboard/resources/constants.js b/ui/keyboard/resources/constants.js
index 50353d63abfae38bfebe09ae1d7b759f14c20775..0369c9a73ab2f8a43d772da8319663d3f97b5f8b 100644
--- a/ui/keyboard/resources/constants.js
+++ b/ui/keyboard/resources/constants.js
@@ -6,20 +6,22 @@
* Aspect ratio of keyboard.
* @type {number}
*/
-var ASPECT_RATIO = 4.5;
+var ASPECT_RATIO = 3.5;
var RowAlignment = {
STRETCH: "stretch",
LEFT: "left",
RIGHT: "right",
- CENTER: "center"
+ CENTER: "center",
+ // Assigns all extra weight to the right most key. TODO(rsadam): remove.
+ STRETCHRIGHT: "stretchright"
}
/**
* Ratio of key height and font size.
* @type {number}
*/
-var FONT_SIZE_RATIO = 3;
+var FONT_SIZE_RATIO = 2.5;
/**
* @type {enum}
@@ -61,7 +63,7 @@ var DEFAULT_KEY_WEIGHT_X = 100;
* The default weight of a key in the Y direction.
* @type {number}
*/
-var DEFAULT_KEY_WEIGHT_Y = 100;
+var DEFAULT_KEY_WEIGHT_Y = 70;
/**
* The top padding on each key.
« no previous file with comments | « no previous file | ui/keyboard/resources/layouts/system-qwerty.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698