forked from qt-creator/qt-creator
Make TODO plugin theme aware
Use the theme's colors by default and color the text rather than the background of items. Task-number: QTCREATORBUG-17532 Change-Id: I65a2d6da45ce7547b05463a2fb014f8230d0c336 Reviewed-by: Serhii Moroz <frost.asm@gmail.com> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -80,10 +80,8 @@ QVariant TodoItemsModel::data(const QModelIndex &index, int role) const
|
||||
|
||||
TodoItem item = m_todoItemsList->at(index.row());
|
||||
|
||||
if (role == Qt::BackgroundColorRole)
|
||||
return item.color;
|
||||
if (role == Qt::TextColorRole)
|
||||
return creatorTheme()->color(Theme::TodoItemTextColor);
|
||||
return item.color;
|
||||
|
||||
switch (index.column()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user