[longomatch] Add a property to set the background color
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add a property to set the background color
- Date: Sat, 29 Nov 2014 20:59:54 +0000 (UTC)
commit 1248e7cb4ed092b464f7d5371b708c08aa0d8ada
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Nov 29 21:59:05 2014 +0100
Add a property to set the background color
LongoMatch.Drawing/Widgets/PositionTagger.cs | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/PositionTagger.cs b/LongoMatch.Drawing/Widgets/PositionTagger.cs
index 3750fc4..90171e3 100644
--- a/LongoMatch.Drawing/Widgets/PositionTagger.cs
+++ b/LongoMatch.Drawing/Widgets/PositionTagger.cs
@@ -40,6 +40,7 @@ namespace LongoMatch.Drawing.Widgets
Accuracy = Constants.TAGGER_POINT_SIZE + 3;
EmitSignals = true;
SelectionMode = MultiSelectionMode.MultipleWithModifier;
+ BackgroundColor = Config.Style.PaletteBackground;
}
public PositionTagger (IWidget widget, Project project, List<TimelineEvent> plays,
@@ -49,6 +50,12 @@ namespace LongoMatch.Drawing.Widgets
Background = background;
Plays = plays;
FieldPosition = position;
+ BackgroundColor = Config.Style.PaletteBackground;
+ }
+
+ public Color BackgroundColor {
+ set;
+ get;
}
public Project Project {
@@ -180,7 +187,7 @@ namespace LongoMatch.Drawing.Widgets
{
tk.Context = context;
tk.Begin ();
- tk.Clear (Config.Style.PaletteBackground);
+ tk.Clear (BackgroundColor);
tk.End ();
base.Draw (context, area);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]