[gnome-calculator] Added useful extra CSS classes. Bug 767394.
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Added useful extra CSS classes. Bug 767394.
- Date: Tue, 11 Oct 2016 07:00:34 +0000 (UTC)
commit e585d09f9f47ff3ce0b248cb8f4fc9fec309c12e
Author: Niels De Graef <nielsdegraef gmail com>
Date: Tue Oct 4 13:19:55 2016 +0200
Added useful extra CSS classes. Bug 767394.
Signed-off-by: Niels De Graef <nielsdegraef gmail com>
data/buttons-advanced.ui | 36 ++++++++++++++++++++++++++++++
data/buttons-basic.ui | 33 +++++++++++++++++++++++++++
data/buttons-financial.ui | 33 +++++++++++++++++++++++++++
data/buttons-programming.ui | 51 +++++++++++++++++++++++++++++++++++++++++++
data/calculator.css | 13 +++++++++-
5 files changed, 164 insertions(+), 2 deletions(-)
---
diff --git a/data/buttons-advanced.ui b/data/buttons-advanced.ui
index eaf1b2a..ce6aeff 100644
--- a/data/buttons-advanced.ui
+++ b/data/buttons-advanced.ui
@@ -118,6 +118,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">2</property>
@@ -131,6 +134,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">1</property>
@@ -145,6 +151,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -159,6 +168,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -173,6 +185,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -187,6 +202,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -215,6 +233,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">3</property>
@@ -229,6 +250,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -244,6 +268,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">4</property>
@@ -258,6 +285,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="numeric-point-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -272,6 +302,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -827,6 +860,9 @@
</child>
</object>
</child>
+ <style>
+ <class name="fx-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">9</property>
diff --git a/data/buttons-basic.ui b/data/buttons-basic.ui
index e6680d1..570cd18 100644
--- a/data/buttons-basic.ui
+++ b/data/buttons-basic.ui
@@ -16,6 +16,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">1</property>
@@ -29,6 +32,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">0</property>
@@ -43,6 +49,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -56,6 +65,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -69,6 +81,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -83,6 +98,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -110,6 +128,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -124,6 +145,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -139,6 +163,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">3</property>
@@ -153,6 +180,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="numeric-point-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -181,6 +211,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
diff --git a/data/buttons-financial.ui b/data/buttons-financial.ui
index 7f2509c..ae31d5b 100644
--- a/data/buttons-financial.ui
+++ b/data/buttons-financial.ui
@@ -1940,6 +1940,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">1</property>
@@ -1955,6 +1958,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -1970,6 +1976,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -1984,6 +1993,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -1998,6 +2010,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -2013,6 +2028,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -2042,6 +2060,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="top_attach">2</property>
@@ -2057,6 +2078,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -2073,6 +2097,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -2088,6 +2115,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="numeric-point-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -2118,6 +2148,9 @@
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
diff --git a/data/buttons-programming.ui b/data/buttons-programming.ui
index 208902d..73d9613 100644
--- a/data/buttons-programming.ui
+++ b/data/buttons-programming.ui
@@ -1645,6 +1645,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -1737,6 +1740,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -1751,6 +1757,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -1765,6 +1774,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">3</property>
@@ -1779,6 +1791,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -1793,6 +1808,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -1807,6 +1825,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -1821,6 +1842,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">3</property>
@@ -1835,6 +1859,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -1849,6 +1876,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -1863,6 +1893,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -1877,6 +1910,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">3</property>
@@ -1891,6 +1927,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">0</property>
@@ -1905,6 +1944,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">1</property>
@@ -1919,6 +1961,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
@@ -1933,6 +1978,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="number-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">3</property>
@@ -1994,6 +2042,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
+ <style>
+ <class name="numeric-point-button"/>
+ </style>
</object>
<packing>
<property name="left_attach">2</property>
diff --git a/data/calculator.css b/data/calculator.css
index f137247..dc2147f 100644
--- a/data/calculator.css
+++ b/data/calculator.css
@@ -1,10 +1,19 @@
.history-view {
- border-width: 0 0 1px 0;
+ border-width: 0 0 1px 0;
}
-.math-buttons {
+.math-buttons button {
}
+ .math-buttons .number-button {
+ }
+
+ .math-buttons .numeric-point-button {
+ }
+
+ .math-buttons .fx-button {
+ }
+
.bit-marker-label {
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]