[gnome-calculator] Added style classes to buttons (see !76)



commit ca9428ece56f4249582b835af361b53e8d1f4880
Author: dave90dave <dave hulst gmail com>
Date:   Fri Feb 5 19:48:15 2021 +0200

    Added style classes to buttons (see !76)

 src/ui/buttons-advanced.ui    | 105 ++++++++++++++++++++++++++++++++++++++++++
 src/ui/buttons-basic.ui       |  59 ++++++++++++++++++++++--
 src/ui/buttons-financial.ui   |  71 +++++++++++++++++++++++++++-
 src/ui/buttons-programming.ui |  96 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 327 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/buttons-advanced.ui b/src/ui/buttons-advanced.ui
index 8f1d0c33..e2c9dccc 100644
--- a/src/ui/buttons-advanced.ui
+++ b/src/ui/buttons-advanced.ui
@@ -30,6 +30,9 @@
             <property name="justify">center</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">6</property>
@@ -51,6 +54,9 @@
             <property name="AtkObject::accessible-name" translatable="yes" comments="Accessible name for the 
factorize button">Factorize</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -78,6 +84,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">7</property>
@@ -95,6 +104,9 @@
         <property name="tooltip_text" translatable="yes">Imaginary Component</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'Im '</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">7</property>
@@ -117,6 +129,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
@@ -247,6 +262,9 @@
         <property name="tooltip_text" translatable="yes">Divide [/]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'÷'</property>
+        <style>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -359,6 +377,9 @@
         <property name="tooltip_text" translatable="yes">Multiply [*]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'×'</property>
+        <style>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -375,6 +396,9 @@
         <property name="focus_on_click">False</property>
         <property name="tooltip_text" translatable="yes">Subtract [-]</property>
         <property name="action_name">cal.subtract</property>
+        <style>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -392,6 +416,9 @@
         <property name="tooltip_text" translatable="yes">Add [+]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'+'</property>
+        <style>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -427,6 +454,9 @@
         <property name="tooltip_text" translatable="yes">Clear Display [Escape]</property>
         <property name="action_name">cal.clear</property>
         <property name="label">C</property>
+        <style>
+          <class name="clear-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -453,6 +483,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">0</property>
@@ -480,6 +513,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">1</property>
@@ -523,6 +559,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">2</property>
@@ -539,6 +578,9 @@
         <property name="tooltip_text" translatable="yes">Modulus divide</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">' mod '</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -555,6 +597,9 @@
         <property name="tooltip_text" translatable="yes">Start Group [(]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'('</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
@@ -572,6 +617,9 @@
         <property name="tooltip_text" translatable="yes">End Group [)]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">')'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -585,6 +633,9 @@
         <property name="receives_default">True</property>
         <property name="focus_on_click">False</property>
         <property name="tooltip_text" translatable="yes">Memory</property>
+        <style>
+              <class name="function-button"/>
+        </style>
         <child internal-child="accessible">
           <object class="AtkObject" id="calc_memory_button-atkobject">
             <property name="AtkObject::accessible-name" translatable="yes" comments="Accessible name for the 
memory button">Memory</property>
@@ -646,6 +697,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">8</property>
@@ -663,6 +717,9 @@
         <property name="tooltip_text" translatable="yes">Real Component</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'Re '</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">6</property>
@@ -680,6 +737,9 @@
         <property name="tooltip_text" translatable="yes">Complex conjugate</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'conj '</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">8</property>
@@ -697,6 +757,9 @@
         <property name="tooltip_text" translatable="yes">Complex argument</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'Arg '</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">9</property>
@@ -714,6 +777,9 @@
         <property name="tooltip_text" translatable="yes">Natural Logarithm</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'ln '</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">9</property>
@@ -730,6 +796,9 @@
         <property name="tooltip_text" translatable="yes">Logarithm</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'log '</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">8</property>
@@ -757,6 +826,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">6</property>
@@ -774,6 +846,9 @@
         <property name="tooltip_text" translatable="yes">Root [Ctrl+R]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'√'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">7</property>
@@ -795,6 +870,9 @@
             <property name="icon-name">edit-undo-symbolic</property>
           </object>
         </child>
+        <style>
+          <class name="undo-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
@@ -817,6 +895,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
@@ -840,6 +921,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -863,6 +947,9 @@
             <property name="tooltip_text" translatable="yes">Cosine</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'cos '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">0</property>
@@ -878,6 +965,9 @@
             <property name="tooltip_text" translatable="yes">Sine</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'sin '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">1</property>
@@ -893,6 +983,9 @@
             <property name="tooltip_text" translatable="yes">Tangent</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'tan '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">2</property>
@@ -908,6 +1001,9 @@
             <property name="tooltip_text" translatable="yes">Hyperbolic Sine</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'sinh '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">0</property>
@@ -924,6 +1020,9 @@
             <property name="tooltip_text" translatable="yes">Hyperbolic Cosine</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'cosh '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">1</property>
@@ -940,6 +1039,9 @@
             <property name="tooltip_text" translatable="yes">Hyperbolic Tangent</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'tanh '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">2</property>
@@ -973,6 +1075,9 @@
               <object class="GtkLabel" id="label5">
                 <property name="visible">True</property>
                 <property name="label">f(x)</property>
+                <style>
+                  <class name="function-button"/>
+                </style>
               </object>
               <packing>
                 <property name="position">0</property>
diff --git a/src/ui/buttons-basic.ui b/src/ui/buttons-basic.ui
index 02ac4922..f95ee915 100644
--- a/src/ui/buttons-basic.ui
+++ b/src/ui/buttons-basic.ui
@@ -19,6 +19,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">4</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -37,6 +38,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">7</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -56,6 +58,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">8</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -74,6 +77,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">9</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -92,6 +96,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">5</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -111,6 +116,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">6</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -130,6 +136,10 @@
         <property name="tooltip_text" translatable="yes">Divide [/]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'÷'</property>
+        <style>
+          <class name="simple-operator-button"/>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -146,6 +156,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">1</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -165,6 +176,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">2</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -185,6 +197,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">0</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -203,6 +216,7 @@
         <property name="focus_on_click">False</property>
         <property name="action_name">cal.insert-numeric-point</property>
         <style>
+          <class name="simple-numeric-point-button"/>
           <class name="numeric-point-button"/>
         </style>
       </object>
@@ -222,6 +236,10 @@
         <property name="tooltip_text" translatable="yes">Percentage [%]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'%'</property>
+        <style>
+          <class name="simple-procent-button"/>
+          <class name="procent-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">2</property>
@@ -239,6 +257,7 @@
         <property name="action_name">cal.insert-digit</property>
         <property name="action_target">3</property>
         <style>
+          <class name="simple-number-button"/>
           <class name="number-button"/>
         </style>
       </object>
@@ -258,6 +277,10 @@
         <property name="tooltip_text" translatable="yes">Multiply [*]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'×'</property>
+        <style>
+          <class name="simple-operator-button"/>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -274,6 +297,10 @@
         <property name="focus_on_click">False</property>
         <property name="tooltip_text" translatable="yes">Subtract [-]</property>
         <property name="action_name">cal.subtract</property>
+        <style>
+          <class name="simple-operator-button"/>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -291,6 +318,10 @@
         <property name="tooltip_text" translatable="yes">Add [+]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'+'</property>
+        <style>
+          <class name="simple-operator-button"/>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -309,6 +340,7 @@
         <property name="action_name">cal.solve</property>
         <style>
           <class name="suggested-action"/>
+          <class name="simple-suggested-action"/>
         </style>
       </object>
       <packing>
@@ -328,6 +360,10 @@
         <property name="tooltip_text" translatable="yes">Start Group [(]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'('</property>
+        <style>
+          <class name="simple-function-button"/>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
@@ -345,6 +381,10 @@
         <property name="tooltip_text" translatable="yes">End Group [)]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">')'</property>
+        <style>
+          <class name="simple-function-button"/>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -361,6 +401,10 @@
         <property name="tooltip_text" translatable="yes">Clear Display [Escape]</property>
         <property name="action_name">cal.clear</property>
         <property name="label">C</property>
+        <style>
+          <class name="simple-clear-button"/>
+          <class name="clear-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -377,6 +421,10 @@
         <property name="tooltip_text" translatable="yes">Square root [Ctrl+R]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'√'</property>
+        <style>
+          <class name="simple-function-button"/>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -403,6 +451,10 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="simple-function-button"/>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
@@ -424,13 +476,14 @@
             <property name="icon-name">edit-undo-symbolic</property>
           </object>
         </child>
+        <style>
+          <class name="undo-button"/>
+          <class name="simple-undo-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
       </packing>
     </child>
-    <style>
-      <class name="math-buttons"/>
-    </style>
   </object>
 </interface>
diff --git a/src/ui/buttons-financial.ui b/src/ui/buttons-financial.ui
index fc276ee9..d8f276d9 100644
--- a/src/ui/buttons-financial.ui
+++ b/src/ui/buttons-financial.ui
@@ -1852,6 +1852,9 @@
         <property name="receives_default">True</property>
         <property name="focus_on_click">False</property>
         <property name="tooltip_text" translatable="yes">Memory</property>
+        <style>
+              <class name="function-button"/>
+        </style>
         <child internal-child="accessible">
           <object class="AtkObject" id="calc_memory_button-atkobject">
             <property name="AtkObject::accessible-name" translatable="yes" comments="Accessible name for the 
memory value button">Memory</property>
@@ -1908,6 +1911,9 @@
         <property name="tooltip_text" translatable="yes">Logarithm</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'log '</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">6</property>
@@ -2037,6 +2043,9 @@
         <property name="tooltip_text" translatable="yes">Divide [/]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'÷'</property>
+        <style>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -2129,6 +2138,9 @@
         <property name="tooltip_text" translatable="yes">Percentage [%]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'%'</property>
+        <style>
+          <class name="procent-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">2</property>
@@ -2165,6 +2177,9 @@
         <property name="tooltip_text" translatable="yes">Multiply [*]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'×'</property>
+        <style>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -2181,6 +2196,9 @@
         <property name="focus_on_click">False</property>
         <property name="tooltip_text" translatable="yes">Subtract [-]</property>
         <property name="action_name">cal.subtract</property>
+        <style>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -2198,6 +2216,9 @@
         <property name="tooltip_text" translatable="yes">Add [+]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'+'</property>
+        <style>
+          <class name="operator-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">3</property>
@@ -2235,6 +2256,9 @@
         <property name="tooltip_text" translatable="yes">Start Group [(]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'('</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
@@ -2252,6 +2276,9 @@
         <property name="tooltip_text" translatable="yes">End Group [)]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">')'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -2268,6 +2295,9 @@
         <property name="tooltip_text" translatable="yes">Clear Display [Escape]</property>
         <property name="action_name">cal.clear</property>
         <property name="label">C</property>
+        <style>
+          <class name="clear-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">5</property>
@@ -2284,6 +2314,9 @@
         <property name="tooltip_text" translatable="yes">Compounding Term</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'ctrm_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">7</property>
@@ -2300,6 +2333,9 @@
         <property name="tooltip_text" translatable="yes">Double Declining Depreciation</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'ddb_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">8</property>
@@ -2316,6 +2352,9 @@
         <property name="tooltip_text" translatable="yes">Future Value</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'fv_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">9</property>
@@ -2332,6 +2371,9 @@
         <property name="tooltip_text" translatable="yes">Financial Term</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'term_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">8</property>
@@ -2349,6 +2391,9 @@
         <property name="tooltip_text" translatable="yes">Sum of the Years Digits Depreciation</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'syd_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">9</property>
@@ -2366,6 +2411,9 @@
         <property name="tooltip_text" translatable="yes">Straight Line Depreciation</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'sln_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">8</property>
@@ -2374,7 +2422,7 @@
     </child>
     <child>
       <object class="GtkButton" id="calc_finc_periodic_interest_rate_button">
-        <property name="label" translatable="yes" comments="Calculates the periodic interest necessary to 
increase an investment of present value pv to a future value of fv, over the number of compounding periods in 
term. See also: http://en.wikipedia.org/wiki/Interest                                      ">Rate</property>
+        <property name="label" translatable="yes" comments="Calculates the periodic interest necessary to 
increase an investment of present value pv to a future value of fv, over the number of compounding periods in 
term. See also: http://en.wikipedia.org/wiki/Interest";>Rate</property>
         <property name="visible">True</property>
         <property name="can_focus">True</property>
         <property name="receives_default">True</property>
@@ -2383,6 +2431,9 @@
         <property name="tooltip_text" translatable="yes">Periodic Interest Rate</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'rate_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">7</property>
@@ -2400,6 +2451,9 @@
         <property name="tooltip_text" translatable="yes">Present Value</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'pv_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">9</property>
@@ -2417,6 +2471,9 @@
         <property name="tooltip_text" translatable="yes">Periodic Payment</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'pmt_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">8</property>
@@ -2434,6 +2491,9 @@
         <property name="tooltip_text" translatable="yes">Gross Profit Margin</property>
         <property name="action_name">cal.launch-finc-dialog</property>
         <property name="action_target">'gpm_dialog'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">7</property>
@@ -2456,6 +2516,9 @@
             <property name="icon-name">edit-undo-symbolic</property>
           </object>
         </child>
+        <style>
+          <class name="undo-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">4</property>
@@ -2483,6 +2546,9 @@
             <property name="use_markup">True</property>
           </object>
         </child>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">6</property>
@@ -2499,6 +2565,9 @@
         <property name="tooltip_text" translatable="yes">Root [Ctrl+R]</property>
         <property name="action_name">cal.insert-general</property>
         <property name="action_target">'√'</property>
+        <style>
+          <class name="function-button"/>
+        </style>
       </object>
       <packing>
         <property name="left_attach">6</property>
diff --git a/src/ui/buttons-programming.ui b/src/ui/buttons-programming.ui
index ef5c5c35..eb31dcc5 100644
--- a/src/ui/buttons-programming.ui
+++ b/src/ui/buttons-programming.ui
@@ -1310,6 +1310,9 @@
             <property name="tooltip_text" translatable="yes">Root [Ctrl+R]</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'√'</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">7</property>
@@ -1326,6 +1329,9 @@
             <property name="tooltip_text" translatable="yes">Logarithm</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'log '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">7</property>
@@ -1347,6 +1353,9 @@
                 <property name="AtkObject::accessible-name" translatable="yes" comments="Accessible name for 
the factorize button">Factorize</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">7</property>
@@ -1364,6 +1373,9 @@
             <property name="tooltip_text" translatable="yes">Binary Logarithm</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'log₂ '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">8</property>
@@ -1392,6 +1404,9 @@
                 <property name="use_markup">True</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">8</property>
@@ -1415,6 +1430,9 @@
                 <property name="use_markup">True</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">9</property>
@@ -1432,6 +1450,9 @@
             <property name="tooltip_text" translatable="yes">Integer Component</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'int '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">9</property>
@@ -1449,6 +1470,9 @@
             <property name="tooltip_text" translatable="yes">Fractional Component</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'frac '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">9</property>
@@ -1466,6 +1490,9 @@
             <property name="tooltip_text" translatable="yes">Divide [/]</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'÷'</property>
+            <style>
+              <class name="operator-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">4</property>
@@ -1503,6 +1530,9 @@
             <property name="tooltip_text" translatable="yes">Multiply [*]</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'×'</property>
+            <style>
+              <class name="operator-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">4</property>
@@ -1519,6 +1549,9 @@
             <property name="focus_on_click">False</property>
             <property name="tooltip_text" translatable="yes">Subtract [-]</property>
             <property name="action_name">cal.subtract</property>
+            <style>
+              <class name="operator-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">4</property>
@@ -1536,6 +1569,9 @@
             <property name="tooltip_text" translatable="yes">Add [+]</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'+'</property>
+            <style>
+              <class name="operator-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">4</property>
@@ -1571,6 +1607,9 @@
             <property name="tooltip_text" translatable="yes">Clear Display [Escape]</property>
             <property name="action_name">cal.clear</property>
             <property name="label">C</property>
+            <style>
+              <class name="clear-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">6</property>
@@ -1883,6 +1922,9 @@
                 <property name="use_markup">True</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">0</property>
@@ -1910,6 +1952,9 @@
                 <property name="use_markup">True</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">1</property>
@@ -1969,6 +2014,9 @@
                 </child>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">3</property>
@@ -1985,6 +2033,9 @@
             <property name="tooltip_text" translatable="yes">Boolean Exclusive OR</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'⊻'</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">5</property>
@@ -2002,6 +2053,9 @@
             <property name="tooltip_text" translatable="yes">Boolean OR</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'∨'</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">5</property>
@@ -2019,6 +2073,9 @@
             <property name="tooltip_text" translatable="yes">Boolean AND</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'∧'</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">5</property>
@@ -2036,6 +2093,9 @@
             <property name="tooltip_text" translatable="yes">Modulus divide</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">' mod '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">5</property>
@@ -2053,6 +2113,9 @@
             <property name="tooltip_text" translatable="yes">Start Group [(]</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'('</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">4</property>
@@ -2069,6 +2132,9 @@
             <property name="tooltip_text" translatable="yes">End Group [)]</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">')'</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">5</property>
@@ -2112,6 +2178,9 @@
                 </child>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">6</property>
@@ -2155,6 +2224,9 @@
                 </child>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">7</property>
@@ -2174,6 +2246,9 @@
                 <property name="AtkObject::accessible-name" translatable="yes" comments="Accessible name for 
the insert character button">Insert Character</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">8</property>
@@ -2190,6 +2265,9 @@
             <property name="tooltip_text" translatable="yes">Boolean NOT</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'¬'</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">6</property>
@@ -2217,6 +2295,9 @@
                 <property name="use_markup">True</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">8</property>
@@ -2245,6 +2326,9 @@
                 <property name="justify">center</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">9</property>
@@ -2272,6 +2356,9 @@
                 <property name="use_markup">True</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">8</property>
@@ -2289,6 +2376,9 @@
             <property name="tooltip_text" translatable="yes">Ones’ Complement</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'ones '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">6</property>
@@ -2306,6 +2396,9 @@
             <property name="tooltip_text" translatable="yes">Two’s Complement</property>
             <property name="action_name">cal.insert-general</property>
             <property name="action_target">'twos '</property>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">7</property>
@@ -2355,6 +2448,9 @@
                 <property name="AtkObject::accessible-name" translatable="yes">Word Size</property>
               </object>
             </child>
+            <style>
+              <class name="function-button"/>
+            </style>
           </object>
           <packing>
             <property name="left_attach">9</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]