forked from Shinonome/alt-illogical-impulse
ac6d3adeb9
BREAKING CHANGE: Remove external dots-hyprland dependency - Imported all essential configs from dots-hyprland/installer-replication - Added complete configs/ directory with: - hypr/ - Hyprland configuration - quickshell/ - Quickshell widgets and config - applications/ - Application configurations - scripts/ - Utility scripts - matugen/ - Material You theming - Updated flake.nix to use local ./configs instead of external repo - Simplified update-flake script (removed external repo management) - Updated README to reflect self-contained architecture - All builds pass with local configurations Benefits: - No external repository dependencies - Faster builds (no network dependencies) - Version controlled configs in single repo - Easier maintenance and development - Complete installer replication in one place
44 lines
1.2 KiB
QML
44 lines
1.2 KiB
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import qs.services
|
|
import qs.modules.common
|
|
import qs.modules.common.widgets
|
|
import qs.modules.common.functions
|
|
|
|
Flow {
|
|
id: root
|
|
Layout.fillWidth: true
|
|
spacing: 2
|
|
property list<var> options: []
|
|
property string configOptionName: ""
|
|
property var currentValue: null
|
|
|
|
signal selected(var newValue)
|
|
|
|
Repeater {
|
|
model: root.options
|
|
delegate: SelectionGroupButton {
|
|
id: paletteButton
|
|
required property var modelData
|
|
required property int index
|
|
onYChanged: {
|
|
if (index === 0) {
|
|
paletteButton.leftmost = true
|
|
} else {
|
|
var prev = root.children[index - 1]
|
|
var thisIsOnNewLine = prev && prev.y !== paletteButton.y
|
|
paletteButton.leftmost = thisIsOnNewLine
|
|
prev.rightmost = thisIsOnNewLine
|
|
}
|
|
}
|
|
leftmost: index === 0
|
|
rightmost: index === root.options.length - 1
|
|
buttonText: modelData.displayName;
|
|
toggled: root.currentValue === modelData.value
|
|
onClicked: {
|
|
root.selected(modelData.value);
|
|
}
|
|
}
|
|
}
|
|
}
|