mirror of
https://github.com/KDE/kde-linux.git
synced 2026-04-19 14:08:21 -04:00
calamares: add pretty navigation bar as well
This commit is contained in:
44
mkosi.extra/calamares/desktop/branding/kdeos/FooterBar.qml
Normal file
44
mkosi.extra/calamares/desktop/branding/kdeos/FooterBar.qml
Normal file
@@ -0,0 +1,44 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
// SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls as QQC
|
||||
|
||||
import org.kde.kirigami as Kirigami
|
||||
import io.calamares.ui as Calamares
|
||||
|
||||
RowLayout {
|
||||
spacing: Kirigami.Units.smallSpacing
|
||||
|
||||
QQC.Button {
|
||||
action: Kirigami.Action {
|
||||
enabled: Calamares.ViewManager.quitEnabled
|
||||
visible: Calamares.ViewManager.quitVisible
|
||||
text: Calamares.ViewManager.quitLabel
|
||||
icon.name: Calamares.ViewManager.quitIcon
|
||||
onTriggered: Calamares.ViewManager.quit()
|
||||
}
|
||||
}
|
||||
|
||||
Item { Layout.fillWidth: true }
|
||||
|
||||
QQC.Button {
|
||||
action: Kirigami.Action {
|
||||
enabled: Calamares.ViewManager.backEnabled
|
||||
text: Calamares.ViewManager.backLabel
|
||||
icon.name: Calamares.ViewManager.backIcon
|
||||
onTriggered: Calamares.ViewManager.back()
|
||||
}
|
||||
}
|
||||
|
||||
QQC.Button {
|
||||
action: Kirigami.Action {
|
||||
enabled: Calamares.ViewManager.nextEnabled
|
||||
text: Calamares.ViewManager.nextLabel
|
||||
icon.name: Calamares.ViewManager.nextIcon
|
||||
onTriggered: Calamares.ViewManager.next()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,6 +19,7 @@ images:
|
||||
productWelcome: "konqi-kde-hi.png"
|
||||
|
||||
sidebar: qml,top
|
||||
navigation: qml,bottom
|
||||
|
||||
slideshow: "/calamares/slides/index.qml"
|
||||
slideshowAPI: 2
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
// SPDX-FileCopyrightText: 2024 Harald Sitter <sitter@kde.org>
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls as QQC
|
||||
|
||||
import org.kde.kirigami as Kirigami
|
||||
import io.calamares.ui as Calamares
|
||||
|
||||
Item {
|
||||
height: header.implicitHeight + 9 // the +9 is anyone's guess, calamares' sizing is all sorts of wonky
|
||||
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Header
|
||||
Kirigami.Theme.inherit: false
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: Kirigami.Theme.backgroundColor
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
id: header
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
|
||||
Kirigami.Separator {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
Kirigami.AbstractApplicationHeader {
|
||||
Layout.fillWidth: true
|
||||
separatorVisible: false // We want the separator above so we'll place it via layout
|
||||
|
||||
contentItem: FooterBar {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.margins: Kirigami.Units.smallSpacing
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user