This commit is contained in:
2026-04-09 19:01:07 -05:00
parent 1f42ca1eae
commit e153502401
2 changed files with 13 additions and 48 deletions

View File

@@ -14,40 +14,40 @@ ClippingWrapperRectangle {
anchors.fill: parent
radius: 10
color: "black"
//color: Settings.special.background
//color: "black"
color: Settings.special.background
ColumnLayout {
anchors.fill: parent
Text {
id: error
text: ""
color: "red"
//color: Settings.colors.color13
//color: "red"
color: Settings.colors.color13
visible: false
}
Text {
text: "User"
color: "white"
//color: Settings.special.foreground
//color: "white"
color: Settings.special.foreground
}
TextInput {
id: username
text: "guest"
color: "white"
//color: Settings.special.foreground
//color: "white"
color: Settings.special.foreground
}
Text {
text: "Password"
color: "white"
//color: Settings.special.foreground
//color: "white"
color: Settings.special.foreground
}
TextInput {
id: password
text: "test"
echoMode: TextInput.Password
color: "white"
//color: Settings.special.foreground
//color: "white"
color: Settings.special.foreground
}
Button {
@@ -75,7 +75,7 @@ ClippingWrapperRectangle {
Greetd.readyToLaunch.connect(() => {
console.log("readyToLaunch")
Greetd.launch([ "Hyprland" ])
Greetd.launch([ "start-hyprland" ])
})
console.log("createSession")
Greetd.createSession(username.text)

View File

@@ -12,44 +12,9 @@ import Quickshell.Hyprland
Singleton {
property bool launcherOpen: false
property string colorsDir: s_json.colorsDir
property string wallpaperDir: s_json.wallpaperDir
property string settingsDir: "/home/" + Quickshell.env("USER") + "/.config/aurora"
onSettingsDirChanged: reload()
function reload() {
settings.reload()
root.wallpaperDir = Qt.binding(() => s_json.wallpaperDir)
root.colorsDir = Qt.binding(() => s_json.colorsDir)
root.wallpaper = Qt.binding(() => c_json.wallpaper)
root.colors = Qt.binding(() => c_json.colors)
}
id: root
FileView {
id: settings
path: root.settingsDir + "/settings.json"
watchChanges: true
onFileChanged: reload()
JsonAdapter {
id: s_json
property string wallpaperDir
property string colorsDir
}
}
property string wallpaper: c_json.wallpaper
property string alpha: Math.round(parseInt(c_json.alpha, 10) * 0xFF / 100).toString(16)