calamares: yarrr har, steal kaos qml
This commit is contained in:
@@ -1,230 +1,118 @@
|
||||
/* Antergos NeXT Calamares slideshow */
|
||||
import QtQuick 2.0;
|
||||
import calamares.slideshow 1.0;
|
||||
import QtQuick 2.15;
|
||||
|
||||
Presentation
|
||||
{
|
||||
id: presentation
|
||||
Item {
|
||||
id: root
|
||||
|
||||
function onActivate(){
|
||||
console.log("Slideshow) activated");
|
||||
timer.restart();
|
||||
slider.reset();
|
||||
img.reset();
|
||||
}
|
||||
|
||||
function onLeave(){
|
||||
console.log("Slideshow) deactivated");
|
||||
}
|
||||
|
||||
width: 940
|
||||
height: 600
|
||||
|
||||
Timer {
|
||||
interval: 8000
|
||||
running: presentation.activatedInCalamares
|
||||
id: timer
|
||||
interval: 10000
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: presentation.goToNextSlide()
|
||||
onTriggered: slider.currentSlideIndex++,img.currentSlideIndex++
|
||||
}
|
||||
|
||||
Slide {
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
timer.restart();
|
||||
slider.currentSlideIndex++;
|
||||
img.currentSlideIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
Image {
|
||||
id: logo
|
||||
source: "antergos-logo.png"
|
||||
width: 320
|
||||
height: 92
|
||||
fillMode: Image.PreserveAspectFit
|
||||
id: background
|
||||
anchors {
|
||||
centerIn: parent
|
||||
verticalCenterOffset: -40
|
||||
fill: parent
|
||||
margins: -10
|
||||
bottomMargin: 0
|
||||
}
|
||||
|
||||
source: "background.jpg"
|
||||
sourceSize.width: width
|
||||
sourceSize.height: height
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
top: logo.bottom
|
||||
topMargin: 20
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
text: "Welcome to Antergos NeXT"
|
||||
font.pixelSize: 22
|
||||
font.bold: true
|
||||
color: "#4A9EFF"
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
top: parent.verticalCenter
|
||||
topMargin: 40
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
text: "A modern Arch Linux experience"
|
||||
font.pixelSize: 14
|
||||
color: "#7F8C8D"
|
||||
}
|
||||
}
|
||||
|
||||
Slide {
|
||||
anchors.fill: parent
|
||||
Slider {
|
||||
id: slider
|
||||
height: 50
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#F0F4F8"
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
top: parent.top
|
||||
topMargin: 30
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
text: "Built on EndeavourOS"
|
||||
font.pixelSize: 20
|
||||
font.bold: true
|
||||
color: "#2C3E50"
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors {
|
||||
centerIn: parent
|
||||
verticalCenterOffset: 10
|
||||
}
|
||||
spacing: 12
|
||||
|
||||
Text { text: "• EndeavourOS base — stable, rolling" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• dracut initramfs — fast, reliable" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• systemd — modern init system" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• Latest Linux kernel and drivers" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• Arch User Repository (AUR) access" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
slides: [
|
||||
Dia {
|
||||
title: qsTr("Welcome to Antergos NeXT")
|
||||
body: qsTr("A modern Arch Linux experience built on EndeavourOS")
|
||||
footer: qsTr("Choose your preferred desktop environment during setup")
|
||||
},
|
||||
Dia {
|
||||
title: qsTr("Desktop Environments")
|
||||
body: qsTr("Select from KDE Plasma, GNOME, Xfce, Budgie, Cinnamon, MATE, LXQt, or i3/Sway")
|
||||
footer: qsTr("Each desktop is fully configured and ready to use")
|
||||
},
|
||||
Dia {
|
||||
title: qsTr("Antergos Tools")
|
||||
body: qsTr("Welcome app for system configuration, Calamares installer with offline and online modes, and HAL package manager")
|
||||
footer: qsTr("Full access to Arch Linux repositories and the AUR")
|
||||
},
|
||||
Dia {
|
||||
title: qsTr("Open Source")
|
||||
body: qsTr("Antergos NeXT is free and open source software built by the community")
|
||||
footer: qsTr("Contribute on GitHub — Antergos-NeXT")
|
||||
},
|
||||
Dia {
|
||||
title: qsTr("Almost Done")
|
||||
body: qsTr("Your system is being configured with your selected options")
|
||||
footer: qsTr("Reboot and enjoy Antergos NeXT")
|
||||
}
|
||||
]
|
||||
anchors {
|
||||
centerIn: parent
|
||||
horizontalCenterOffset: 50
|
||||
verticalCenterOffset: 10
|
||||
}
|
||||
}
|
||||
Slider {
|
||||
id: img
|
||||
height: 50
|
||||
|
||||
Slide {
|
||||
anchors.fill: parent
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
top: parent.top
|
||||
topMargin: 30
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
slides: [
|
||||
Dia {
|
||||
image: "antergos-logo.png"
|
||||
},
|
||||
Dia {
|
||||
image: "antergos-logo.png"
|
||||
},
|
||||
Dia {
|
||||
image: "antergos-logo.png"
|
||||
},
|
||||
Dia {
|
||||
image: "antergos-logo.png"
|
||||
},
|
||||
Dia {
|
||||
image: "antergos-logo.png"
|
||||
}
|
||||
text: "Desktop Environments"
|
||||
font.pixelSize: 20
|
||||
font.bold: true
|
||||
color: "#2C3E50"
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors {
|
||||
centerIn: parent
|
||||
verticalCenterOffset: 10
|
||||
}
|
||||
spacing: 12
|
||||
|
||||
Text { text: "• KDE Plasma — full-featured, customizable" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• GNOME — modern, streamlined" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• Xfce — lightweight, classic" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• Budgie — elegant, simple" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• i3/ Sway — tiling window managers" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
]
|
||||
anchors {
|
||||
centerIn: parent
|
||||
horizontalCenterOffset: -400
|
||||
verticalCenterOffset: -100
|
||||
}
|
||||
}
|
||||
|
||||
Slide {
|
||||
anchors.fill: parent
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#F0F4F8"
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
top: parent.top
|
||||
topMargin: 30
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
text: "Antergos Tools"
|
||||
font.pixelSize: 20
|
||||
font.bold: true
|
||||
color: "#2C3E50"
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors {
|
||||
centerIn: parent
|
||||
verticalCenterOffset: 10
|
||||
}
|
||||
spacing: 12
|
||||
|
||||
Text { text: "• Welcome app — system info & quick config" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• Calamares installer — easy setup" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• Calamares — easy setup with offline & online modes" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• Pacman + AUR helper — full package access" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
Text { text: "• Online documentation and community" ; font.pixelSize: 13 ; color: "#34495E" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Slide {
|
||||
anchors.fill: parent
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
top: parent.top
|
||||
topMargin: 60
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
text: "Finishing Installation..."
|
||||
font.pixelSize: 22
|
||||
font.bold: true
|
||||
color: "#4A9EFF"
|
||||
}
|
||||
|
||||
Image {
|
||||
source: "antergos-icon.png"
|
||||
width: 96
|
||||
height: 96
|
||||
fillMode: Image.PreserveAspectFit
|
||||
anchors {
|
||||
centerIn: parent
|
||||
verticalCenterOffset: 10
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
bottomMargin: 40
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
text: "Almost there — your system is being configured"
|
||||
font.pixelSize: 13
|
||||
color: "#7F8C8D"
|
||||
}
|
||||
}
|
||||
|
||||
Slide {
|
||||
anchors.fill: parent
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#20252B"
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
centerIn: parent
|
||||
verticalCenterOffset: -30
|
||||
}
|
||||
text: "Thank You!"
|
||||
font.pixelSize: 28
|
||||
font.bold: true
|
||||
color: "#4A9EFF"
|
||||
}
|
||||
|
||||
Text {
|
||||
anchors {
|
||||
top: parent.verticalCenter
|
||||
topMargin: 10
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
}
|
||||
text: "Antergos NeXT is ready.<br/>Reboot and enjoy!"
|
||||
font.pixelSize: 14
|
||||
color: "#C8D6E5"
|
||||
horizontalAlignment: Text.Center
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onActivate() {
|
||||
presentation.currentSlide = 0
|
||||
}
|
||||
|
||||
function onLeave() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user