[five-or-more/arnaudb/wip/gtk4: 15/19] Adapt grid color.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/wip/gtk4: 15/19] Adapt grid color.
- Date: Sun, 12 Apr 2020 11:09:46 +0000 (UTC)
commit 16fade4f4f204a5acdb5b871c702384138a96ab2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Mar 18 21:12:36 2020 +0100
Adapt grid color.
src/view.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/view.vala b/src/view.vala
index ce4769a..8f673af 100644
--- a/src/view.vala
+++ b/src/view.vala
@@ -345,8 +345,7 @@ private class View : DrawingArea
private void draw_gridlines (Cairo.Context cr)
{
- Gdk.RGBA grid_color = cs.get_color ();
- Gdk.cairo_set_source_rgba (cr, grid_color);
+ cr.set_source_rgba (0.0, 0.0, 0.0, 0.8);
cr.set_line_width (1.0);
for (int i = piece_size; i < board_rectangle.width; i += piece_size)
@@ -366,6 +365,7 @@ private class View : DrawingArea
border.width = board_rectangle.width;
border.height = board_rectangle.height;
+ cr.set_source_rgba (0.0, 0.0, 0.0, 1.0);
Gdk.cairo_rectangle (cr, border);
cr.stroke ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]