[five-or-more/arnaudb/wip/gtk4: 25/28] Adapt grid color.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [five-or-more/arnaudb/wip/gtk4: 25/28] Adapt grid color.
- Date: Fri, 27 Mar 2020 16:18:05 +0000 (UTC)
commit 66abd943c904aa00aea19e04a29bce2eaf001a85
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]