From 449c1b2876ec71d821831978812e13dda198c6e8 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Sat, 29 Apr 2017 10:48:33 +0200 Subject: use iconbutton in accountswitcher --- components/kube/contents/ui/Kube.qml | 5 +---- framework/qml/AccountSwitcher.qml | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 8b1fbc58..e3cf3393 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml @@ -154,10 +154,7 @@ Controls2.ApplicationWindow { width: height } - Kube.AccountSwitcher { - height: Kube.Units.gridUnit * 1.5 - width: height - } + Kube.AccountSwitcher {} } } diff --git a/framework/qml/AccountSwitcher.qml b/framework/qml/AccountSwitcher.qml index a8151712..b44dd3d7 100644 --- a/framework/qml/AccountSwitcher.qml +++ b/framework/qml/AccountSwitcher.qml @@ -27,13 +27,12 @@ import org.kde.kirigami 1.0 as Kirigami import org.kube.framework 1.0 as Kube -Controls.ToolButton { +Kube.IconButton { id: accountSwitcher property variant accountId property variant accountName - width: parent.width iconName: Kube.Icons.menu_inverted Kube.AccountsModel { -- cgit v1.2.3