startupfeedback: Always tint background with theme color

Currently with a light theme, often colors calculated from icons are incredible bright and vivid. This can cause the user to be flashed all of a sudden with a bright color when launching an app. This commit adopt the dark background blending scheme for all usecases.
This commit is contained in:
Devin Lin 2025-10-08 09:55:17 -07:00
parent 66b288c42a
commit 3ce21b972e

View file

@ -167,10 +167,9 @@ Item {
id: background
anchors.fill: parent
// Tint the background color if a dark theme is being used
color: Kirigami.ColorUtils.brightnessForColor(Kirigami.Theme.backgroundColor) === Kirigami.ColorUtils.Dark ?
Kirigami.ColorUtils.tintWithAlpha(colorGenerator.dominant, Kirigami.Theme.backgroundColor, 0.7) :
colorGenerator.dominant
// Tint the background color so that it is less prominent
// This avoids flashing the user all of a sudden with bright colors
color: Kirigami.ColorUtils.tintWithAlpha(colorGenerator.dominant, Kirigami.Theme.backgroundColor, 0.7)
Kirigami.ImageColors {
id: colorGenerator