Commit 57d6a913 authored by camilo higuita's avatar camilo higuita

toolbars layouts

parents a9657759 e2e879dd
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Controls 2.3
import org.kde.kirigami 2.7 as Kirigami
import org.kde.mauikit 1.0 as Maui
import QtQuick.Layouts 1.3
import "src/widgets"
import "src/views/notes"
......@@ -14,13 +15,13 @@ Maui.ApplicationWindow
title: qsTr("Buho")
/***** PROPS *****/
// altToolBars: false
// altToolBars: false
/**** BRANDING COLORS ****/
// menuButton.colorScheme.highlightColor: accentColor
// searchButton.colorScheme.highlightColor: accentColor
// menuButton.colorScheme.highlightColor: accentColor
// searchButton.colorScheme.highlightColor: accentColor
headBarBGColor: viewBackgroundColor
// headBarBGColor: viewBackgroundColor
headBarFGColor: textColor
accentColor : "#ff9494"
// highlightColor: accentColor
......@@ -40,15 +41,17 @@ Maui.ApplicationWindow
})
property color headBarTint : Qt.lighter(headBarBGColor, 1.25)
headBar.middleContent: Kirigami.ActionToolBar
{
display: isWide ? ToolButton.TextBesideIcon : ToolButton.IconOnly
position: ToolBar.Header
Layout.fillWidth: true
actions: [
Kirigami.Action
{
onTriggered: currentView = views.notes
// icon.color: checked ? accentColor : textColor
// icon.color: checked ? accentColor : textColor
Kirigami.Theme.highlightColor: accentColor
Kirigami.Theme.textColor: accentColor
icon.name: "view-notes"
......@@ -104,7 +107,6 @@ Maui.ApplicationWindow
color: accentColor
radius: radiusV
Maui.PieButton
{
id: addButton
......@@ -135,7 +137,6 @@ Maui.ApplicationWindow
Maui.SyncDialog
{
id: syncDialog
}
mainMenu: [
......@@ -203,10 +204,8 @@ Maui.ApplicationWindow
{
id: booksView
}
}
function newNote()
{
currentView = views.notes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment