diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2017-07-31 16:29:40 +0300 |
---|---|---|
committer | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2017-08-04 15:50:37 +0000 |
commit | d3543cadc85b47b1fa5fb0f5de2fb597a2cbb23f (patch) | |
tree | ec0739ea8b628c5f29fb14a1ef5a60058f9dba11 | |
parent | b4f4cffff8f1f8c8a5947c691b689c118bdf26a8 (diff) |
Fix alignment of key caption if smallText is enabled
Key caption is aligned differently when smallText is enabled.
This is not an issue if smallText is enabled for all keys,
but if enabled for individual keys the rendering will look bad.
Change-Id: I6d75dd1c012d79cdb2883b1f99988c6ba6aabe40
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/virtualkeyboard/content/styles/default/style.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/virtualkeyboard/content/styles/default/style.qml b/src/virtualkeyboard/content/styles/default/style.qml index b4848f68..59e25ad3 100644 --- a/src/virtualkeyboard/content/styles/default/style.qml +++ b/src/virtualkeyboard/content/styles/default/style.qml @@ -92,9 +92,9 @@ KeyboardStyle { verticalAlignment: Text.AlignVCenter anchors.fill: parent anchors.leftMargin: keyContentMargin - anchors.topMargin: control.smallTextVisible ? keyContentMargin * 1.2 : keyContentMargin + anchors.topMargin: keyContentMargin anchors.rightMargin: keyContentMargin - anchors.bottomMargin: control.smallTextVisible ? keyContentMargin * 0.8 : keyContentMargin + anchors.bottomMargin: keyContentMargin font { family: fontFamily weight: Font.Normal |