Patches to add support for dark themes

This commit is contained in:
Daniel Bair 2014-11-30 22:10:23 +07:00
parent 4a98ffc52c
commit 088b117852
2 changed files with 18 additions and 1 deletions

View File

@ -98,6 +98,12 @@ RDSlotBox::RDSlotBox(RDPlayDeck *deck,RDAirPlayConf *conf,QWidget *parent)
line_timescale_palette.setColor(QPalette::Inactive,QColorGroup::Foreground,
QColor(LABELBOX_TIMESCALE_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));
//
// Audio Meter
//
@ -557,16 +563,26 @@ void RDSlotBox::SetColor(QColor color)
{
setBackgroundColor(color);
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_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_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_position_bar->setBackgroundColor(QColor(Qt::lightGray));
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_icon_label->setBackgroundColor(color);
}

View File

@ -106,6 +106,7 @@ class RDSlotBox : public QWidget
QPalette line_time_palette;
QPalette line_hard_palette;
QPalette line_timescale_palette;
QPalette line_text_palette;
RDLogLine::Type line_type;
QPixmap *line_playout_map;
QPixmap *line_macro_map;