[gnome-mines] Remove colors from new game screen
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines] Remove colors from new game screen
- Date: Sat, 12 Oct 2013 02:15:08 +0000 (UTC)
commit 4fb5e8c3b4ddeee7d47563e9697fcbe31b81ad34
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Oct 11 21:03:11 2013 -0500
Remove colors from new game screen
This looks a little better, but this screen probably needs more design
love.
src/gnome-mines.vala | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-mines.vala b/src/gnome-mines.vala
index 86824a5..4d79a30 100644
--- a/src/gnome-mines.vala
+++ b/src/gnome-mines.vala
@@ -252,7 +252,7 @@ public class Mines : Gtk.Application
new_game_grid.attach (button, 0, 0, 1, 1);
var label = new Gtk.Label (null);
- label.set_markup (make_minefield_description ("#0000ff", 8, 8, 10));
+ label.set_markup (make_minefield_description (8, 8, 10));
label.set_justify (Gtk.Justification.CENTER);
button.add (label);
@@ -261,7 +261,7 @@ public class Mines : Gtk.Application
new_game_grid.attach (button, 1, 0, 1, 1);
label = new Gtk.Label (null);
- label.set_markup (make_minefield_description ("#00a000", 16, 16, 40));
+ label.set_markup (make_minefield_description (16, 16, 40));
label.set_justify (Gtk.Justification.CENTER);
button.add (label);
@@ -270,7 +270,7 @@ public class Mines : Gtk.Application
new_game_grid.attach (button, 0, 1, 1, 1);
label = new Gtk.Label (null);
- label.set_markup (make_minefield_description ("#ff0000", 30, 16, 99));
+ label.set_markup (make_minefield_description (30, 16, 99));
label.set_justify (Gtk.Justification.CENTER);
button.add (label);
@@ -279,7 +279,7 @@ public class Mines : Gtk.Application
new_game_grid.attach (button, 1, 1, 1, 1);
label = new Gtk.Label (null);
- label.set_markup_with_mnemonic ("<span fgcolor='#00007f'><span size='xx-large'
weight='heavy'>?</span>\n" + dpgettext2 (null, "board size", _("Custom")) + "</span>");
+ label.set_markup_with_mnemonic ("<span size='xx-large' weight='heavy'>?</span>\n" + dpgettext2
(null, "board size", _("Custom")));
label.set_justify (Gtk.Justification.CENTER);
button.add (label);
@@ -385,11 +385,11 @@ public class Mines : Gtk.Application
return false;
}
- private string make_minefield_description (string color, int width, int height, int n_mines)
+ private string make_minefield_description (int width, int height, int n_mines)
{
var size_label = "%d × %d".printf (width, height);
var mines_label = ngettext ("<b>%d</b> mine", "<b>%d</b> mines", n_mines).printf (n_mines);
- return "<span fgcolor='%s'><span size='x-large' weight='ultrabold'>%s</span>\n%s</span>".printf
(color, size_label, mines_label);
+ return "<span size='x-large' weight='ultrabold'>%s</span>\n%s".printf (size_label, mines_label);
}
public void start ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]