mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-21 18:54:01 -04:00
theme: use blend helpers from qml-common
This commit is contained in:
+1
-1
Submodule dank-qml-common updated: 59d71ecf2c...6b5d581d2f
Generated
+3
-3
@@ -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": {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user