summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2015-09-24 14:36:17 (GMT)
committerAleix Pol <aleixpol@kde.org>2015-09-24 14:36:17 (GMT)
commit757ec86e410086451dfe4055deda8063a384da1b (patch)
treea70aac2afde8983747a74ee215bfc4d2828e06d8
parent0d9b1f232575a94ca4b52cde9e39e889d82aa128 (diff)
Improve toolbar look
Don't enforce the toolbar size Make sure we center it to whatever space we have
-rw-r--r--discover/qml/MuonToolbar.qml11
1 files changed, 8 insertions, 3 deletions
diff --git a/discover/qml/MuonToolbar.qml b/discover/qml/MuonToolbar.qml
index 802f43e..0047fdf 100644
--- a/discover/qml/MuonToolbar.qml
+++ b/discover/qml/MuonToolbar.qml
@@ -25,9 +25,8 @@ import QtQuick.Layouts 1.1
ToolBar
{
id: root
- Layout.preferredHeight: layout.Layout.preferredHeight.height+2
- Layout.fillWidth: true
property Item search: app.isCompact ? compactSearch : null
+ Layout.preferredHeight: layout.Layout.preferredHeight
ExclusiveGroup {
id: appTabs
@@ -41,15 +40,20 @@ ToolBar
}
ColumnLayout {
+ id: layout
+ anchors.fill: parent
+ spacing: 0
+
RowLayout {
- id: layout
spacing: 1
anchors.fill: parent
+ Layout.alignment: Qt.AlignVCenter
ToolButton {
id: backAction
objectName: "back"
visible: !app.isCompact
+ Layout.alignment: Qt.AlignVCenter
action: Action {
shortcut: "Alt+Up"
iconName: "go-previous"
@@ -75,6 +79,7 @@ ToolBar
Item {
Layout.fillWidth: true
+ Layout.fillHeight: true
}
ConditionalLoader {
condition: app.isCompact