diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-15 14:01:57 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-02-22 11:05:01 +0000 |
commit | 581a160a5679ec9fc433a0ff40a294ffe8f86da0 (patch) | |
tree | ae1b1cfbd8b009d40a32670010c7ddec88fbca41 /src | |
parent | 004f9dca05215659b5a201c18648580898c2445e (diff) |
Material TabBar: highlight at the top when the bar is at the bottom
Even though the Material Design Guidelines recommend against placing
tabs at the bottom, we cannot prevent our users from doing that. It
is the standard convention on iOS, for instance. Coincidentally, the
official Google Translate app for iOS uses Material design, has tabs
at the bottom, and has tab highlight at the top of the bar. A screen-
shot is attached to QTBUG-50043.
Change-Id: Id7c9398b8b4bc9d270f0d908b1a68d68f49d32f0
Task-number: QTBUG-50043
Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/imports/controls/material/TabBar.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/material/TabBar.qml b/src/imports/controls/material/TabBar.qml index dbc62512..6a09dbb5 100644 --- a/src/imports/controls/material/TabBar.qml +++ b/src/imports/controls/material/TabBar.qml @@ -69,7 +69,7 @@ T.TabBar { Rectangle { height: 2 width: parent.width - y: parent.height - height + y: control.position === T.TabBar.Footer ? 0 : parent.height - height color: control.Material.accentColor } } |