test
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user