Using a custom logger with colors and timestamp instead of console.xxx

This commit is contained in:
quadbyte 2025-08-16 19:31:22 -04:00
parent 4794477be3
commit e800bc161d
34 changed files with 278 additions and 236 deletions

View file

@ -58,8 +58,8 @@ Item {
description: "Display the brightness control icon in the top bar"
checked: !Settings.data.bar.hideBrightness
onToggled: checked => {
Settings.data.bar.hideBrightness = !checked
}
Settings.data.bar.hideBrightness = !checked
}
}
}
@ -168,7 +168,9 @@ Item {
color: Colors.mSecondary
}
Item { Layout.fillWidth: true }
Item {
Layout.fillWidth: true
}
NText {
text: BrightnessService.currentMethod === "ddcutil" ? "External (DDC)" : "Internal"
@ -228,7 +230,9 @@ Item {
Layout.alignment: Qt.AlignLeft
}
Item { Layout.fillWidth: true }
Item {
Layout.fillWidth: true
}
NText {
text: BrightnessService.available ? "Available" : "Unavailable"
@ -247,4 +251,4 @@ Item {
}
}
}
}
}

View file

@ -92,7 +92,7 @@ ColumnLayout {
var jsonData = JSON.parse(text())
root.schemeLoaded(schemeName, jsonData)
} catch (e) {
console.warn("Failed to parse JSON for scheme:", schemeName, e)
Logger.warn("Failed to parse JSON for scheme:", schemeName, e)
root.schemeLoaded(schemeName, null) // Load defaults on parse error
}
}