summaryrefslogtreecommitdiff
path: root/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS')
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Fejlec.qml30
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Gorgeto.qml20
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/JelszoMezo.qml56
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Stilus.qml23
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Valaszto.qml73
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/qmldir6
6 files changed, 208 insertions, 0 deletions
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Fejlec.qml b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Fejlec.qml
new file mode 100644
index 0000000..68dc811
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Fejlec.qml
@@ -0,0 +1,30 @@
+import io.calamares.ui 1.0
+
+import QtQuick 2.15
+import QtQuick.Layouts 1.15
+import "."
+
+ColumnLayout {
+ property string felirat: ""
+ property string cim: ""
+
+ spacing: 10
+
+ Text {
+ text: (ViewManager.currentStepIndex < 10 ? "0" : "") + ViewManager.currentStepIndex + " · " + parent.felirat
+ color: Stilus.zold
+ font.family: Stilus.mono
+ font.pixelSize: 12
+ font.letterSpacing: 2
+ }
+
+ Text {
+ Layout.fillWidth: true
+ text: parent.cim
+ wrapMode: Text.WordWrap
+ color: Stilus.szoveg
+ font.family: Stilus.cim
+ font.weight: Font.Bold
+ font.pixelSize: 36
+ }
+}
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Gorgeto.qml b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Gorgeto.qml
new file mode 100644
index 0000000..f942782
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Gorgeto.qml
@@ -0,0 +1,20 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import "."
+
+ScrollBar {
+ id: gorgeto
+ policy: ScrollBar.AlwaysOn
+ width: 10
+ padding: 0
+ minimumSize: 0.08
+
+ background: Rectangle {
+ color: "transparent"
+ }
+
+ contentItem: Rectangle {
+ implicitWidth: 10
+ color: gorgeto.pressed || gorgeto.hovered ? Stilus.zold : Stilus.keretErosebb
+ }
+}
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/JelszoMezo.qml b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/JelszoMezo.qml
new file mode 100644
index 0000000..2a2e57e
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/JelszoMezo.qml
@@ -0,0 +1,56 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import "."
+
+TextField {
+ id: field
+ property bool reveal: false
+ property string revealName: ""
+ property bool highlight: false
+ signal revealClicked()
+
+ implicitHeight: 44
+ leftPadding: 12
+ rightPadding: 44
+ echoMode: reveal ? TextInput.Normal : TextInput.Password
+ color: Stilus.szoveg
+ placeholderTextColor: Stilus.szovegHalvany
+ font.family: Stilus.font
+ font.pixelSize: 14
+
+ background: Rectangle {
+ color: Stilus.felulet
+ border.width: 1
+ border.color: field.activeFocus || field.highlight ? Stilus.zold : Stilus.keretErosebb
+ }
+
+ Button {
+ anchors.right: parent.right
+ anchors.verticalCenter: parent.verticalCenter
+ width: 44
+ height: 44
+ padding: 0
+ focusPolicy: Qt.NoFocus
+ Accessible.name: field.revealName
+ background: Item {}
+ contentItem: Canvas {
+ property bool aktiv: field.reveal
+ onAktivChanged: requestPaint()
+ onPaint: {
+ var c = getContext("2d")
+ c.reset()
+ c.strokeStyle = aktiv ? Stilus.zold : Stilus.szovegHalvany
+ c.lineWidth = 2
+ c.beginPath()
+ c.moveTo(12, 22)
+ c.quadraticCurveTo(22, 12, 32, 22)
+ c.quadraticCurveTo(22, 32, 12, 22)
+ c.stroke()
+ c.beginPath()
+ c.arc(22, 22, 3, 0, 2 * Math.PI)
+ c.stroke()
+ }
+ }
+ onClicked: field.revealClicked()
+ }
+}
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Stilus.qml b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Stilus.qml
new file mode 100644
index 0000000..84c8c43
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Stilus.qml
@@ -0,0 +1,23 @@
+pragma Singleton
+import QtQuick 2.15
+
+QtObject {
+ readonly property color hatter: "#1a1b1d"
+ readonly property color felulet: "#232427"
+ readonly property color aktiv: "#2f3034"
+ readonly property color keret: "#34363a"
+ readonly property color keretErosebb: "#44464b"
+ readonly property color szoveg: "#e8e8e6"
+ readonly property color szovegMasodlagos: "#b7b9bd"
+ readonly property color szovegHalvany: "#9a9ca1"
+ readonly property color zold: "#62a052"
+ readonly property color zoldHover: "#7dbb6c"
+ readonly property color zoldonSzoveg: "#1a1b1d"
+ readonly property color sarga: "#d9a441"
+ readonly property color sargaPanel: "#2e2a20"
+ readonly property color sargaSzoveg: "#f0dcb0"
+
+ readonly property string font: "Noto Sans"
+ readonly property string mono: "Noto Sans Mono"
+ readonly property string cim: "Noto Sans"
+}
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Valaszto.qml b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Valaszto.qml
new file mode 100644
index 0000000..4e8bf6b
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Valaszto.qml
@@ -0,0 +1,73 @@
+import QtQuick 2.15
+import QtQuick.Controls 2.15
+import "."
+
+ComboBox {
+ id: valaszto
+
+ implicitHeight: 44
+ font.family: Stilus.font
+ font.pixelSize: 14
+
+ background: Rectangle {
+ color: Stilus.felulet
+ border.width: 1
+ border.color: valaszto.activeFocus || valaszto.hovered ? Stilus.zold : Stilus.keretErosebb
+ }
+
+ contentItem: Text {
+ leftPadding: 12
+ rightPadding: 32
+ text: valaszto.displayText
+ color: Stilus.szoveg
+ font: valaszto.font
+ elide: Text.ElideRight
+ verticalAlignment: Text.AlignVCenter
+ }
+
+ indicator: Image {
+ x: valaszto.width - width - 12
+ y: (valaszto.height - height) / 2
+ width: 12
+ height: 12
+ source: "../arrow-down.svg"
+ sourceSize.width: 24
+ sourceSize.height: 24
+ }
+
+ delegate: ItemDelegate {
+ width: valaszto.width
+ height: 36
+ highlighted: valaszto.highlightedIndex === index
+ background: Rectangle {
+ color: highlighted ? Stilus.aktiv : Stilus.felulet
+ }
+ contentItem: Text {
+ leftPadding: 12
+ text: valaszto.textAt(index)
+ color: Stilus.szoveg
+ font: valaszto.font
+ elide: Text.ElideRight
+ verticalAlignment: Text.AlignVCenter
+ }
+ }
+
+ popup: Popup {
+ y: valaszto.height
+ width: valaszto.width
+ implicitHeight: Math.min(contentItem.implicitHeight + 2, 320)
+ padding: 1
+ background: Rectangle {
+ color: Stilus.felulet
+ border.width: 1
+ border.color: Stilus.keretErosebb
+ }
+ contentItem: ListView {
+ clip: true
+ implicitHeight: contentHeight
+ model: valaszto.popup.visible ? valaszto.delegateModel : null
+ currentIndex: valaszto.highlightedIndex
+ ScrollIndicator.vertical: ScrollIndicator {}
+ }
+ }
+}
diff --git a/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/qmldir b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/qmldir
new file mode 100644
index 0000000..71512ce
--- /dev/null
+++ b/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/qmldir
@@ -0,0 +1,6 @@
+module RaveOS
+singleton Stilus 1.0 Stilus.qml
+Fejlec 1.0 Fejlec.qml
+Valaszto 1.0 Valaszto.qml
+JelszoMezo 1.0 JelszoMezo.qml
+Gorgeto 1.0 Gorgeto.qml