forked from qt-creator/qt-creator
Utils: Introduce a convenience function creatorColor()
... forwarding to creatorTheme()->color(...) Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1061,7 +1061,7 @@ void SelectorDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti
|
||||
if (TreeItem *item = model->itemForIndex(index)) {
|
||||
switch (item->level()) {
|
||||
case 2: {
|
||||
QColor col = creatorTheme()->color(Theme::TextColorNormal);
|
||||
QColor col = creatorColor(Theme::TextColorNormal);
|
||||
opt.palette.setColor(QPalette::Text, col);
|
||||
opt.font = StyleHelper::uiFont(StyleHelper::UiElementH4);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user