mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-25 16:58:04 +02:00
2018-08-17 Fred Gleason <fredg@paravelsystems.com>
* Corrected background colors of the Button Log and Message widgets in rdairplay(1).
This commit is contained in:
parent
3c93beb206
commit
72b851ecfa
@ -17468,3 +17468,6 @@
|
||||
2018-08-17 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed incorrect column alignment in the library list in
|
||||
rdlibrary(1).
|
||||
2018-08-17 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Corrected background colors of the Button Log and Message widgets
|
||||
in rdairplay(1).
|
||||
|
@ -260,7 +260,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
|
||||
line_trans_label->setAlignment(Qt::AlignRight);
|
||||
line_trans_label->setFont(line_bold_font);
|
||||
|
||||
SetColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
|
||||
//
|
||||
// Countdown Timer
|
||||
@ -452,7 +452,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
line_icon_label->setPixmap(*line_playout_map);
|
||||
break;
|
||||
}
|
||||
SetColor(QColor(LOGLINEBOX_MISSING_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_MISSING_COLOR));
|
||||
delete cart;
|
||||
delete cut;
|
||||
}
|
||||
@ -473,7 +473,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
line_comment_label->clear();
|
||||
line_icon_label->setPixmap(*line_playout_map);
|
||||
line_title_label->setText(logline->title());
|
||||
SetColor(QColor(LOGLINEBOX_MISSING_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_MISSING_COLOR));
|
||||
delete cart;
|
||||
delete cut;
|
||||
}
|
||||
@ -481,10 +481,10 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
line_cart_label->
|
||||
setText(QString().sprintf("%06u",logline->cartNumber()));
|
||||
if(line_logline->evergreen()) {
|
||||
SetColor(QColor(LOGLINEBOX_EVERGREEN_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_EVERGREEN_COLOR));
|
||||
}
|
||||
else {
|
||||
SetColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
}
|
||||
if(line_logline->source()==RDLogLine::Tracker) {
|
||||
line_icon_label->setPixmap(*line_track_cart_map);
|
||||
@ -552,7 +552,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
setText(RDResolveNowNext(line_outcue_template,line_logline));
|
||||
}
|
||||
else {
|
||||
SetColor(QColor(LOGLINEBOX_MISSING_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_MISSING_COLOR));
|
||||
line_cut_label->clear();
|
||||
line_outcue_label->setText(tr("[NO VALID CUT AVAILABLE]"));
|
||||
}
|
||||
@ -567,7 +567,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
|
||||
case RDLogLine::Marker:
|
||||
line_icon_label->setPixmap(*line_notemarker_map);
|
||||
SetColor(QColor(LOGLINEBOX_MARKER_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_MARKER_COLOR));
|
||||
line_title_label->hide();
|
||||
line_description_label->hide();
|
||||
line_artist_label->hide();
|
||||
@ -582,7 +582,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
|
||||
case RDLogLine::Track:
|
||||
line_icon_label->setPixmap(*line_mic16_map);
|
||||
SetColor(QColor(LOGLINEBOX_MARKER_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_MARKER_COLOR));
|
||||
line_title_label->hide();
|
||||
line_description_label->hide();
|
||||
line_artist_label->hide();
|
||||
@ -597,7 +597,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
|
||||
case RDLogLine::MusicLink:
|
||||
line_icon_label->setPixmap(*line_music_map);
|
||||
SetColor(QColor(LOGLINEBOX_MARKER_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_MARKER_COLOR));
|
||||
line_title_label->hide();
|
||||
line_description_label->hide();
|
||||
line_artist_label->hide();
|
||||
@ -612,7 +612,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
|
||||
case RDLogLine::TrafficLink:
|
||||
line_icon_label->setPixmap(*line_traffic_map);
|
||||
SetColor(QColor(LOGLINEBOX_MARKER_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_MARKER_COLOR));
|
||||
line_title_label->hide();
|
||||
line_description_label->hide();
|
||||
line_artist_label->hide();
|
||||
@ -627,7 +627,7 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
|
||||
case RDLogLine::Chain:
|
||||
line_icon_label->setPixmap(*line_chain_map);
|
||||
SetColor(QColor(LOGLINEBOX_CHAIN_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_CHAIN_COLOR));
|
||||
line_title_label->setText(logline->markerLabel());
|
||||
line_description_label->setText("");
|
||||
line_artist_label->setText(logline->markerComment());
|
||||
@ -648,10 +648,10 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
|
||||
cut=new RDCut(QString().sprintf("%06u_%03u",logline->cartNumber(),
|
||||
logline->cutNumber()));
|
||||
if(!cart->exists()) {
|
||||
SetColor(QColor(LOGLINEBOX_MISSING_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_MISSING_COLOR));
|
||||
}
|
||||
else {
|
||||
SetColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
}
|
||||
line_cart_label->setText(QString().sprintf("%06u",cart->number()));
|
||||
line_cut_label->setText("");
|
||||
@ -696,7 +696,7 @@ void LogLineBox::setTimer(int msecs)
|
||||
|
||||
void LogLineBox::clear()
|
||||
{
|
||||
SetColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
setBackgroundColor(QColor(LOGLINEBOX_BACKGROUND_COLOR));
|
||||
line_cart_label->setText("");
|
||||
line_cut_label->setText("");
|
||||
line_group_label->setText("");
|
||||
@ -820,6 +820,8 @@ void LogLineBox::mouseDoubleClickEvent(QMouseEvent *e)
|
||||
void LogLineBox::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
QPainter *p=new QPainter(this);
|
||||
p->fillRect(0,0,sizeHint().width()-2,sizeHint().height()-2,
|
||||
backgroundColor());
|
||||
p->drawRect(0,0,sizeHint().width()-2,sizeHint().height()-2);
|
||||
p->end();
|
||||
delete p;
|
||||
@ -842,42 +844,6 @@ void LogLineBox::dropEvent(QDropEvent *e)
|
||||
}
|
||||
|
||||
|
||||
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(Qt::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);
|
||||
}
|
||||
|
||||
|
||||
void LogLineBox::UpdateCountdown()
|
||||
{
|
||||
QTime current=QTime::currentTime().addMSecs(rda->station()->timeOffset());
|
||||
|
@ -92,7 +92,6 @@ class LogLineBox : public QWidget
|
||||
void dropEvent(QDropEvent *e);
|
||||
|
||||
private:
|
||||
void SetColor(QColor);
|
||||
void UpdateCountdown();
|
||||
void PrintTime();
|
||||
QString TimeString(const QTime &time);
|
||||
|
@ -460,6 +460,8 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
air_message_label=new RDLabel(this);
|
||||
air_message_label->setGeometry(sizeHint().width()-425,70,
|
||||
MESSAGE_WIDGET_WIDTH,air_stereo_meter->sizeHint().height());
|
||||
air_message_label->setStyleSheet("background-color: "+
|
||||
QColor(LOGLINEBOX_BACKGROUND_COLOR).name());
|
||||
air_message_label->setWordWrapEnabled(true);
|
||||
air_message_label->setLineWidth(1);
|
||||
air_message_label->setMidLineWidth(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user