Patches to add support for dark themes

This commit is contained in:
Daniel Bair
2014-11-30 20:18:19 +07:00
parent eb4435fa63
commit 4a98ffc52c
12 changed files with 172 additions and 78 deletions

View File

@@ -131,6 +131,12 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent,const char *name)
line_transition_palette.setColor(QPalette::Inactive,QColorGroup::Foreground,
QColor(RD_CUSTOM_TRANSITION_COLOR));
line_text_palette=palette();
line_text_palette.setColor(QPalette::Active,QColorGroup::Foreground,
QColor(black));
line_text_palette.setColor(QPalette::Inactive,QColorGroup::Foreground,
QColor(black));
//
// Count Up
//
@@ -846,20 +852,33 @@ void LogLineBox::SetColor(QColor color)
setBackgroundColor(color);
// color=Qt::red;
line_cart_label->setBackgroundColor(color);
line_cart_label->setPalette(line_text_palette);
line_cut_label->setBackgroundColor(color);
line_cut_label->setPalette(line_text_palette);
line_group_label->setBackgroundColor(color);
line_trans_label->setBackgroundColor(color);
line_trans_label->setPalette(line_text_palette);
line_title_label->setBackgroundColor(color);
line_title_label->setPalette(line_text_palette);
line_description_label->setBackgroundColor(color);
line_description_label->setPalette(line_text_palette);
line_artist_label->setBackgroundColor(color);
line_artist_label->setPalette(line_text_palette);
line_outcue_label->setBackgroundColor(color);
line_outcue_label->setPalette(line_text_palette);
line_time_label->setBackgroundColor(color);
line_time_label->setPalette(line_text_palette);
line_length_label->setBackgroundColor(color);
line_length_label->setPalette(line_text_palette);
line_talktime_label->setBackgroundColor(color);
line_talktime_label->setPalette(line_text_palette);
line_up_label->setBackgroundColor(color);
line_up_label->setPalette(line_text_palette);
line_position_bar->setBackgroundColor(QColor(lightGray));
line_down_label->setBackgroundColor(color);
line_down_label->setPalette(line_text_palette);
line_comment_label->setBackgroundColor(color);
line_comment_label->setPalette(line_text_palette);
line_icon_label->setBackgroundColor(color);
}