[gnome-calculator] Adds color to buttons
- From: Arth Patel <arthpatel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Adds color to buttons
- Date: Sat, 25 Oct 2014 20:48:25 +0000 (UTC)
commit 2bb2d7136200657fc709af8c304a8cf33d92a1b7
Author: elitalobo <loboelita gmail com>
Date: Mon Aug 18 12:34:50 2014 +0530
Adds color to buttons
Signed-off-by: PioneerAxon <arth svnit gmail com>
src/math-buttons.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/math-buttons.vala b/src/math-buttons.vala
index eae87db..3c49726 100644
--- a/src/math-buttons.vala
+++ b/src/math-buttons.vala
@@ -620,6 +620,11 @@ public class MathButtons : Gtk.Box
var button = builder.get_object (widget_name) as Gtk.Button;
if (button == null)
return;
+ if (name == "result") /* Adds blue color to result button */
+ button.get_style_context ().add_class ("suggested-action");
+
+ if (name == "clear") /* Adds red color to clear button */
+ button.get_style_context ().add_class ("destructive-action");
if (data != null)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]