Commit e812d623 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Add settings to toolbar

parent b4384ed5
Pipeline #92994 passed with stage
in 32 seconds
......@@ -104,10 +104,6 @@ Item {
Item { Layout.fillWidth: true }
}
}
Settings {
id: settingsDialog
}
Kirigami.OverlaySheet {
id: saveDialog
......
......@@ -18,6 +18,14 @@ Kirigami.ScrollablePage {
property Recording currentRecordingToEdit
implicitWidth: appwindow.isWidescreen ? Kirigami.Units.gridUnit * 8 : appwindow.width
mainAction: Kirigami.Action {
iconName: "settings-configure"
text: i18n("Settings")
onTriggered: {
settingsDialog.open();
}
}
ListView {
id: listView
model: RecordingModel.recordings
......@@ -113,8 +121,8 @@ Kirigami.ScrollablePage {
Kirigami.Theme.inherit: false
source: "audio-input-microphone-symbolic"
anchors.centerIn: parent
implicitWidth: Kirigami.Units.gridUnit * 2
implicitHeight: Kirigami.Units.gridUnit * 2
implicitWidth: Kirigami.Units.iconSizes.smallMedium
implicitHeight: Kirigami.Units.iconSizes.smallMedium
}
}
......
......@@ -24,6 +24,9 @@ Kirigami.ApplicationWindow {
property bool isWidescreen: appwindow.wideScreen && appwindow.width >= appwindow.height // prevent being widescreen at first launch
property Recording currentRecording: null
pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.ToolBar;
pageStack.globalToolBar.showNavigationButtons: Kirigami.ApplicationHeaderStyle.ShowBackButton;
// page switch animation
NumberAnimation {
id: anim
......@@ -44,6 +47,10 @@ Kirigami.ApplicationWindow {
id: playerPageLoader
}
Settings {
id: settingsDialog
}
onIsWidescreenChanged: switchToRecording(currentRecording);
function switchToRecording(recording) {
......
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