Skip to content

Commit

Permalink
[GUI] Fix invisible text due an invalid transparent selection color.
Browse files Browse the repository at this point in the history
Github-Pull: #2401
Rebased-From: b02f0ab
  • Loading branch information
furszy committed Jun 18, 2021
1 parent df5d820 commit 73b56e9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/qt/pivx/dashboardwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ DashboardWidget::DashboardWidget(PIVXGUI* parent) :
setCssProperty({ui->comboBoxMonths, ui->comboBoxYears}, "btn-combo-chart-selected");

ui->comboBoxMonths->setView(new QListView());
ui->comboBoxMonths->setStyleSheet("selection-background-color:transparent; selection-color:transparent;");
ui->comboBoxMonths->setStyleSheet("selection-background-color:transparent;");
ui->comboBoxYears->setView(new QListView());
ui->comboBoxYears->setStyleSheet("selection-background-color:transparent; selection-color:transparent;");
ui->comboBoxYears->setStyleSheet("selection-background-color:transparent;");
ui->pushButtonYear->setChecked(true);

setCssProperty(ui->pushButtonChartArrow, "btn-chart-arrow");
Expand Down
2 changes: 1 addition & 1 deletion src/qt/pivx/qtutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ void initComboBox(QComboBox* combo, QLineEdit* lineEdit, QString cssClass)
lineEdit->setAlignment(Qt::AlignRight);
combo->setLineEdit(lineEdit);
}
combo->setStyleSheet("selection-background-color:transparent; selection-color:transparent;");
combo->setStyleSheet("selection-background-color:transparent;");
combo->setView(new QListView());
}

Expand Down
2 changes: 2 additions & 0 deletions src/qt/pivx/res/css/style_dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,7 @@ QComboBox[cssClass="btn-combo-chart"] {
font-size:16px;
border:1px solid #bababa;
color: #707070;
selection-color:#707070;
text-align: right;
border-radius:2px;
}
Expand Down Expand Up @@ -2169,6 +2170,7 @@ QComboBox[cssClass="btn-combo"] {
font-size:16px;
border:1px solid #0f0b16;
color: #707070;
selection-color:#707070;
text-align: right;
}

Expand Down
1 change: 1 addition & 0 deletions src/qt/pivx/res/css/style_light.css
Original file line number Diff line number Diff line change
Expand Up @@ -2170,6 +2170,7 @@ QComboBox[cssClass="btn-combo"] {
font-size:16px;
border:1px solid #ffffff;
color: #707070;
selection-color:#707070;
text-align: right;
}

Expand Down

0 comments on commit 73b56e9

Please sign in to comment.