Style tweaks on old list views

This commit is contained in:
Nav
2023-09-23 01:17:06 +01:00
parent 776b72e227
commit 403e959d3f
4 changed files with 17 additions and 4 deletions

View File

@@ -67,8 +67,9 @@ namespace Widgets
void RegionItem::setSelected(bool selected) {
this->setProperty("selected", selected);
this->style()->unpolish(this);
this->style()->polish(this);
// TODO: This is a horrible hack. It will be binned when I rewrite this widget to use ListView
this->setStyleSheet(this->styleSheet());
if (selected) {
emit this->selected(this);

View File

@@ -85,6 +85,12 @@
color: #8a8a8d;
}
#region-selector #region-item[selected=true] #address-label,
#region-selector #region-item[selected=true] #type-label,
#region-selector #region-item[selected=true] #time-label {
color: #afb1b3;
}
#region-selector #region-item #type-label,
#region-selector #region-item #time-label {
font-size: 13px;

View File

@@ -18,8 +18,9 @@ namespace Widgets
void Item::setSelected(bool selected) {
this->setProperty("selected", selected);
this->style()->unpolish(this);
this->style()->polish(this);
// TODO: This is a horrible hack. It will be binned when I rewrite this widget to use ListView
this->setStyleSheet(this->styleSheet());
if (selected) {
emit this->selected(this);

View File

@@ -102,6 +102,11 @@
color: #8a8a8d;
}
#target-register-history-widget #register-history-item[selected=true] #value-label,
#target-register-history-widget #register-history-item[selected=true] #description-label {
color: #afb1b3;
}
#target-register-history-widget #separator-label {
/*font-style: italic;*/
color: #8a8a8d;