Style tweaks on old list views
This commit is contained in:
@@ -67,8 +67,9 @@ namespace Widgets
|
|||||||
|
|
||||||
void RegionItem::setSelected(bool selected) {
|
void RegionItem::setSelected(bool selected) {
|
||||||
this->setProperty("selected", 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) {
|
if (selected) {
|
||||||
emit this->selected(this);
|
emit this->selected(this);
|
||||||
|
|||||||
@@ -85,6 +85,12 @@
|
|||||||
color: #8a8a8d;
|
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 #type-label,
|
||||||
#region-selector #region-item #time-label {
|
#region-selector #region-item #time-label {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
|||||||
@@ -18,8 +18,9 @@ namespace Widgets
|
|||||||
|
|
||||||
void Item::setSelected(bool selected) {
|
void Item::setSelected(bool selected) {
|
||||||
this->setProperty("selected", 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) {
|
if (selected) {
|
||||||
emit this->selected(this);
|
emit this->selected(this);
|
||||||
|
|||||||
@@ -102,6 +102,11 @@
|
|||||||
color: #8a8a8d;
|
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 {
|
#target-register-history-widget #separator-label {
|
||||||
/*font-style: italic;*/
|
/*font-style: italic;*/
|
||||||
color: #8a8a8d;
|
color: #8a8a8d;
|
||||||
|
|||||||
Reference in New Issue
Block a user