[gnome-characters/bilelmoussaoui/gtk4: 47/71] characters view: use borders color for baseline
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters/bilelmoussaoui/gtk4: 47/71] characters view: use borders color for baseline
- Date: Thu, 25 Nov 2021 11:03:11 +0000 (UTC)
commit 76fcec536d0b024b06389725961270a2a9f743e6
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Nov 24 10:13:35 2021 +0100
characters view: use borders color for baseline
src/charactersView.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/charactersView.js b/src/charactersView.js
index 264a55a..c49ec90 100644
--- a/src/charactersView.js
+++ b/src/charactersView.js
@@ -393,16 +393,15 @@ var CharactersView = GObject.registerClass({
snapshot.translate(new Graphene.Point({ x: 0, y: -offset }));
- let accentColor = styleContext.lookup_color('accent_color')[1];
- accentColor.alpha = 0.3;
+ let borderColor = styleContext.lookup_color("borders")[1];
for (let index = start; index < end; index++) {
let y = (index - start) * cellSize;
// Draw baseline.
- snapshot.append_color(accentColor, new Graphene.Rect({
+ snapshot.append_color(borderColor, new Graphene.Rect({
origin: new Graphene.Point({ x: 0, y: y + BASELINE_OFFSET * cellSize }),
- size: new Graphene.Size({ width: this.get_allocation().width, height: 2.0 }),
+ size: new Graphene.Size({ width: this.get_allocation().width, height: 1.0 }),
}));
this._rows[index].snapshot(snapshot, 0, y, pangoContext, styleContext);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]