summaryrefslogtreecommitdiff
path: root/raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Valaszto.qml
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-11-01 18:13:54 +0100
committerNippy <nippy@Nippy-Mac-mini.local>2026-11-01 18:13:54 +0100
commita64ef966534f8dba6af889ba4bfce15691bfc85b (patch)
treeb30f284d05b80fa115569ab220deae13797fad6f /raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Valaszto.qml
parent919f977b40016f588b0c8532c8a57f6035056b95 (diff)
downloadRaveOS-PKGBUILD-a64ef966534f8dba6af889ba4bfce15691bfc85b.tar.gz
RaveOS-PKGBUILD-a64ef966534f8dba6af889ba4bfce15691bfc85b.zip
új telepítő
Diffstat (limited to 'raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Valaszto.qml')
-rw-r--r--raveos-calamares-theme/etc/calamares/branding/raveos/RaveOS/Valaszto.qml73
1 files changed, 73 insertions, 0 deletions
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 {}
+ }
+ }
+}