From 405459e93be718b0e6aad26746036105dd3f3226 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 3 Nov 2018 06:04:57 +0100 Subject: Improve top bar, have to fix banding... --- src/Window.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/Window.cpp') diff --git a/src/Window.cpp b/src/Window.cpp index e8129f0..8b23aa9 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -249,8 +249,18 @@ namespace dchat } } cairo->stroke(); - overlay.draw(cairo); + /* + int windowMax = std::max(windowWidth/2, windowHeight/2); + auto backgroundGradient = Cairo::RadialGradient::create(windowWidth/2, windowHeight/2, 0.0, windowWidth/2, windowHeight/2, windowMax*1.35); + backgroundGradient->add_color_stop_rgba(0.0, 0.0, 0.0, 0.0, 0.0); + backgroundGradient->add_color_stop_rgba(1.0, 0.1843137254901961, 0.19215686274509805, 0.21176470588235294, 1.0); + cairo->set_source(backgroundGradient); + cairo->mask(backgroundGradient); + //cairo->paint(); + */ + + overlay.draw(cairo); queue_draw(); return true; } -- cgit v1.2.3