[chronojump] menu buttons also in yellow when active/prelight
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] menu buttons also in yellow when active/prelight
- Date: Sat, 21 Mar 2020 12:41:51 +0000 (UTC)
commit 5df6f332d347e05d6ab245a925f9c84a0783dbeb
Author: Xavier de Blas <xaviblas gmail com>
Date: Sat Mar 21 13:41:05 2020 +0100
menu buttons also in yellow when active/prelight
glade/app1.glade | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++--
src/gui/app1/menu.cs | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+), 2 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index e98a4b52..ce8596e9 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1557,11 +1557,23 @@
</child>
<child>
<widget class="GtkButton"
id="button_menu_preferences">
- <property name="label"
translatable="yes">Preferences</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked"
handler="on_preferences_activate" swapped="no"/>
+ <child>
+ <widget class="GtkEventBox"
id="eventbox_button_menu_preferences">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkLabel" id="label23">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label"
translatable="yes">Preferences</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -1847,12 +1859,24 @@
</child>
<child>
<widget class="GtkButton" id="button_menu_exit">
- <property name="label"
translatable="yes">Exit</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked"
handler="on_quit1_activate" swapped="no"/>
<accelerator key="q" signal="activate"
modifiers="GDK_CONTROL_MASK"/>
+ <child>
+ <widget class="GtkEventBox"
id="eventbox_button_menu_exit">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkLabel" id="label24">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label"
translatable="yes">Exit</property>
+ </widget>
+ </child>
+ </widget>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -24309,6 +24333,18 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -34092,6 +34128,18 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index 13032520..ce5ceac4 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -46,8 +46,10 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Viewport viewport_menu;
[Widget] Gtk.Viewport viewport_persons;
[Widget] Gtk.EventBox eventbox_check_menu_session;
+ [Widget] Gtk.EventBox eventbox_button_menu_preferences;
[Widget] Gtk.EventBox eventbox_check_menu_encoder;
[Widget] Gtk.EventBox eventbox_check_menu_help;
+ [Widget] Gtk.EventBox eventbox_button_menu_exit;
[Widget] Gtk.CheckButton check_menu_session;
[Widget] Gtk.CheckButton check_menu_encoder;
[Widget] Gtk.CheckButton check_menu_help;
@@ -76,8 +78,10 @@ public partial class ChronoJumpWindow
//UtilGtk.ViewportColor(viewport_persons, UtilGtk.BLUE_CLEAR2);
UtilGtk.EventBoxColorBackgroundActive (eventbox_check_menu_session, UtilGtk.YELLOW);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_preferences, UtilGtk.YELLOW);
UtilGtk.EventBoxColorBackgroundActive (eventbox_check_menu_encoder, UtilGtk.YELLOW);
UtilGtk.EventBoxColorBackgroundActive (eventbox_check_menu_help, UtilGtk.YELLOW);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_exit, UtilGtk.YELLOW);
}
private void menuShowVerticalArrow (bool selected, Gtk.Arrow a_up, Gtk.Arrow a_down)
@@ -157,3 +161,39 @@ public partial class ChronoJumpWindow
}
}
+
+
+/*
+public class ColorGuiManage
+{
+ List<ColorGui> colorGui_l;
+
+ public ColorGuiManage()
+ {
+ List<ColorGui> colorGui_l = new List<colorGui>();
+ List.Add(new ColorGui("Chronojump Yellow", "0xff,0xcc,0x01"));
+ List.Add(new ColorGui("Chronojump Blue", "0x0e,0x1e,0x46"));
+ }
+
+ public Gdk.Color GetColor(string english)
+ {
+ }
+}
+
+public class ColorGui
+{
+ private string colorEnglish;
+ private string colorHTML;
+
+ public ColorGui(string english, string html)
+ {
+ this.colorEnglish = english;
+ this.colorHTML = html;
+ }
+
+ public Gdk.Color ColorHTML
+ {
+ get { return new Gdk.Color(colorHTML; }
+ }
+}
+*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]