revise CSS and allow modular icons
This commit is contained in:
@@ -67,8 +67,7 @@ void PanelWidget::paintEvent(QPaintEvent *event)
|
||||
highlight_border.adjust(0, 0, -1, -1);
|
||||
|
||||
// Set the color to the palette's highlight color
|
||||
|
||||
p.setPen(QPen(border_color_));
|
||||
p.setPen(palette().highlight().color());
|
||||
|
||||
// Draw the highlight border
|
||||
p.drawRect(highlight_border);
|
||||
@@ -85,13 +84,3 @@ void PanelWidget::UpdateTitle()
|
||||
setWindowTitle(tr("%1: %2").arg(title_, subtitle_));
|
||||
}
|
||||
}
|
||||
|
||||
QColor PanelWidget::GetBorderColor()
|
||||
{
|
||||
return border_color_;
|
||||
}
|
||||
|
||||
void PanelWidget::SetBorderColor(QColor c)
|
||||
{
|
||||
border_color_ = c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user