aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-03 06:04:57 +0100
committerdec05eba <dec05eba@protonmail.com>2018-11-03 06:05:03 +0100
commit405459e93be718b0e6aad26746036105dd3f3226 (patch)
tree1d3a94bbbf2e58c334cf2234357719f4a3fe2af8 /src/Window.cpp
parent8cc8853c3c1e5dfd7681bc0c31bc0eb88a4ef959 (diff)
Improve top bar, have to fix banding...
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp12
1 files changed, 11 insertions, 1 deletions
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;
}