Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/qt/forms/modaloverlay.ui
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="warningIcon">
<property name="enabled">
<bool>false</bool>
</property>
<widget class="QLabel" name="warningIcon">
<property name="text">
<string/>
</property>
Expand Down Expand Up @@ -172,6 +169,9 @@
<property name="fieldGrowthPolicy">
<enum>QFormLayout::FieldsStayAtSizeHint</enum>
</property>
<property name="formAlignment">
<set>Qt::AlignHCenter|Qt::AlignTop</set>
</property>
<property name="horizontalSpacing">
<number>6</number>
</property>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/modaloverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ foreverHidden(false)
ui->labelEstimatedTimeLeft,
}, GUIUtil::FontWeight::Bold);

GUIUtil::setIcon(ui->warningIcon, "warning", GUIUtil::ThemedColor::ORANGE, QSize(48, 48));
ui->warningIcon->setPixmap(GUIUtil::getIcon("warning", GUIUtil::ThemedColor::ORANGE).pixmap(48, 48));

connect(ui->closeButton, SIGNAL(clicked()), this, SLOT(closeClicked()));
if (parent) {
Expand Down
7 changes: 3 additions & 4 deletions src/qt/res/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -1231,11 +1231,10 @@ QWidget#bgWidget { /* The frame overlaying the overview-page */
padding-right: 10px;
}

QWidget#bgWidget .QPushButton#warningIcon {
QWidget#bgWidget .QLabel#warningIcon {
background-color: #00000000;
width: 64px;
height: 64px;
padding: 5px;
margin-left: 10px;
margin-right: 10px;
}

QWidget#contentWidget { /* The actual content with the text/buttons/etc... */
Expand Down