Removed the valid icon and make the text green or red instead
This commit is contained in:
@@ -56,20 +56,14 @@ MiniWindow QPushButton {
|
|||||||
width: 225px;
|
width: 225px;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
#address_input[isValid=true]
|
||||||
|
{
|
||||||
|
color: #4D9948
|
||||||
|
}
|
||||||
|
|
||||||
#valid_address::indicator
|
#address_input[isValid=false]
|
||||||
{
|
{
|
||||||
width: 24px;
|
color: #CE4141
|
||||||
height: 24px;
|
|
||||||
margin-top: 2px;
|
|
||||||
}
|
|
||||||
#valid_address::indicator:checked
|
|
||||||
{
|
|
||||||
image: url(icons/confirmed.png);
|
|
||||||
}
|
|
||||||
#valid_address::indicator:unchecked
|
|
||||||
{
|
|
||||||
image: url(icons/unconfirmed.png);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#balance_label
|
#balance_label
|
||||||
|
|||||||
@@ -167,14 +167,8 @@ class MiniWindow(QDialog):
|
|||||||
address_completer.setModel(self.address_completions)
|
address_completer.setModel(self.address_completions)
|
||||||
self.address_input.setCompleter(address_completer)
|
self.address_input.setCompleter(address_completer)
|
||||||
|
|
||||||
self.valid_address = QCheckBox()
|
|
||||||
self.valid_address.setObjectName("valid_address")
|
|
||||||
self.valid_address.setEnabled(False)
|
|
||||||
self.valid_address.setChecked(False)
|
|
||||||
|
|
||||||
address_layout = QHBoxLayout()
|
address_layout = QHBoxLayout()
|
||||||
address_layout.addWidget(self.address_input)
|
address_layout.addWidget(self.address_input)
|
||||||
address_layout.addWidget(self.valid_address)
|
|
||||||
|
|
||||||
self.amount_input = TextedLineEdit(_("... and amount"))
|
self.amount_input = TextedLineEdit(_("... and amount"))
|
||||||
self.amount_input.setObjectName("amount_input")
|
self.amount_input.setObjectName("amount_input")
|
||||||
@@ -221,6 +215,10 @@ class MiniWindow(QDialog):
|
|||||||
self.setObjectName("main_window")
|
self.setObjectName("main_window")
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
|
def recompute_style(self):
|
||||||
|
qApp.style().unpolish(self)
|
||||||
|
qApp.style().polish(self)
|
||||||
|
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
super(MiniWindow, self).closeEvent(event)
|
super(MiniWindow, self).closeEvent(event)
|
||||||
qApp.quit()
|
qApp.quit()
|
||||||
@@ -311,11 +309,15 @@ class MiniWindow(QDialog):
|
|||||||
|
|
||||||
def address_field_changed(self, address):
|
def address_field_changed(self, address):
|
||||||
if self.actuator.is_valid(address):
|
if self.actuator.is_valid(address):
|
||||||
self.valid_address.setChecked(True)
|
|
||||||
self.check_button_status()
|
self.check_button_status()
|
||||||
|
self.address_input.setProperty("isValid", True)
|
||||||
|
self.style().unpolish(self.address_input)
|
||||||
|
self.style().polish(self.address_input)
|
||||||
else:
|
else:
|
||||||
self.valid_address.setChecked(False)
|
|
||||||
self.send_button.setDisabled(True)
|
self.send_button.setDisabled(True)
|
||||||
|
self.address_input.setProperty("isValid", False)
|
||||||
|
self.style().unpolish(self.address_input)
|
||||||
|
self.style().polish(self.address_input)
|
||||||
|
|
||||||
def copy_address(self):
|
def copy_address(self):
|
||||||
receive_popup = ReceivePopup(self.receive_button)
|
receive_popup = ReceivePopup(self.receive_button)
|
||||||
|
|||||||
Reference in New Issue
Block a user