Verified Commit c702803f authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

StartupFeedback: Add optional color argument

parent 6e82a855
......@@ -36,13 +36,18 @@ Window {
source: icon.source
}
function open(splashIcon, title, x, y, sourceIconSize) {
function open(splashIcon, title, x, y, sourceIconSize, color) {
iconParent.scale = sourceIconSize/iconParent.width;
background.scale = 0;
background.x = -window.width/2 + x
background.y = -window.height/2 + y
window.title = title;
icon.source = splashIcon;
if (color !== undefined) {
background.color = color
}
background.state = "open";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment