mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-10 09:19:27 -05:00
notifications: groups
This commit is contained in:
@@ -79,7 +79,7 @@ function mix(color1, color2, percentage) {
|
||||
* @param {number} percentage - The amount to transparentize (0-1).
|
||||
* @returns {Qt.rgba} The resulting color.
|
||||
*/
|
||||
function transparentize(color, percentage) {
|
||||
function transparentize(color, percentage = 1) {
|
||||
var c = Qt.color(color);
|
||||
return Qt.rgba(c.r, c.g, c.b, c.a * (1 - percentage));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user