theme: use blend helpers from qml-common

This commit is contained in:
bbedward
2026-10-08 16:20:30 -04:00
parent 474b723faf
commit b938dd76f0
3 changed files with 6 additions and 10 deletions
Generated
+3 -3
View File
@@ -3,11 +3,11 @@
"dank-qml-common": {
"flake": false,
"locked": {
"lastModified": 1791478817,
"narHash": "sha256-V5s6Zatru7+YPb5n67CpEh64f1LDfV1iP8DmYnqRd0c=",
"lastModified": 1791490464,
"narHash": "sha256-YAYbG0BCHqxK3Dd511pH1v1dIGGwfF6sQit/PlWJAAY=",
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"rev": "59d71ecf2cb9dc4002c7da7c419c5329d6d29d9b",
"rev": "6b5d581d2fbe9f36f600d904c74e38fd377cb558",
"type": "github"
},
"original": {
+2 -6
View File
@@ -2195,15 +2195,11 @@ Singleton {
}
function withAlpha(c, a) {
if (!c || c.r === undefined)
return Qt.rgba(0, 0, 0, 0);
return Qt.rgba(c.r, c.g, c.b, a);
return DCommon.Style.withAlpha(c, a);
}
function blendAlpha(c, a) {
if (!c || c.r === undefined)
return Qt.rgba(0, 0, 0, 0);
return Qt.rgba(c.r, c.g, c.b, c.a * a);
return DCommon.Style.blendAlpha(c, a);
}
function hoverTint(base) {