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

remove balance in percent and double size of font for account total

parent b75b70af
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,13 @@ QGroupBox::title { ...@@ -70,6 +70,13 @@ QGroupBox::title {
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<widget class="QLabel" name="label_balance"> <widget class="QLabel" name="label_balance">
<property name="font">
<font>
<pointsize>22</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text"> <property name="text">
<string>label_balance</string> <string>label_balance</string>
</property> </property>
......
...@@ -4,10 +4,10 @@ Created on 15 févr. 2015 ...@@ -4,10 +4,10 @@ Created on 15 févr. 2015
@author: inso @author: inso
""" """
import logging
from PyQt5.QtWidgets import QWidget, QMenu, QAction, QApplication, QDialog from PyQt5.QtWidgets import QWidget, QMenu, QAction, QApplication, QDialog
from PyQt5.QtCore import QDateTime, QModelIndex, Qt, QLocale from PyQt5.QtCore import QDateTime, QModelIndex, Qt, QLocale
from PyQt5.QtGui import QCursor from PyQt5.QtGui import QCursor
from ..core.registry import Identity from ..core.registry import Identity
from ..core.wallet import Wallet from ..core.wallet import Wallet
from ..gui.password_asker import PasswordAskerDialog from ..gui.password_asker import PasswordAskerDialog
...@@ -132,16 +132,7 @@ class WalletsTabWidget(QWidget, Ui_WalletsTab): ...@@ -132,16 +132,7 @@ class WalletsTabWidget(QWidget, Ui_WalletsTab):
# set infos in label # set infos in label
self.label_balance.setText( self.label_balance.setText(
self.tr(""" self.tr("<center><b>{:} {:} in [{:} ; {:}] {:}</b></center>")
<table cellpadding="5">
<tr><td align="right"><b>{:}</b></td><td>{:}</td></tr>
<tr><td align="right"><b>{:}</b></td><td>{:}</td></tr>
</table>
""").format(
self.tr("Your money share "),
self.tr("{:.2f}%").format(amount / maximum * 100) if maximum != 0 else "0%",
self.tr("Your part "),
self.tr("{:} {:} in [{:} ; {:}] {:}")
.format( .format(
localized_amount, localized_amount,
self.get_referential_name(), self.get_referential_name(),
...@@ -149,7 +140,7 @@ class WalletsTabWidget(QWidget, Ui_WalletsTab): ...@@ -149,7 +140,7 @@ class WalletsTabWidget(QWidget, Ui_WalletsTab):
localized_maximum, localized_maximum,
self.get_referential_name() self.get_referential_name()
) )
)
) )
def get_referential_value(self, value): def get_referential_value(self, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment