mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2021-06-17 Daniel Bair <daniel@danielbair.com>
* Update to support system dark themes 'rdairplay/loglinebox.cpp'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -111,6 +111,10 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
line_changed_play_palette.setColor(QPalette::Inactive,QPalette::Highlight,
|
||||
QColor(BAR_CHANGED_TRANSITION_COLOR));
|
||||
line_time_palette=QGuiApplication::palette();
|
||||
line_time_palette.setColor(QPalette::Active,QPalette::Foreground,
|
||||
QColor(Qt::black));
|
||||
line_time_palette.setColor(QPalette::Inactive,QPalette::Foreground,
|
||||
QColor(Qt::black));
|
||||
line_hard_palette=QGuiApplication::palette();
|
||||
line_hard_palette.setColor(QPalette::Active,QPalette::Foreground,
|
||||
QColor(LOG_HARDTIME_TEXT_COLOR));
|
||||
@@ -140,6 +144,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
//
|
||||
line_up_label=new QLabel(this);
|
||||
line_up_label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
line_up_label->setPalette(line_text_palette);
|
||||
line_up_label->setFont(line_font);
|
||||
line_up_label->hide();
|
||||
|
||||
@@ -155,6 +160,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
//
|
||||
line_down_label=new QLabel(this);
|
||||
line_down_label->setAlignment(Qt::AlignLeft|Qt::AlignVCenter);
|
||||
line_down_label->setPalette(line_text_palette);
|
||||
line_down_label->setFont(line_font);
|
||||
line_down_label->hide();
|
||||
|
||||
@@ -162,6 +168,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
// Cut Description
|
||||
//
|
||||
line_description_label=new QLabel(this);
|
||||
line_description_label->setPalette(line_text_palette);
|
||||
line_description_label->setFont(line_font);
|
||||
line_description_label->hide();
|
||||
|
||||
@@ -169,6 +176,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
// Outcue
|
||||
//
|
||||
line_outcue_label=new QLabel(this);
|
||||
line_outcue_label->setPalette(line_text_palette);
|
||||
line_outcue_label->setFont(outcue_font);
|
||||
line_outcue_label->hide();
|
||||
|
||||
@@ -176,18 +184,21 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
// Artist
|
||||
//
|
||||
line_artist_label=new QLabel(this);
|
||||
line_artist_label->setPalette(line_text_palette);
|
||||
line_artist_label->setFont(line_font);
|
||||
|
||||
//
|
||||
// Title
|
||||
//
|
||||
line_title_label=new QLabel(this);
|
||||
line_title_label->setPalette(line_text_palette);
|
||||
line_title_label->setFont(line_bold_font);
|
||||
|
||||
//
|
||||
// Marker Comment
|
||||
//
|
||||
line_comment_label=new QLabel(this);
|
||||
line_comment_label->setPalette(line_text_palette);
|
||||
line_comment_label->setFont(line_font);
|
||||
line_comment_label->setAlignment(Qt::AlignTop|Qt::AlignLeft);
|
||||
line_comment_label->setWordWrap(true);
|
||||
@@ -202,12 +213,14 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
// Cart
|
||||
//
|
||||
line_cart_label=new QLabel(this);
|
||||
line_cart_label->setPalette(line_text_palette);
|
||||
line_cart_label->setFont(line_font);
|
||||
|
||||
//
|
||||
// Cut
|
||||
//
|
||||
line_cut_label=new QLabel(this);
|
||||
line_cut_label->setPalette(line_text_palette);
|
||||
line_cut_label->setFont(line_font);
|
||||
|
||||
//
|
||||
@@ -228,6 +241,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
// Talk Time
|
||||
//
|
||||
line_talktime_label=new QLabel(this);
|
||||
line_talktime_label->setPalette(line_text_palette);
|
||||
line_talktime_label->setFont(talk_font);
|
||||
line_talktime_label->setAlignment(Qt::AlignRight);
|
||||
|
||||
@@ -235,6 +249,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
// Length
|
||||
//
|
||||
line_length_label=new QLabel(this);
|
||||
line_length_label->setPalette(line_text_palette);
|
||||
line_length_label->setFont(line_font);
|
||||
line_length_label->setAlignment(Qt::AlignRight);
|
||||
|
||||
@@ -243,6 +258,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
//
|
||||
line_trans_label=new QLabel(this);
|
||||
line_trans_label->setAlignment(Qt::AlignRight);
|
||||
line_trans_label->setPalette(line_text_palette);
|
||||
line_trans_label->setFont(line_bold_font);
|
||||
|
||||
// setBackgroundColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
@@ -408,12 +424,12 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
switch(line_logline->transType()) {
|
||||
case RDLogLine::Stop:
|
||||
line_trans_label->setText(tr("STOP"));
|
||||
line_trans_label->setPalette(QGuiApplication::palette());
|
||||
line_trans_label->setPalette(line_text_palette);
|
||||
break;
|
||||
|
||||
case RDLogLine::Play:
|
||||
line_trans_label->setText(tr("PLAY"));
|
||||
line_trans_label->setPalette(QGuiApplication::palette());
|
||||
line_trans_label->setPalette(line_text_palette);
|
||||
break;
|
||||
|
||||
case RDLogLine::Segue:
|
||||
@@ -422,7 +438,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
line_trans_label->setPalette(line_transition_palette);
|
||||
}
|
||||
else {
|
||||
line_trans_label->setPalette(QGuiApplication::palette());
|
||||
line_trans_label->setPalette(line_text_palette);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user