Skip to content
Snippets Groups Projects
Commit 4942aab0 authored by Vincent Texier's avatar Vincent Texier
Browse files

Improve transactions tab appearance

parent c10f6110
No related branches found
No related tags found
No related merge requests found
...@@ -46,23 +46,29 @@ ...@@ -46,23 +46,29 @@
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<widget class="QLabel" name="label_balance"> <widget class="QLabel" name="label_payment">
<property name="text"> <property name="text">
<string>Balance:</string> <string>Payment:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_payment"> <widget class="QLabel" name="label_deposit">
<property name="text"> <property name="text">
<string>Payment:</string> <string>Deposit:</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_deposit"> <widget class="QLabel" name="label_balance">
<property name="text"> <property name="text">
<string>Deposit:</string> <string>Balance:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
......
...@@ -85,15 +85,15 @@ class TransactionsTabWidget(QWidget, Ui_transactionsTabWidget): ...@@ -85,15 +85,15 @@ class TransactionsTabWidget(QWidget, Ui_transactionsTabWidget):
localized_balance = QLocale().toString( localized_balance = QLocale().toString(
self.app.current_account.units_to_diff_ref(balance, self.community), 'f', 6) self.app.current_account.units_to_diff_ref(balance, self.community), 'f', 6)
self.label_deposit.setText(self.tr("Deposits: {:} {:}").format( self.label_deposit.setText(self.tr("<b>Deposits</b> {:} {:}").format(
localized_deposits, localized_deposits,
self.app.current_account.ref_name(self.community.short_currency) self.app.current_account.ref_name(self.community.short_currency)
)) ))
self.label_payment.setText(self.tr("Payments: {:} {:}").format( self.label_payment.setText(self.tr("<b>Payments</b> {:} {:}").format(
localized_payments, localized_payments,
self.app.current_account.ref_name(self.community.short_currency) self.app.current_account.ref_name(self.community.short_currency)
)) ))
self.label_balance.setText(self.tr("Balance: {:} {:}").format( self.label_balance.setText(self.tr("<b>Balance</b> {:} {:}").format(
localized_balance, localized_balance,
self.app.current_account.ref_name(self.community.short_currency) self.app.current_account.ref_name(self.community.short_currency)
)) ))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment