1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

WindowServer: Tweak window titlebar look somewhat.

Add a subtle shadow to the titlebar text. Also make the titlebar one pixel
taller to fully accomodate the 90s "3D frame" effect. :^)
This commit is contained in:
Andreas Kling 2019-05-25 21:55:53 +02:00
parent 34150f0836
commit 41ebb3eba3
2 changed files with 8 additions and 17 deletions

View file

@ -79,9 +79,9 @@ public:
return Color(gray, gray, gray, alpha());
}
Color darkened() const
Color darkened(float amount = 0.5) const
{
return Color(red() * 0.8, green() * 0.8, blue() * 0.8, alpha());
return Color(red() * amount, green() * amount, blue() * amount, alpha());
}
Color lightened() const