mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Qt/Send: Figure a decent warning colour from theme
This commit is contained in:
parent
c5adf8f267
commit
3e4d7bfcb7
@ -764,9 +764,11 @@
|
||||
<property name="toolTip">
|
||||
<string>Using the fallbackfee can result in sending a transaction that will take serval hours or days (or never) to confirm. Consider choosing your fee manually or wait until your have validated the complete chain.</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">color: rgb(255, 150, 0);
|
||||
font-weight: bold;</string>
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
<bold>true</bold>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Warning: Fee estimation is currently not possible.</string>
|
||||
|
@ -656,6 +656,9 @@ void SendCoinsDialog::updateSmartFeeLabel()
|
||||
ui->labelSmartFee2->show(); // (Smart fee not initialized yet. This usually takes a few blocks...)
|
||||
ui->labelFeeEstimation->setText("");
|
||||
ui->fallbackFeeWarningLabel->setVisible(true);
|
||||
int lightness = ui->fallbackFeeWarningLabel->palette().color(QPalette::WindowText).lightness();
|
||||
QColor warning_colour(255 - (lightness / 5), 176 - (lightness / 3), 48 - (lightness / 14));
|
||||
ui->fallbackFeeWarningLabel->setStyleSheet("QLabel { color: " + warning_colour.name() + "; }");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user