summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormbkma <[email protected]>2019-05-02 00:46:48 +0200
committerraveit65 <[email protected]>2019-05-06 13:36:03 +0200
commitcebd93cb56ab8f64c0d1c1ad20871da315e80aa8 (patch)
treec62914948a57ab846842950d3b4988bf453c8b43 /src
parentb3605bee34d6b62eb4e5057bbad40513bdc600df (diff)
downloadmate-calc-cebd93cb56ab8f64c0d1c1ad20871da315e80aa8.tar.bz2
mate-calc-cebd93cb56ab8f64c0d1c1ad20871da315e80aa8.tar.xz
buttons-ui: add style class "suggested-action" to result button
This gives the result (=) button a theme defined colour. Currently has effects in Menta theme. Saw this on gnome-calculator.
Diffstat (limited to 'src')
-rw-r--r--src/buttons-advanced.ui11
-rw-r--r--src/buttons-basic.ui11
-rw-r--r--src/buttons-financial.ui23
-rw-r--r--src/buttons-programming.ui5
4 files changed, 31 insertions, 19 deletions
diff --git a/src/buttons-advanced.ui b/src/buttons-advanced.ui
index a4b756b..5588892 100644
--- a/src/buttons-advanced.ui
+++ b/src/buttons-advanced.ui
@@ -1,9 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.4 -->
+<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
+ <child type="titlebar">
+ <placeholder/>
+ </child>
<child>
<object class="GtkGrid" id="button_panel">
<property name="visible">True</property>
@@ -271,6 +274,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="solve_cb" swapped="no"/>
+ <style>
+ <class name="suggested-action"/>
+ </style>
</object>
<packing>
<property name="left_attach">4</property>
@@ -944,8 +950,5 @@
</child>
</object>
</child>
- <child type="titlebar">
- <placeholder/>
- </child>
</object>
</interface>
diff --git a/src/buttons-basic.ui b/src/buttons-basic.ui
index 387b590..79c8271 100644
--- a/src/buttons-basic.ui
+++ b/src/buttons-basic.ui
@@ -1,9 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.4 -->
+<!-- Generated with glade 3.22.1 -->
<interface>
<requires lib="gtk+" version="3.22"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
+ <child type="titlebar">
+ <placeholder/>
+ </child>
<child>
<object class="GtkGrid" id="button_panel">
<property name="visible">True</property>
@@ -214,6 +217,9 @@
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="solve_cb" swapped="no"/>
+ <style>
+ <class name="suggested-action"/>
+ </style>
</object>
<packing>
<property name="left_attach">4</property>
@@ -369,8 +375,5 @@
</child>
</object>
</child>
- <child type="titlebar">
- <placeholder/>
- </child>
</object>
</interface>
diff --git a/src/buttons-financial.ui b/src/buttons-financial.ui
index d0a775e..a803ed9 100644
--- a/src/buttons-financial.ui
+++ b/src/buttons-financial.ui
@@ -7,8 +7,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Compounding Term dialog">Compounding Term</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -190,8 +190,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Double-Declining Depreciation dialog">Double-Declining Depreciation</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -373,8 +373,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Future Value dialog">Future Value</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -556,8 +556,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Gross Profit Margin dialog">Gross Profit Margin</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -709,8 +709,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Periodic Payment dialog">Periodic Payment</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -893,8 +893,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Present Value dialog">Present Value</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -1077,8 +1077,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Periodic Interest Rate dialog">Periodic Interest Rate</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -1261,8 +1261,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Straight-Line Depreciation dialog">Straight-Line Depreciation</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -1445,8 +1445,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Sum-of-the-Years'-Digits Depreciation dialog">Sum-of-the-Years'-Digits Depreciation</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -1658,8 +1658,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of Payment Period dialog">Payment Period</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="response" handler="finc_response_cb" swapped="no"/>
<child>
<placeholder/>
@@ -2104,6 +2104,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="solve_cb" swapped="no"/>
+ <style>
+ <class name="suggested-action"/>
+ </style>
</object>
<packing>
<property name="left_attach">4</property>
diff --git a/src/buttons-programming.ui b/src/buttons-programming.ui
index 71d5c4e..0e83d90 100644
--- a/src/buttons-programming.ui
+++ b/src/buttons-programming.ui
@@ -7,8 +7,8 @@
<property name="border_width">6</property>
<property name="title" translatable="yes" comments="Title of insert character code dialog">Insert Character Code</property>
<property name="resizable">False</property>
- <property name="type_hint">dialog</property>
<property name="icon_name">accessories-calculator</property>
+ <property name="type_hint">dialog</property>
<signal name="delete-event" handler="character_code_dialog_delete_cb" swapped="no"/>
<signal name="response" handler="character_code_dialog_response_cb" swapped="no"/>
<child>
@@ -2052,6 +2052,9 @@
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="solve_cb" swapped="no"/>
+ <style>
+ <class name="suggested-action"/>
+ </style>
</object>
<packing>
<property name="left_attach">6</property>