mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
66b288c42a
commit
3ce21b972e
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue