[longomatch] Make the scale font smaller and enlarge it to fit value
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Make the scale font smaller and enlarge it to fit value
- Date: Wed, 8 Oct 2014 00:11:48 +0000 (UTC)
commit b7b40ea9b25a8ce3acc82584c0d5402724a450bd
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Oct 6 07:08:08 2014 +0200
Make the scale font smaller and enlarge it to fit value
LongoMatch.Core/StyleConf.cs | 2 ++
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 2 ++
.../LongoMatch.GUI.Multimedia.csproj | 10 +++++++---
.../gtk-gui/LongoMatch.Gui.PlayerBin.cs | 2 +-
LongoMatch.GUI.Multimedia/gtk-gui/gui.stetic | 2 +-
5 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Core/StyleConf.cs b/LongoMatch.Core/StyleConf.cs
index b86e909..d4b1591 100644
--- a/LongoMatch.Core/StyleConf.cs
+++ b/LongoMatch.Core/StyleConf.cs
@@ -96,6 +96,8 @@ namespace LongoMatch.Core.Common
public int BenchLineWidth = 2;
public int TeamTaggerBenchBorder = 10;
+
+ public string Font = "Ubuntu";
public Color HomeTeamColor { get; set; }
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index d8a24a1..13b659a 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -21,6 +21,7 @@ using System;
using System.Linq;
using Gdk;
using Gtk;
+using Pango;
using LongoMatch.Core.Common;
using LongoMatch.Core.Handlers;
using LongoMatch.Core.Interfaces;
@@ -106,6 +107,7 @@ namespace LongoMatch.Gui
segment.Stop = new Time (int.MaxValue);
lastTime = new Time (0);
length = new Time (0);
+ vscale1.ModifyFont (FontDescription.FromString (Config.Style.Font + " 8"));
CreatePlayer ();
}
diff --git a/LongoMatch.GUI.Multimedia/LongoMatch.GUI.Multimedia.csproj
b/LongoMatch.GUI.Multimedia/LongoMatch.GUI.Multimedia.csproj
index a0ae02b..84f7064 100644
--- a/LongoMatch.GUI.Multimedia/LongoMatch.GUI.Multimedia.csproj
+++ b/LongoMatch.GUI.Multimedia/LongoMatch.GUI.Multimedia.csproj
@@ -20,7 +20,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Execution>
- <Execution clr-version="Net_2_0" xmlns="" />
+ <Execution clr-version="Net_2_0" />
</Execution>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
@@ -32,7 +32,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Execution>
- <Execution clr-version="Net_2_0" xmlns="" />
+ <Execution clr-version="Net_2_0" />
</Execution>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
@@ -80,6 +80,10 @@
<Package>gtk-sharp-2.0</Package>
</Reference>
<Reference Include="System.Core" />
+ <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <Private>False</Private>
+ <Package>gtk-sharp-2.0</Package>
+ </Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\LongoMatch.Multimedia\LongoMatch.Multimedia.csproj">
@@ -106,7 +110,7 @@
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>
- <Properties xmlns="">
+ <Properties>
<Deployment.LinuxDeployData generatePcFile="False" />
<MonoDevelop.Autotools.MakefileInfo RelativeMakefileName="Makefile.am" RelativeConfigureInPath="../">
<BuildFilesVar Name="FILES" />
diff --git a/LongoMatch.GUI.Multimedia/gtk-gui/LongoMatch.Gui.PlayerBin.cs
b/LongoMatch.GUI.Multimedia/gtk-gui/LongoMatch.Gui.PlayerBin.cs
index df55edc..44b1e4c 100644
--- a/LongoMatch.GUI.Multimedia/gtk-gui/LongoMatch.Gui.PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/gtk-gui/LongoMatch.Gui.PlayerBin.cs
@@ -93,7 +93,7 @@ namespace LongoMatch.Gui
this.vbox5.Spacing = 6;
// Container child vbox5.Gtk.Box+BoxChild
this.vscale1 = new global::Gtk.VScale (null);
- this.vscale1.WidthRequest = 30;
+ this.vscale1.WidthRequest = 36;
this.vscale1.Sensitive = false;
this.vscale1.Name = "vscale1";
this.vscale1.UpdatePolicy = ((global::Gtk.UpdateType)(1));
diff --git a/LongoMatch.GUI.Multimedia/gtk-gui/gui.stetic b/LongoMatch.GUI.Multimedia/gtk-gui/gui.stetic
index e94ef6f..11747f1 100644
--- a/LongoMatch.GUI.Multimedia/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI.Multimedia/gtk-gui/gui.stetic
@@ -141,7 +141,7 @@
<child>
<widget class="Gtk.VScale" id="vscale1">
<property name="MemberName" />
- <property name="WidthRequest">30</property>
+ <property name="WidthRequest">36</property>
<property name="Sensitive">False</property>
<property name="UpdatePolicy">Discontinuous</property>
<property name="Inverted">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]