[longomatch] Use style config for text colors in Plotter.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use style config for text colors in Plotter.
- Date: Wed, 11 Feb 2015 23:47:56 +0000 (UTC)
commit 37aede0ab2433ab4329078b528e878ee85bc289b
Author: Julien Moutte <julien fluendo com>
Date: Wed Feb 11 19:06:52 2015 +0100
Use style config for text colors in Plotter.
LongoMatch.Plugins.Stats/Stats/Plotter.cs | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Plugins.Stats/Stats/Plotter.cs b/LongoMatch.Plugins.Stats/Stats/Plotter.cs
index bc5d1c7..ab0428d 100644
--- a/LongoMatch.Plugins.Stats/Stats/Plotter.cs
+++ b/LongoMatch.Plugins.Stats/Stats/Plotter.cs
@@ -129,6 +129,14 @@ namespace LongoMatch.Plugins.Stats
valueAxis.MajorStep = 50;
}
}
+ OxyColor text_color = OxyColor.FromArgb (LongoMatch.Config.Style.PaletteText.A,
+ LongoMatch.Config.Style.PaletteText.R,
+ LongoMatch.Config.Style.PaletteText.G,
+ LongoMatch.Config.Style.PaletteText.B);
+ model.TextColor = text_color;
+ model.TitleColor = text_color;
+ model.SubtitleColor = text_color;
+
return model;
}
@@ -154,6 +162,13 @@ namespace LongoMatch.Plugins.Stats
} else if (team == Team.VISITOR) {
ps.Title = AwayName;
}
+ OxyColor text_color = OxyColor.FromArgb (LongoMatch.Config.Style.PaletteText.A,
+ LongoMatch.Config.Style.PaletteText.R,
+ LongoMatch.Config.Style.PaletteText.G,
+ LongoMatch.Config.Style.PaletteText.B);
+ model.TextColor = text_color;
+ model.TitleColor = text_color;
+ model.SubtitleColor = text_color;
model.Series.Add(ps);
return model;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]