[longomatch] Implement new UI for teams combo boxes
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Implement new UI for teams combo boxes
- Date: Wed, 24 Sep 2014 20:14:01 +0000 (UTC)
commit dc101936db4743bc95152d44fec67fe50a7f6580
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Aug 24 17:19:45 2014 +0200
Implement new UI for teams combo boxes
LongoMatch.Drawing/Canvas.cs | 2 +-
LongoMatch.GUI/Gui/Component/TeamsComboBox.cs | 24 ++-
LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs | 4 +-
.../LongoMatch.Gui.Panel.NewProjectPanel.cs | 10 +-
LongoMatch.GUI/gtk-gui/gui.stetic | 27 +-
LongoMatch.GUI/gtk-gui/objects.xml | 8 +
data/theme/gtk-2.0/Arrows/arrow-up-down.png | Bin 0 -> 460 bytes
.../Entry/team-combo-button-blue-prelight-rtl.png | Bin 0 -> 1578 bytes
.../Entry/team-combo-button-blue-prelight.png | Bin 0 -> 825 bytes
.../Entry/team-combo-button-blue-pressed-rtl.png | Bin 0 -> 2053 bytes
.../Entry/team-combo-button-blue-pressed.png | Bin 0 -> 1277 bytes
.../gtk-2.0/Entry/team-combo-button-blue-rtl.png | Bin 0 -> 1785 bytes
.../theme/gtk-2.0/Entry/team-combo-button-blue.png | Bin 0 -> 1027 bytes
.../Entry/team-combo-button-red-prelight-rtl.png | Bin 0 -> 825 bytes
.../Entry/team-combo-button-red-prelight.png | Bin 0 -> 1578 bytes
.../Entry/team-combo-button-red-pressed-rtl.png | Bin 0 -> 1277 bytes
.../Entry/team-combo-button-red-pressed.png | Bin 0 -> 2044 bytes
.../gtk-2.0/Entry/team-combo-button-red-rtl.png | Bin 0 -> 1029 bytes
data/theme/gtk-2.0/Entry/team-combo-button-red.png | Bin 0 -> 1777 bytes
.../gtk-2.0/Entry/team-combo-entry-blue-rtl.png | Bin 0 -> 1008 bytes
data/theme/gtk-2.0/Entry/team-combo-entry-blue.png | Bin 0 -> 176 bytes
.../gtk-2.0/Entry/team-combo-entry-red-rtl.png | Bin 0 -> 175 bytes
data/theme/gtk-2.0/Entry/team-combo-entry-red.png | Bin 0 -> 1010 bytes
data/theme/gtk-2.0/gtkrc | 25 +--
data/theme/gtk-2.0/teamcombobox.rc | 263 ++++++++++++++++++++
25 files changed, 322 insertions(+), 41 deletions(-)
---
diff --git a/LongoMatch.Drawing/Canvas.cs b/LongoMatch.Drawing/Canvas.cs
index c3e2fe4..cc75c07 100644
--- a/LongoMatch.Drawing/Canvas.cs
+++ b/LongoMatch.Drawing/Canvas.cs
@@ -52,7 +52,7 @@ namespace LongoMatch.Drawing
Dispose (true);
}
}
-
+
public void Dispose ()
{
Dispose (true);
diff --git a/LongoMatch.GUI/Gui/Component/TeamsComboBox.cs b/LongoMatch.GUI/Gui/Component/TeamsComboBox.cs
index 47c83ea..3e0288f 100644
--- a/LongoMatch.GUI/Gui/Component/TeamsComboBox.cs
+++ b/LongoMatch.GUI/Gui/Component/TeamsComboBox.cs
@@ -33,11 +33,11 @@ namespace LongoMatch.Gui.Component
CellRendererPixbuf pixrender;
CellRendererText texrender;
- public TeamsComboBox (bool leftToRigt = true)
+ public TeamsComboBox ()
{
}
- public void Load (List<TeamTemplate> teams, bool leftToRight)
+ public void Load (List<TeamTemplate> teams)
{
Clear ();
pixrender = new CellRendererPixbuf ();
@@ -45,7 +45,7 @@ namespace LongoMatch.Gui.Component
texrender.Font = StyleConf.NewTeamsFont;
texrender.Alignment = Pango.Alignment.Center;
- if (leftToRight) {
+ if (Direction == TextDirection.Ltr) {
PackStart (pixrender, false);
PackEnd (texrender, true);
} else {
@@ -81,5 +81,23 @@ namespace LongoMatch.Gui.Component
}
}
}
+
+ [System.ComponentModel.Category("LongoMatch")]
+ [System.ComponentModel.ToolboxItem(true)]
+ public class HomeTeamsComboBox: TeamsComboBox
+ {
+ public HomeTeamsComboBox () {
+ Direction = TextDirection.Rtl;
+ }
+ }
+
+ [System.ComponentModel.Category("LongoMatch")]
+ [System.ComponentModel.ToolboxItem(true)]
+ public class AwayTeamsComboBox: TeamsComboBox
+ {
+ public AwayTeamsComboBox () {
+ Direction = TextDirection.Ltr;
+ }
+ }
}
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index 6d0091c..55002ac 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -127,10 +127,10 @@ namespace LongoMatch.Gui.Panel
teamtagger = new TeamTagger (new WidgetWrapper (drawingarea));
teamtagger.SubstitutionMode = true;
teams = Config.TeamTemplatesProvider.Templates;
- hometeamscombobox.Load (teams, false);
+ hometeamscombobox.Load (teams);
hometeamscombobox.Changed += (sender, e) => {
LoadTemplate (hometeamscombobox.ActiveTeam, Team.LOCAL);};
- awayteamscombobox.Load (teams, true);
+ awayteamscombobox.Load (teams);
awayteamscombobox.Changed += (sender, e) => {
LoadTemplate (awayteamscombobox.ActiveTeam, Team.VISITOR);};
hometeamscombobox.Active = 0;
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.NewProjectPanel.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.NewProjectPanel.cs
index ae1c625..5738277 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.NewProjectPanel.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.NewProjectPanel.cs
@@ -40,9 +40,9 @@ namespace LongoMatch.Gui.Panel
private global::Gtk.Label seasonlabel;
private global::Gtk.VBox centerbox;
private global::Gtk.HBox hbox15;
- private global::LongoMatch.Gui.Component.TeamsComboBox hometeamscombobox;
+ private global::LongoMatch.Gui.Component.HomeTeamsComboBox hometeamscombobox;
private global::Gtk.Image vsimage;
- private global::LongoMatch.Gui.Component.TeamsComboBox awayteamscombobox;
+ private global::LongoMatch.Gui.Component.AwayTeamsComboBox awayteamscombobox;
private global::Gtk.Label filelabel;
private global::Gtk.Table filetable;
private global::LongoMatch.Gui.Component.MediaFileChooser mediafilechooser1;
@@ -221,7 +221,6 @@ namespace LongoMatch.Gui.Panel
this.fromfileradiobutton = new global::Gtk.RadioButton
(global::Mono.Unix.Catalog.GetString ("New project using a video file"));
this.fromfileradiobutton.CanFocus = true;
this.fromfileradiobutton.Name = "fromfileradiobutton";
- this.fromfileradiobutton.Active = true;
this.fromfileradiobutton.DrawIndicator = true;
this.fromfileradiobutton.UseUnderline = true;
this.fromfileradiobutton.FocusOnClick = false;
@@ -418,8 +417,7 @@ namespace LongoMatch.Gui.Panel
this.hbox15.HeightRequest = 60;
this.hbox15.Name = "hbox15";
// Container child hbox15.Gtk.Box+BoxChild
- this.hometeamscombobox = new global::LongoMatch.Gui.Component.TeamsComboBox ();
- this.hometeamscombobox.Events = ((global::Gdk.EventMask)(256));
+ this.hometeamscombobox = new global::LongoMatch.Gui.Component.HomeTeamsComboBox ();
this.hometeamscombobox.Name = "hometeamscombobox";
this.hbox15.Add (this.hometeamscombobox);
global::Gtk.Box.BoxChild w53 = ((global::Gtk.Box.BoxChild)(this.hbox15
[this.hometeamscombobox]));
@@ -434,7 +432,7 @@ namespace LongoMatch.Gui.Panel
w54.Expand = false;
w54.Fill = false;
// Container child hbox15.Gtk.Box+BoxChild
- this.awayteamscombobox = new global::LongoMatch.Gui.Component.TeamsComboBox ();
+ this.awayteamscombobox = new global::LongoMatch.Gui.Component.AwayTeamsComboBox ();
this.awayteamscombobox.Name = "awayteamscombobox";
this.hbox15.Add (this.awayteamscombobox);
global::Gtk.Box.BoxChild w55 = ((global::Gtk.Box.BoxChild)(this.hbox15
[this.awayteamscombobox]));
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 598349b..6003216 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -6810,9 +6810,8 @@ You can continue with the current capture, cancel it or save your project.
<property name="MemberName" />
<property name="HeightRequest">60</property>
<child>
- <widget class="LongoMatch.Gui.Component.TeamsComboBox"
id="hometeamscombobox">
+ <widget class="LongoMatch.Gui.Component.HomeTeamsComboBox"
id="hometeamscombobox">
<property name="MemberName" />
- <property name="Events">ButtonPressMask</property>
<property name="IsTextCombo">False</property>
<property name="Items" translatable="yes" />
</widget>
@@ -6834,7 +6833,7 @@ You can continue with the current capture, cancel it or save your project.
</packing>
</child>
<child>
- <widget class="LongoMatch.Gui.Component.TeamsComboBox"
id="awayteamscombobox">
+ <widget class="LongoMatch.Gui.Component.AwayTeamsComboBox"
id="awayteamscombobox">
<property name="MemberName" />
<property name="IsTextCombo">False</property>
<property name="Items" translatable="yes" />
@@ -9934,6 +9933,17 @@ You can continue with the current capture, cancel it or save your project.
</child>
</widget>
<widget class="Gtk.Bin" id="LongoMatch.Gui.Component.CodingWidget" design-size="1341 494">
+ <action-group name="Timeline">
+ <action id="positionMode">
+ <property name="Type">Radio</property>
+ <property name="Label" translatable="yes" />
+ <property name="StockId">gtk-justify-fill</property>
+ <property name="DrawAsRadio">False</property>
+ <property name="Active">False</property>
+ <property name="Value">0</property>
+ <property name="Group">codingmode</property>
+ </action>
+ </action-group>
<action-group name="Default">
<action id="timelineMode">
<property name="Type">Radio</property>
@@ -9970,17 +9980,6 @@ You can continue with the current capture, cancel it or save your project.
<property name="Group">codingmode</property>
</action>
</action-group>
- <action-group name="Timeline">
- <action id="positionMode">
- <property name="Type">Radio</property>
- <property name="Label" translatable="yes" />
- <property name="StockId">gtk-justify-fill</property>
- <property name="DrawAsRadio">False</property>
- <property name="Active">False</property>
- <property name="Value">0</property>
- <property name="Group">codingmode</property>
- </action>
- </action-group>
<property name="MemberName" />
<property name="Visible">False</property>
<child>
diff --git a/LongoMatch.GUI/gtk-gui/objects.xml b/LongoMatch.GUI/gtk-gui/objects.xml
index 54d2f2e..26804ea 100644
--- a/LongoMatch.GUI/gtk-gui/objects.xml
+++ b/LongoMatch.GUI/gtk-gui/objects.xml
@@ -343,4 +343,12 @@
</itemgroup>
</signals>
</object>
+ <object type="LongoMatch.Gui.Component.HomeTeamsComboBox" palette-category="General"
allow-children="false" base-type="LongoMatch.Gui.Component.TeamsComboBox">
+ <itemgroups />
+ <signals />
+ </object>
+ <object type="LongoMatch.Gui.Component.AwayTeamsComboBox" palette-category="General"
allow-children="false" base-type="LongoMatch.Gui.Component.TeamsComboBox">
+ <itemgroups />
+ <signals />
+ </object>
</objects>
\ No newline at end of file
diff --git a/data/theme/gtk-2.0/Arrows/arrow-up-down.png b/data/theme/gtk-2.0/Arrows/arrow-up-down.png
new file mode 100644
index 0000000..fd5d0b7
Binary files /dev/null and b/data/theme/gtk-2.0/Arrows/arrow-up-down.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-blue-prelight-rtl.png
b/data/theme/gtk-2.0/Entry/team-combo-button-blue-prelight-rtl.png
new file mode 100644
index 0000000..5699aee
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-blue-prelight-rtl.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-blue-prelight.png
b/data/theme/gtk-2.0/Entry/team-combo-button-blue-prelight.png
new file mode 100644
index 0000000..8c11e57
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-blue-prelight.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-blue-pressed-rtl.png
b/data/theme/gtk-2.0/Entry/team-combo-button-blue-pressed-rtl.png
new file mode 100644
index 0000000..787f238
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-blue-pressed-rtl.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-blue-pressed.png
b/data/theme/gtk-2.0/Entry/team-combo-button-blue-pressed.png
new file mode 100644
index 0000000..b404934
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-blue-pressed.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-blue-rtl.png
b/data/theme/gtk-2.0/Entry/team-combo-button-blue-rtl.png
new file mode 100644
index 0000000..c95bfa0
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-blue-rtl.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-blue.png
b/data/theme/gtk-2.0/Entry/team-combo-button-blue.png
new file mode 100644
index 0000000..5bb61de
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-blue.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-red-prelight-rtl.png
b/data/theme/gtk-2.0/Entry/team-combo-button-red-prelight-rtl.png
new file mode 100644
index 0000000..9176229
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-red-prelight-rtl.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-red-prelight.png
b/data/theme/gtk-2.0/Entry/team-combo-button-red-prelight.png
new file mode 100644
index 0000000..45c3c7c
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-red-prelight.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-red-pressed-rtl.png
b/data/theme/gtk-2.0/Entry/team-combo-button-red-pressed-rtl.png
new file mode 100644
index 0000000..2284698
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-red-pressed-rtl.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-red-pressed.png
b/data/theme/gtk-2.0/Entry/team-combo-button-red-pressed.png
new file mode 100644
index 0000000..cabd12d
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-red-pressed.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-red-rtl.png
b/data/theme/gtk-2.0/Entry/team-combo-button-red-rtl.png
new file mode 100644
index 0000000..3abbdc2
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-red-rtl.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-button-red.png
b/data/theme/gtk-2.0/Entry/team-combo-button-red.png
new file mode 100644
index 0000000..92a610d
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-button-red.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-entry-blue-rtl.png
b/data/theme/gtk-2.0/Entry/team-combo-entry-blue-rtl.png
new file mode 100644
index 0000000..70b02bf
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-entry-blue-rtl.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-entry-blue.png
b/data/theme/gtk-2.0/Entry/team-combo-entry-blue.png
new file mode 100644
index 0000000..13d7cda
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-entry-blue.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-entry-red-rtl.png
b/data/theme/gtk-2.0/Entry/team-combo-entry-red-rtl.png
new file mode 100644
index 0000000..fb1ac3b
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-entry-red-rtl.png differ
diff --git a/data/theme/gtk-2.0/Entry/team-combo-entry-red.png
b/data/theme/gtk-2.0/Entry/team-combo-entry-red.png
new file mode 100644
index 0000000..7e0e738
Binary files /dev/null and b/data/theme/gtk-2.0/Entry/team-combo-entry-red.png differ
diff --git a/data/theme/gtk-2.0/gtkrc b/data/theme/gtk-2.0/gtkrc
index fc6470e..443e041 100644
--- a/data/theme/gtk-2.0/gtkrc
+++ b/data/theme/gtk-2.0/gtkrc
@@ -84,20 +84,6 @@ style "longomatch-entry" = "longomatch-default" {
}
}
-style "longomatch-teams-combo" = "longomatch-default" {
-
- font = "Ubuntu 16"
- xthickness = 2
- ythickness = 2
-
- base[NORMAL] = @bg_light_color
- bg[NORMAL] = @bg_light_color
-
- fg[NORMAL] = "#ffffff"
- text[NORMAL] = "#ffffff"
- text[INSENSITIVE] = darker (@text_color)
-}
-
style "longomatch-header" {
base[NORMAL] = @bg_light_color
bg[NORMAL] = @bg_light_color
@@ -270,6 +256,8 @@ style "longomatch-combobox" {
include "buttons.rc"
include "notebook.rc"
+include "teamcombobox.rc"
+include "combobox.rc"
class "GtkWidget" style "longomatch-default"
@@ -283,6 +271,14 @@ widget_class "*.GtkMenuBar.*" style "longomatch-menuitem"
widget_class "*<GtkComboBox>" style "longomatch-combobox"
#widget_class "*<GtkComboBox>*<GtkButton>" style "longomatch-combobox-button"
#widget_class "*<GtkComboBox>*<GtkEntry>" style "longomatch-combobox-entry"
+#widget_class "*<GtkComboBoxEntry>*<GtkEntry>" style "longomatch-combobox-entry"
+#widget_class "*<GtkComboBoxEntry>*<GtkButton>" style "longomatch-combobox-msbutton"
+widget_class "*HomeTeamsComboBox*" style "longomatch-home-teams-combobox"
+widget_class "*HomeTeamsComboBox*<GtkButton>" style "longomatch-home-teams-combobox-button"
+widget_class "*AwayTeamsComboBox*" style "longomatch-away-teams-combobox"
+widget_class "*AwayTeamsComboBox*<GtkButton>" style "longomatch-away-teams-combobox-button"
+widget_class "*TeamsComboBox*<GtkArrow>" style "longomatch-teams-combobox-arrow"
+
class "GtkNotebook" style "longomatch-notebook"
@@ -295,7 +291,6 @@ widget "*roundedbutton*" style "longomatch-rounded-button"
widget "*rectbutton*" style "longomatch-rect-button"
widget "*headereventbox" style "longomatch-header"
widget "*editortreeview" style "longomatch-editor-treeview"
-widget "*teamscombobox*" style "longomatch-teams-combo"
widget "*mediafilechooser*entry*" style "longomatch-filechooser-entry"
widget "*datepicker*button*" style "longomatch-filechooser-button"
widget "*datepicker*entry*" style "longomatch-filechooser-entry"
diff --git a/data/theme/gtk-2.0/teamcombobox.rc b/data/theme/gtk-2.0/teamcombobox.rc
new file mode 100644
index 0000000..1d33281
--- /dev/null
+++ b/data/theme/gtk-2.0/teamcombobox.rc
@@ -0,0 +1,263 @@
+style "longomatch-teams-combobox" = "longomatch-default" {
+ xthickness = 2
+ ythickness = 2
+
+ base[NORMAL] = @bg_light_color
+ bg[NORMAL] = @bg_light_color
+
+ fg[NORMAL] = @text_color
+ text[NORMAL] = @text_color
+ text[INSENSITIVE] = darker (@text_color)
+}
+
+style "longomatch-teams-combobox-arrow"
+{
+ # Arrows
+
+ engine "pixmap"
+ {
+ image
+ {
+ function = ARROW
+ overlay_file = "Arrows/arrow-up-down.png"
+ overlay_border = { 0, 0, 0, 0 }
+ overlay_stretch = FALSE
+ arrow_direction = DOWN
+ }
+ }
+}
+
+
+style "longomatch-home-teams-combobox-button"
+{
+ xthickness = 16
+ ythickness = 2
+ fg[ACTIVE] = @text_color
+
+ engine "pixmap"
+ {
+
+ # LTR version
+ image
+ {
+ function = BOX
+ state = NORMAL
+ file = "Entry/team-combo-button-blue.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+ image
+ {
+ function = BOX
+ state = PRELIGHT
+ file = "Entry/team-combo-button-blue-prelight.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+ image
+ {
+ function = BOX
+ state = INSENSITIVE
+ file = "Entry/team-combo-button-blue.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+ image
+ {
+ function = BOX
+ state = ACTIVE
+ file = "Entry/team-combo-button-blue-pressed.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+
+ # RTL version
+ image
+ {
+ function = BOX
+ state = NORMAL
+ file = "Entry/team-combo-button-blue-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ image
+ {
+ function = BOX
+ state = PRELIGHT
+ file = "Entry/team-combo-button-blue-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ image
+ {
+ function = BOX
+ state = INSENSITIVE
+ file = "Entry/team-combo-button-blue-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ image
+ {
+ function = BOX
+ state = ACTIVE
+ file = "Entry/team-combo-button-blue-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ }
+}
+
+style "longomatch-home-teams-combobox" = "longomatch-teams-combobox"
+{
+ xthickness = 3
+ ythickness = 4
+
+ engine "pixmap"
+ {
+ # LTR version
+ image
+ {
+ function = SHADOW
+ shadow = IN
+ file = "Entry/team-combo-entry-blue.png"
+ border = { 4, 4, 4, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+ # RTL version
+ image
+ {
+ function = SHADOW
+ shadow = IN
+ file = "Entry/team-combo-entry-blue-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ }
+}
+
+style "longomatch-away-teams-combobox-button"
+{
+ xthickness = 16
+ ythickness = 2
+ fg[ACTIVE] = @text_color
+
+ engine "pixmap"
+ {
+
+ # LTR version
+ image
+ {
+ function = BOX
+ state = NORMAL
+ file = "Entry/team-combo-button-red.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+ image
+ {
+ function = BOX
+ state = PRELIGHT
+ file = "Entry/team-combo-button-red-prelight.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+ image
+ {
+ function = BOX
+ state = INSENSITIVE
+ file = "Entry/team-combo-button-red.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+ image
+ {
+ function = BOX
+ state = ACTIVE
+ file = "Entry/team-combo-button-red-pressed.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+
+ # RTL version
+ image
+ {
+ function = BOX
+ state = NORMAL
+ file = "Entry/team-combo-button-red-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ image
+ {
+ function = BOX
+ state = PRELIGHT
+ file = "Entry/team-combo-button-red-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ image
+ {
+ function = BOX
+ state = INSENSITIVE
+ file = "Entry/team-combo-button-red-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ image
+ {
+ function = BOX
+ state = ACTIVE
+ file = "Entry/team-combo-button-red-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ }
+}
+
+style "longomatch-away-teams-combobox" = "longomatch-teams-combobox"
+{
+ xthickness = 3
+ ythickness = 4
+
+ engine "pixmap"
+ {
+ # LTR version
+ image
+ {
+ function = SHADOW
+ shadow = IN
+ file = "Entry/team-combo-entry-red.png"
+ border = { 4, 4, 4, 4 }
+ stretch = TRUE
+ direction = LTR
+ }
+ # RTL version
+ image
+ {
+ function = SHADOW
+ shadow = IN
+ file = "Entry/team-combo-entry-red-rtl.png"
+ border = { 4, 4, 5, 4 }
+ stretch = TRUE
+ direction = RTL
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]