Skip to content

Commit

Permalink
Fixing support for dark themes
Browse files Browse the repository at this point in the history
Browser and logger use system default font frontcolor instead of black
  • Loading branch information
RobertKrajewski authored and RobertKrajewski committed Jan 20, 2018
1 parent 83e69d2 commit f33c2ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void Logger::logSlot(QString message, int level)
else
{
ui->logList->addItem(message + "\n");
ui->logList->item(ui->logList->count()-1)->setForeground(Qt::black);
// Use system default color
}

}
Expand Down
3 changes: 2 additions & 1 deletion src/structureelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ QVariant Structureelement::data(int role) const
else if (synchronised == SYNCHRONISED)
return QBrush(Qt::darkGreen);
else
return QBrush(Qt::black);
// Use system default color
return QStandardItem::data(role);
}
else
{
Expand Down

0 comments on commit f33c2ac

Please sign in to comment.