diff options
Diffstat (limited to 'framework/qml/InlineAccountSwitcher.qml')
-rw-r--r-- | framework/qml/InlineAccountSwitcher.qml | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/framework/qml/InlineAccountSwitcher.qml b/framework/qml/InlineAccountSwitcher.qml index 67d88637..ae1d0dc7 100644 --- a/framework/qml/InlineAccountSwitcher.qml +++ b/framework/qml/InlineAccountSwitcher.qml | |||
@@ -55,32 +55,22 @@ FocusScope { | |||
55 | height: Kube.Units.gridUnit | 55 | height: Kube.Units.gridUnit |
56 | Layout.fillHeight: isCurrent | 56 | Layout.fillHeight: isCurrent |
57 | 57 | ||
58 | Rectangle { | 58 | Kube.TextButton { |
59 | id: accountLabel | 59 | id: accountLabel |
60 | 60 | anchors.top: parent.top | |
61 | anchors.left: parent.left | ||
61 | height: Kube.Units.gridUnit | 62 | height: Kube.Units.gridUnit |
62 | width: parent.width | 63 | width: parent.width |
63 | 64 | ||
64 | color: Kube.Colors.textColor | 65 | textColor: Kube.Colors.highlightedTextColor |
65 | activeFocusOnTab: !isCurrent | 66 | activeFocusOnTab: !isCurrent |
66 | Keys.onReturnPressed: { | 67 | onClicked: root.currentAccount = model.accountId |
67 | root.currentAccount = model.accountId | 68 | text: model.name |
68 | } | 69 | font.weight: Font.Bold |
70 | font.family: Kube.Font.fontFamily | ||
71 | horizontalAlignment: Text.AlignHLeft | ||
72 | padding: 0 | ||
69 | 73 | ||
70 | MouseArea { | ||
71 | anchors.fill: parent | ||
72 | onClicked: { | ||
73 | root.currentAccount = model.accountId | ||
74 | } | ||
75 | } | ||
76 | |||
77 | Kube.Label{ | ||
78 | anchors.verticalCenter: parent.verticalCenter | ||
79 | text: model.name | ||
80 | font.weight: Font.Bold | ||
81 | color: Kube.Colors.highlightedTextColor | ||
82 | font.underline: accountLabel.activeFocus | ||
83 | } | ||
84 | } | 74 | } |
85 | 75 | ||
86 | Kube.FolderListView { | 76 | Kube.FolderListView { |