[longomatch] Slight border in camera timeline's background.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Slight border in camera timeline's background.
- Date: Wed, 18 Mar 2015 14:40:31 +0000 (UTC)
commit 22d3cae6cd90d6bbc16a12617ee3432b315215f4
Author: Julien Moutte <julien fluendo com>
Date: Thu Mar 12 15:40:29 2015 +0100
Slight border in camera timeline's background.
LongoMatch.Drawing/CanvasObjects/TimelineObject.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Drawing/CanvasObjects/TimelineObject.cs
b/LongoMatch.Drawing/CanvasObjects/TimelineObject.cs
index 49095f7..cab02b2 100644
--- a/LongoMatch.Drawing/CanvasObjects/TimelineObject.cs
+++ b/LongoMatch.Drawing/CanvasObjects/TimelineObject.cs
@@ -417,6 +417,15 @@ namespace LongoMatch.Drawing.CanvasObjects
co.LineColor = LineColor;
AddNode (co);
}
+
+ protected override void DrawBackground (IDrawingToolkit tk, Area area)
+ {
+ // We want to have a slight border in our background.
+ tk.FillColor = BackgroundColor;
+ tk.StrokeColor = Config.Style.PaletteBackgroundDark;
+ tk.LineWidth = 1;
+ tk.DrawRectangle (new Point (area.Start.X, OffsetY), area.Width, Height);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]