[longomatch: 7/7] Fix drawing of selected category
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch: 7/7] Fix drawing of selected category
- Date: Sun, 6 Feb 2011 13:33:56 +0000 (UTC)
commit a77924e09625da62ca4632d13bfb1ea690d8595c
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Feb 6 14:17:31 2011 +0100
Fix drawing of selected category
LongoMatch/Gui/Component/TimeScale.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/Gui/Component/TimeScale.cs b/LongoMatch/Gui/Component/TimeScale.cs
index 8af7146..c922c12 100644
--- a/LongoMatch/Gui/Component/TimeScale.cs
+++ b/LongoMatch/Gui/Component/TimeScale.cs
@@ -170,11 +170,13 @@ namespace LongoMatch.Gui.Component
}
//Then we draw the selected TimeNode over the others
if (hasSelectedTimeNode) {
- Cairo.Color borderColor = new Cairo.Color(color.R+0.1, color.G+0.1,color.B+0.1, 1);
+ Cairo.Color borderColor = new Cairo.Color(0, 0, 0, 1);
CairoUtils.DrawRoundedRectangle(g,selected.StartFrame/pixelRatio,3,
selected.TotalFrames/pixelRatio,height-6,
SECTION_HEIGHT/7, color, borderColor);
if (selected.HasKeyFrame) {
+ g.Color = new Cairo.Color(0, 0, 1, 1);
+ g.LineWidth = 3;
g.MoveTo(selected.KeyFrame/pixelRatio,3);
g.LineTo(selected.KeyFrame/pixelRatio,SECTION_HEIGHT-3);
g.StrokePreserve();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]