Skip to content

Commit

Permalink
glade-files: Use of stylesheets for labels
Browse files Browse the repository at this point in the history
as recommended in the GUI-Guidelines for 'Markups in Text' in the wiki.

* Replace markup elements such as <b>
* Change attribute elements
  • Loading branch information
CWehli committed Apr 21, 2024
1 parent 4623427 commit 51b7f00
Show file tree
Hide file tree
Showing 34 changed files with 504 additions and 246 deletions.
24 changes: 12 additions & 12 deletions gnucash/gtkbuilder/assistant-csv-export.glade
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ Select the type of Export required and the separator that will be used.
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Options</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
</child>
</object>
Expand Down Expand Up @@ -212,9 +212,9 @@ Select the type of Export required and the separator that will be used.
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Select Separator Character</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
</child>
</object>
Expand Down Expand Up @@ -268,9 +268,9 @@ Select the type of Export required and the separator that will be used.
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Accounts</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
<packing>
<property name="expand">False</property>
Expand Down Expand Up @@ -424,9 +424,9 @@ Select the type of Export required and the separator that will be used.
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Date Range</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
<packing>
<property name="expand">False</property>
Expand Down
33 changes: 24 additions & 9 deletions gnucash/gtkbuilder/assistant-csv-price-import.glade
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ There are two reserved names which can't be used to save custom settings:
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;Load and Save Settings&lt;/b&gt;</property>
<property name="label" translatable="yes">Load and Save Settings</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
<property name="track-visited-links">False</property>
</object>
Expand Down Expand Up @@ -556,7 +559,10 @@ There are two reserved names which can't be used to save custom settings:
<property name="can-focus">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;File Format&lt;/b&gt;</property>
<property name="label" translatable="yes">File Format</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
</child>
Expand Down Expand Up @@ -778,7 +784,10 @@ For example
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;Miscellaneous&lt;/b&gt;</property>
<property name="label" translatable="yes">Miscellaneous</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
</child>
Expand Down Expand Up @@ -838,7 +847,10 @@ For example
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Commodity From&lt;/b&gt;</property>
<property name="label" translatable="yes">Commodity From</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
</child>
Expand Down Expand Up @@ -884,9 +896,9 @@ For example
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Currency To</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
</child>
</object>
Expand Down Expand Up @@ -1011,8 +1023,11 @@ For example
<object class="GtkLabel" id="finish_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Press "Apply" to add the Prices.
"Cancel" to abort.&lt;/b&gt;</property>
<property name="label" translatable="yes">Press "Apply" to add the Prices.
"Cancel" to abort.</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
<property name="justify">center</property>
<property name="wrap">True</property>
Expand Down
20 changes: 16 additions & 4 deletions gnucash/gtkbuilder/assistant-csv-trans-import.glade
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ There are two reserved names which can't be used to save custom settings:
<object class="GtkLabel" id="label12">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Load and Save Settings&lt;/b&gt;</property>
<property name="label" translatable="yes">Load and Save Settings</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
<property name="track-visited-links">False</property>
</object>
Expand Down Expand Up @@ -548,7 +551,10 @@ To know which lines belong to the same transaction, the importer will compare th
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="label" translatable="yes">&lt;b&gt;File Format&lt;/b&gt;</property>
<property name="label" translatable="yes">File Format</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
</child>
Expand Down Expand Up @@ -781,7 +787,10 @@ For example
<object class="GtkLabel" id="label13">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Miscellaneous&lt;/b&gt;</property>
<property name="label" translatable="yes">Miscellaneous</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
</child>
Expand Down Expand Up @@ -812,7 +821,10 @@ For example
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Account&lt;/b&gt;</property>
<property name="label" translatable="yes">Account</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
</child>
Expand Down
22 changes: 14 additions & 8 deletions gnucash/gtkbuilder/assistant-hierarchy.glade
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ Click 'Cancel' if you do not wish to create any new accounts now.</property>
<object class="GtkLabel" id="label101">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Categories&lt;/b&gt;</property>
<property name="label" translatable="yes">Categories</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
<packing>
Expand Down Expand Up @@ -307,7 +310,10 @@ Click 'Cancel' if you do not wish to create any new accounts now.</property>
<object class="GtkLabel" id="label103">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;Category Description&lt;/b&gt;</property>
<property name="label" translatable="yes">Category Description</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
<packing>
Expand Down Expand Up @@ -374,9 +380,9 @@ Click 'Cancel' if you do not wish to create any new accounts now.</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes" comments="%s is an account template">Accounts in %s</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
<packing>
<property name="expand">False</property>
Expand Down Expand Up @@ -418,9 +424,9 @@ Click 'Cancel' if you do not wish to create any new accounts now.</property>
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<property name="label" translatable="yes">Notes</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
<packing>
<property name="expand">False</property>
Expand Down
6 changes: 3 additions & 3 deletions gnucash/gtkbuilder/assistant-qif-import.glade
Original file line number Diff line number Diff line change
Expand Up @@ -941,9 +941,9 @@ In the following page, you will see the text that appears in the Payee and Memo
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Book Options</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
<packing>
<property name="expand">False</property>
Expand Down
10 changes: 8 additions & 2 deletions gnucash/gtkbuilder/assistant-stock-split.glade
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,10 @@
<object class="GtkLabel" id="income_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;_Income Account&lt;/b&gt;</property>
<property name="label" translatable="yes">_Income Account</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
<property name="use-underline">True</property>
</object>
Expand All @@ -356,7 +359,10 @@
<object class="GtkLabel" id="asset_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">&lt;b&gt;A_sset Account&lt;/b&gt;</property>
<property name="label" translatable="yes">A_sset Account</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
<property name="use-underline">True</property>
</object>
Expand Down
15 changes: 12 additions & 3 deletions gnucash/gtkbuilder/assistant-xml-encoding.glade
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;S_ystem input encodings&lt;/b&gt;</property>
<property name="label" translatable="yes">S_ystem input encodings</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">available_encs_view</property>
Expand Down Expand Up @@ -322,7 +325,10 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;_Custom encoding&lt;/b&gt;</property>
<property name="label" translatable="yes">_Custom encoding</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">custom_enc_entry</property>
Expand Down Expand Up @@ -405,7 +411,10 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;_Selected encodings&lt;/b&gt;</property>
<property name="label" translatable="yes">_Selected encodings</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">selected_encs_view</property>
Expand Down
16 changes: 11 additions & 5 deletions gnucash/gtkbuilder/business-prefs.glade
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">General</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
Expand Down Expand Up @@ -112,7 +112,10 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;Invoices&lt;/b&gt;</property>
<property name="label" translatable="yes">Invoices</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
<packing>
Expand Down Expand Up @@ -189,7 +192,10 @@
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">&lt;b&gt;Bills&lt;/b&gt;</property>
<property name="label" translatable="yes">Bills</property>
<style>
<class name="gnc-class-strong"/>
</style>
<property name="use-markup">True</property>
</object>
<packing>
Expand Down
6 changes: 3 additions & 3 deletions gnucash/gtkbuilder/dialog-account-picker.glade
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">QIF Import</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<style>
<class name="gnc-class-highlight"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
Expand Down
Loading

0 comments on commit 51b7f00

Please sign in to comment.