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

View File

@@ -13,43 +13,8 @@ import Quickshell.Hyprland
Singleton { 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 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 wallpaper: c_json.wallpaper
property string alpha: Math.round(parseInt(c_json.alpha, 10) * 0xFF / 100).toString(16) property string alpha: Math.round(parseInt(c_json.alpha, 10) * 0xFF / 100).toString(16)