summaryrefslogtreecommitdiff
path: root/SharedGraphics
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-25 21:55:53 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-25 21:55:53 +0200
commit41ebb3eba39d493d0da4238a92f3ed165bdbaab4 (patch)
tree736e4d420cfa5a5b77319127b719bbc29a4b4c4a /SharedGraphics
parent34150f0836b1c52db66fd10ac565b02cc96602f5 (diff)
downloadserenity-41ebb3eba39d493d0da4238a92f3ed165bdbaab4.zip
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. :^)
Diffstat (limited to 'SharedGraphics')
-rw-r--r--SharedGraphics/Color.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/SharedGraphics/Color.h b/SharedGraphics/Color.h
index bd8eab1840..29116790c6 100644
--- a/SharedGraphics/Color.h
+++ b/SharedGraphics/Color.h
@@ -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