summaryrefslogtreecommitdiff
path: root/raveos-calamares-theme/etc/calamares/branding/raveos
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-calamares-theme/etc/calamares/branding/raveos')
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/finishedq.qml229
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/images/raveos-finish.pngbin0 -> 5386138 bytes
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_de.ts55
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_en.ts55
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_hu.ts55
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/stylesheet.qss21
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/supporters.js8
7 files changed, 423 insertions, 0 deletions
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/finishedq.qml b/raveos-calamares-theme/etc/calamares/branding/raveos/finishedq.qml
new file mode 100644
index 0000000..b72a368
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/finishedq.qml
@@ -0,0 +1,229 @@
+/* RaveOS - Calamares finished (Done) oldal
+ *
+ * "Restart now" gomb: config.doRestart(true) -> azonnal ujrainditja a gepet.
+ * A tamogatok kulon keretben, alul, soronkent 3 nev, kozepre igazitva.
+ * Sok nev eseten automatikusan lapoz (4s). A lista: supporters.js (import).
+ * Ha nincs nev, a teljes tamogatoi panel el van rejtve.
+ *
+ * Nyelvek: hu / de / en. A desktop selector mintaja szerint: a lap
+ * aktivalasakor (onActivate) frissitjuk a nyelvet, es minden szoveg
+ * property bindinggel koveti (uiLang).
+ */
+
+import io.calamares.core 1.0
+import io.calamares.ui 1.0
+
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import QtQuick.Layouts 1.15
+
+import "supporters.js" as Supporters
+
+Item {
+ id: finishedRoot
+ anchors.fill: parent
+
+ readonly property int supportersPerPage: 30
+ readonly property int supportersColumns: 3
+ readonly property bool hasSupporters: Supporters.names.length > 0
+ readonly property int supportersPageCount: Math.max(1, Math.ceil(Supporters.names.length / supportersPerPage))
+
+ // Szovegek a branding .qm fordításokbol; a lap aktivalasakor frissulnek
+ // (a QQuickWidget nem forditja ujra a qsTr bindingeket nyelvvaltaskor)
+ property string titleText: ""
+ property string descText: ""
+ property string restartText: ""
+ property string supportersHeadText: ""
+ property string thanksText: ""
+
+ function updateTexts() {
+ titleText = qsTr("Installation complete");
+ descText = qsTr("Restart the system to start using %1.").arg(Branding.string(Branding.ProductName));
+ restartText = qsTr("Restart now");
+ supportersHeadText = qsTr("RaveOS Supporters");
+ thanksText = qsTr("Thank you for your support, from every member of the team!");
+ }
+
+ Component.onCompleted: updateTexts()
+
+ property int supportersPage: 0
+
+ // Az aktualis oldal szovege: soronkent 3 nev, kozepre igazitva
+ property string supportersText: {
+ var start = supportersPage * supportersPerPage;
+ var slice = Supporters.names.slice(start, start + supportersPerPage);
+ var lines = [];
+ for (var j = 0; j < slice.length; j += supportersColumns) {
+ lines.push(slice.slice(j, j + supportersColumns).join(" "));
+ }
+ return lines.join("\n");
+ }
+
+ // RaveOS finish hatter
+ Image {
+ anchors.fill: parent
+ source: "images/raveos-finish.png"
+ fillMode: Image.Stretch
+ smooth: true
+ mipmap: true
+ }
+
+ // Fo keret: cim + leiras + Restart gomb
+ Rectangle {
+ id: panel
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.top: parent.top
+ anchors.topMargin: Math.round(parent.height * 0.06)
+ width: Math.min(parent.width * 0.75, 780)
+ height: contentColumn.implicitHeight + 56
+ color: "#CC1F1F1F"
+ radius: 12
+
+ ColumnLayout {
+ id: contentColumn
+ anchors.centerIn: parent
+ width: parent.width - 64
+ spacing: 18
+
+ Text {
+ Layout.fillWidth: true
+ horizontalAlignment: Text.AlignHCenter
+ color: "#FFFFFF"
+ font.family: "Ubuntu"
+ font.pixelSize: 26
+ font.bold: true
+ text: finishedRoot.titleText
+ }
+
+ Text {
+ Layout.fillWidth: true
+ horizontalAlignment: Text.AlignHCenter
+ color: "#E8E8E8"
+ font.family: "Ubuntu"
+ font.pixelSize: 15
+ wrapMode: Text.WordWrap
+ text: finishedRoot.descText
+ }
+
+ Button {
+ id: restartButton
+ Layout.alignment: Qt.AlignHCenter
+ text: finishedRoot.restartText
+ hoverEnabled: true
+ onClicked: config.doRestart(true)
+
+ contentItem: Text {
+ text: restartButton.text
+ font.family: "Ubuntu"
+ font.pixelSize: 14
+ font.bold: true
+ color: "#FFFFFF"
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ }
+
+ background: Rectangle {
+ implicitWidth: 180
+ implicitHeight: 40
+ radius: 4
+ color: (restartButton.down || restartButton.hovered) ? "#285226" : "#3d7839"
+ }
+ }
+ }
+ }
+
+ // Kulon keret: tamogatok (alul) - csak akkor latszik, ha van nev
+ Rectangle {
+ id: supportersPanel
+ anchors.horizontalCenter: parent.horizontalCenter
+ anchors.top: panel.bottom
+ anchors.topMargin: 16
+ width: Math.min(parent.width * 0.75, 780)
+ height: supportersColumn.implicitHeight + 40
+ color: "#CC1F1F1F"
+ radius: 12
+ visible: finishedRoot.hasSupporters
+
+ ColumnLayout {
+ id: supportersColumn
+ anchors.centerIn: parent
+ width: parent.width - 48
+ spacing: 10
+
+ Text {
+ Layout.fillWidth: true
+ horizontalAlignment: Text.AlignHCenter
+ color: "#B9B9B9"
+ font.family: "Ubuntu"
+ font.pixelSize: 15
+ font.bold: true
+ text: finishedRoot.supportersHeadText
+ }
+
+ Text {
+ id: supportersNames
+ Layout.fillWidth: true
+ horizontalAlignment: Text.AlignHCenter
+ color: "#DADADA"
+ font.family: "Ubuntu"
+ font.pixelSize: 15
+ lineHeight: 1.4
+ text: finishedRoot.supportersText
+ Behavior on opacity { NumberAnimation { duration: 250 } }
+ }
+
+ Text {
+ Layout.fillWidth: true
+ horizontalAlignment: Text.AlignHCenter
+ color: "#8F8F8F"
+ font.family: "Ubuntu"
+ font.pixelSize: 12
+ visible: finishedRoot.supportersPageCount > 1
+ text: (finishedRoot.supportersPage + 1) + " / " + finishedRoot.supportersPageCount
+ }
+
+ // Koszonet a tamogatasert
+ Text {
+ Layout.fillWidth: true
+ Layout.topMargin: 2
+ horizontalAlignment: Text.AlignHCenter
+ color: "#B9B9B9"
+ font.family: "Ubuntu"
+ font.pixelSize: 13
+ font.italic: true
+ wrapMode: Text.WordWrap
+ text: finishedRoot.thanksText
+ }
+ }
+ }
+
+ // Automatikus lapozas, ha tobb oldal van
+ Timer {
+ id: pageTimer
+ interval: 4000
+ repeat: true
+ running: finishedRoot.hasSupporters && finishedRoot.supportersPageCount > 1
+ onTriggered: {
+ supportersNames.opacity = 0;
+ fadeTimer.start();
+ }
+ }
+
+ Timer {
+ id: fadeTimer
+ interval: 260
+ onTriggered: {
+ finishedRoot.supportersPage = (finishedRoot.supportersPage + 1) % finishedRoot.supportersPageCount;
+ supportersNames.opacity = 1;
+ }
+ }
+
+ function onActivate()
+ {
+ updateTexts();
+ }
+
+ function onLeave()
+ {
+ }
+}
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/images/raveos-finish.png b/raveos-calamares-theme/etc/calamares/branding/raveos/images/raveos-finish.png
new file mode 100644
index 0000000..be6d510
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/images/raveos-finish.png
Binary files differ
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_de.ts b/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_de.ts
new file mode 100644
index 0000000..1d68d57
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_de.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="de">
+<context>
+ <name>finishedq</name>
+ <message>
+ <source>Installation complete</source>
+ <translation>Installation abgeschlossen</translation>
+ </message>
+ <message>
+ <source>Restart the system to start using %1.</source>
+ <translation>Starten Sie das System neu, um %1 zu verwenden.</translation>
+ </message>
+ <message>
+ <source>Restart now</source>
+ <translation>Jetzt neu starten</translation>
+ </message>
+ <message>
+ <source>RaveOS Supporters</source>
+ <translation>RaveOS-Unterstützer</translation>
+ </message>
+ <message>
+ <source>Thank you for your support, from every member of the team!</source>
+ <translation>Vielen Dank für die Unterstützung, im Namen aller Teammitglieder!</translation>
+ </message>
+</context>
+<context>
+ <name>CalamaresWindow</name>
+ <message>
+ <source>&amp;Restart</source>
+ <comment>@button</comment>
+ <translation>&amp;Neu starten</translation>
+ </message>
+ <message>
+ <source>Restart the computer</source>
+ <comment>@tooltip</comment>
+ <translation>Den Computer neu starten</translation>
+ </message>
+</context>
+<context>
+ <name>raveos</name>
+ <message>
+ <source>Restart the computer?</source>
+ <translation>Computer neu starten?</translation>
+ </message>
+ <message>
+ <source>Restart</source>
+ <translation>Neu starten</translation>
+ </message>
+ <message>
+ <source>Cancel</source>
+ <translation>Abbrechen</translation>
+ </message>
+</context>
+</TS>
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_en.ts b/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_en.ts
new file mode 100644
index 0000000..cb44e1c
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_en.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="en">
+<context>
+ <name>finishedq</name>
+ <message>
+ <source>Installation complete</source>
+ <translation>Installation complete</translation>
+ </message>
+ <message>
+ <source>Restart the system to start using %1.</source>
+ <translation>Restart the system to start using %1.</translation>
+ </message>
+ <message>
+ <source>Restart now</source>
+ <translation>Restart now</translation>
+ </message>
+ <message>
+ <source>RaveOS Supporters</source>
+ <translation>RaveOS Supporters</translation>
+ </message>
+ <message>
+ <source>Thank you for your support, from every member of the team!</source>
+ <translation>Thank you for your support, from every member of the team!</translation>
+ </message>
+</context>
+<context>
+ <name>CalamaresWindow</name>
+ <message>
+ <source>&amp;Restart</source>
+ <comment>@button</comment>
+ <translation>&amp;Restart</translation>
+ </message>
+ <message>
+ <source>Restart the computer</source>
+ <comment>@tooltip</comment>
+ <translation>Restart the computer</translation>
+ </message>
+</context>
+<context>
+ <name>raveos</name>
+ <message>
+ <source>Restart the computer?</source>
+ <translation>Restart the computer?</translation>
+ </message>
+ <message>
+ <source>Restart</source>
+ <translation>Restart</translation>
+ </message>
+ <message>
+ <source>Cancel</source>
+ <translation>Cancel</translation>
+ </message>
+</context>
+</TS>
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_hu.ts b/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_hu.ts
new file mode 100644
index 0000000..27eddfa
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/lang/calamares-raveos_hu.ts
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="hu">
+<context>
+ <name>finishedq</name>
+ <message>
+ <source>Installation complete</source>
+ <translation>A telepítés befejeződött</translation>
+ </message>
+ <message>
+ <source>Restart the system to start using %1.</source>
+ <translation>Indítsd újra a rendszert a %1 használatához.</translation>
+ </message>
+ <message>
+ <source>Restart now</source>
+ <translation>Újraindítás most</translation>
+ </message>
+ <message>
+ <source>RaveOS Supporters</source>
+ <translation>RaveOS támogatók</translation>
+ </message>
+ <message>
+ <source>Thank you for your support, from every member of the team!</source>
+ <translation>Köszönjük a támogatást, a csapat minden tagja nevében!</translation>
+ </message>
+</context>
+<context>
+ <name>CalamaresWindow</name>
+ <message>
+ <source>&amp;Restart</source>
+ <comment>@button</comment>
+ <translation>&amp;Újraindítás</translation>
+ </message>
+ <message>
+ <source>Restart the computer</source>
+ <comment>@tooltip</comment>
+ <translation>A számítógép újraindítása</translation>
+ </message>
+</context>
+<context>
+ <name>raveos</name>
+ <message>
+ <source>Restart the computer?</source>
+ <translation>Újraindítod a számítógépet?</translation>
+ </message>
+ <message>
+ <source>Restart</source>
+ <translation>Újraindítás</translation>
+ </message>
+ <message>
+ <source>Cancel</source>
+ <translation>Mégse</translation>
+ </message>
+</context>
+</TS>
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/stylesheet.qss b/raveos-calamares-theme/etc/calamares/branding/raveos/stylesheet.qss
index 56cc368..8a51e3c 100644
--- a/raveos-calamares-theme/etc/calamares/branding/raveos/stylesheet.qss
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/stylesheet.qss
@@ -414,3 +414,24 @@ QScrollBar::handle:horizontal {
QScrollBar::handle:horizontal:hover {
background-color: #95a5a6;
}
+
+/* ---------------- RaveOS restart dialog ---------------- */
+
+#raveosDialog {
+ background-color: #2B2B2B;
+}
+
+#raveosDialogLabel {
+ color: #ECF0F1;
+ font-size: 15px;
+ padding: 6px 2px;
+}
+
+#raveosDialogCancel {
+ background-color: #7f8c8d;
+ color: #ffffff;
+}
+
+#raveosDialogCancel:hover {
+ background-color: #95a5a6;
+}
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/supporters.js b/raveos-calamares-theme/etc/calamares/branding/raveos/supporters.js
new file mode 100644
index 0000000..2e9859d
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/supporters.js
@@ -0,0 +1,8 @@
+// RaveOS supporters list
+// The Calamares finished page reads this file (finishedq.qml).
+// One name per line inside the array. The list can also be refreshed
+// during install from: https://page.rp1.hu/supporters.js
+.pragma library
+
+var names = [
+]