[gnome-taquin] More usual style for the start-screen.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-taquin] More usual style for the start-screen.
- Date: Sat, 27 Dec 2014 05:05:51 +0000 (UTC)
commit 61545a7ccc34f86c4270126be2327e9c6731616f
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 27 06:04:00 2014 +0100
More usual style for the start-screen.
data/taquin.css | 6 +++---
data/taquin.ui | 13 ++++++-------
src/taquin-main.vala | 10 +---------
3 files changed, 10 insertions(+), 19 deletions(-)
---
diff --git a/data/taquin.css b/data/taquin.css
index 01bfb1e..153be83 100644
--- a/data/taquin.css
+++ b/data/taquin.css
@@ -3,12 +3,12 @@ GtkApplicationWindow GtkRadioButton {
-GtkCheckButton-indicator-size:0;
-gtk-icon-source:none;
padding:15px 0 0 0;
+}
+GtkApplicationWindow GtkMenuButton,
+GtkApplicationWindow GtkRadioButton {
border-radius:15px;
outline-radius:13px;
}
-GtkApplicationWindow GtkMenuButton {
- outline-radius:15px;
-}
GtkApplicationWindow GtkMenuButton:checked,
GtkApplicationWindow GtkMenuButton:prelight {
color:#2e3436; /* gtk-contained.css’ theme_fg_color */
diff --git a/data/taquin.ui b/data/taquin.ui
index a5fe26e..d9343fe 100644
--- a/data/taquin.ui
+++ b/data/taquin.ui
@@ -35,7 +35,7 @@
</section>
</menu>
<object class="GtkApplicationWindow" id="taquin-window">
- <!-- <initial-focus name="view"> -->
+ <!-- <initial-focus name="view"/> -->
<property name="title" translatable="yes">Taquin</property>
<child type="titlebar">
<object class="GtkHeaderBar" id="headerbar">
@@ -69,9 +69,7 @@
<property name="tooltip-text" translatable="yes">Go back to the current game</property>
<property name="use-underline">True</property>
<property name="action-name">win.back</property>
- <style>
- <class name="image-button"/>
- </style>
+ <style><class name="image-button"/></style>
<child>
<object class="GtkImage">
<property name="icon-name">go-previous-symbolic</property>
@@ -96,7 +94,7 @@
<property name="margin">25</property>
<property name="width-request">350</property>
<property name="height-request">350</property>
- <property name="spacing">4</property>
+ <property name="spacing">6</property>
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
@@ -173,13 +171,14 @@
<property name="orientation">horizontal</property>
<property name="visible">True</property>
<property name="homogeneous">True</property>
+ <property name="spacing">6</property>
<child>
<object class="GtkMenuButton" id="size-button">
<property name="visible">True</property>
<property name="use-underline">True</property>
<property name="menu-model">size-menu</property>
<property name="height-request">60</property>
- <property name="relief">none</property>
+ <style><class name="flat"/></style>
</object>
<packing>
<property name="expand">True</property>
@@ -192,7 +191,7 @@
<property name="use-underline">True</property>
<property name="menu-model">theme-menu</property>
<property name="height-request">60</property>
- <property name="relief">none</property>
+ <style><class name="flat"/></style>
</object>
<packing>
<property name="expand">True</property>
diff --git a/src/taquin-main.vala b/src/taquin-main.vala
index 9b513b0..7b0675a 100644
--- a/src/taquin-main.vala
+++ b/src/taquin-main.vala
@@ -184,10 +184,6 @@ public class Taquin : Gtk.Application
size_changed = false;
});
update_size_button_label (settings.get_int ("size"));
- var context = size_button.get_style_context ();
- context.remove_class ("flat");
- context.remove_class ("text-button");
- context.remove_class ("button");
theme_button = builder.get_object ("theme-button") as MenuButton;
settings.changed["theme"].connect (() => {
@@ -196,10 +192,6 @@ public class Taquin : Gtk.Application
theme_changed = false;
});
update_theme (settings.get_string ("theme"));
- context = theme_button.get_style_context ();
- context.remove_class ("flat");
- context.remove_class ("text-button");
- context.remove_class ("button");
settings.changed["type"].connect (() => {
if (!type_changed)
@@ -347,7 +339,7 @@ public class Taquin : Gtk.Application
"Alvesgaspar (Wikimedia)",
"Mark J. Sebastian (Flickr)",
"Mueller-rech.muenchen (Wikimedia)",
- "(see COPYING.themes for informations)",
+ _("(see COPYING.themes for informations)"),
null };
string[] documenters = { "Arnaud Bonatti", null };
show_about_dialog (window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]