[longomatch] Fix tabs icons size



commit 92df0fb42eafab6e789ed49a8aa1b01636fd8822
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Fri Aug 22 19:49:36 2014 +0200

    Fix tabs icons size

 LongoMatch.Core/StyleConf.cs                 |    3 ++-
 LongoMatch.GUI/Gui/Component/CodingWidget.cs |    2 ++
 data/theme/gtk-2.0/notebook.rc               |    4 ++--
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch.Core/StyleConf.cs b/LongoMatch.Core/StyleConf.cs
index a2d56a2..b7d42a3 100644
--- a/LongoMatch.Core/StyleConf.cs
+++ b/LongoMatch.Core/StyleConf.cs
@@ -72,7 +72,8 @@ namespace LongoMatch.Common
                public const int PlayerArrowOffset = 14; 
                public const int PlayerArrowSize = 20; 
 
-               public static int NotebookTabIconSize = 18;
+               public const int NotebookTabIconSize = 18;
+               public const int NotebookTabSize = NotebookTabIconSize + 14;
 
                public int BenchLineWidth = 2;
                public int TeamTaggerBenchBorder = 10;
diff --git a/LongoMatch.GUI/Gui/Component/CodingWidget.cs b/LongoMatch.GUI/Gui/Component/CodingWidget.cs
index dbd443d..9e626d3 100644
--- a/LongoMatch.GUI/Gui/Component/CodingWidget.cs
+++ b/LongoMatch.GUI/Gui/Component/CodingWidget.cs
@@ -148,6 +148,8 @@ namespace LongoMatch.Gui.Component
                        img = notebook.GetTabLabel (widget) as Gtk.Image;
                        if (img == null) {
                                img = new Gtk.Image ();
+                               img.WidthRequest = StyleConf.NotebookTabSize;
+                               img.HeightRequest = StyleConf.NotebookTabSize;
                                notebook.SetTabLabel (widget, img);
                        }
 
diff --git a/data/theme/gtk-2.0/notebook.rc b/data/theme/gtk-2.0/notebook.rc
index 0d9d1ba..5dc51bc 100644
--- a/data/theme/gtk-2.0/notebook.rc
+++ b/data/theme/gtk-2.0/notebook.rc
@@ -7,8 +7,8 @@ style "longomatch-notebook-tab-label"
 style "longomatch-notebook"
 {
 
-  xthickness   = 3
-  ythickness   = 2
+  xthickness   = 0
+  ythickness   = 0
 
   bg[NORMAL] = @active_color
   bg[ACTIVE] = @active_color


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]