2024-05-08 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdairplay(1) that caused the start time
	indicators in the button log to display the incorrect color for
	hard time events.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2024-05-08 15:25:48 -04:00
parent 1908a556f7
commit 09823c57af
3 changed files with 13 additions and 0 deletions

View File

@ -24761,3 +24761,7 @@
for addition/move/delete operations to fail to be displayed for User for addition/move/delete operations to fail to be displayed for User
panels when the user didn't have the 'Configure System Panels' panels when the user didn't have the 'Configure System Panels'
privilege. privilege.
2024-05-08 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdairplay(1) that caused the start time
indicators in the button log to display the incorrect color for
hard time events.

View File

@ -136,11 +136,13 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
QColor(Qt::black)); QColor(Qt::black));
line_time_palette.setColor(QPalette::Inactive,QPalette::Foreground, line_time_palette.setColor(QPalette::Inactive,QPalette::Foreground,
QColor(Qt::black)); QColor(Qt::black));
line_time_style_sheet="";
line_hard_palette=QGuiApplication::palette(); line_hard_palette=QGuiApplication::palette();
line_hard_palette.setColor(QPalette::Active,QPalette::Foreground, line_hard_palette.setColor(QPalette::Active,QPalette::Foreground,
QColor(LOG_HARDTIME_TEXT_COLOR)); QColor(LOG_HARDTIME_TEXT_COLOR));
line_hard_palette.setColor(QPalette::Inactive,QPalette::Foreground, line_hard_palette.setColor(QPalette::Inactive,QPalette::Foreground,
QColor(LOG_HARDTIME_TEXT_COLOR)); QColor(LOG_HARDTIME_TEXT_COLOR));
line_hard_style_sheet="color: "+QColor(LOG_HARDTIME_TEXT_COLOR).name();
line_timescale_palette=QGuiApplication::palette(); line_timescale_palette=QGuiApplication::palette();
line_timescale_palette.setColor(QPalette::Active,QPalette::Foreground, line_timescale_palette.setColor(QPalette::Active,QPalette::Foreground,
@ -252,6 +254,7 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
line_time_label->setFont(line_font); line_time_label->setFont(line_font);
line_time_label->setAlignment(Qt::AlignRight); line_time_label->setAlignment(Qt::AlignRight);
line_time_label->setPalette(line_time_palette); line_time_label->setPalette(line_time_palette);
line_time_label->setStyleSheet(line_time_style_sheet);
// //
// Talk Time // Talk Time
@ -556,9 +559,11 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
false,false)); false,false));
if(line_logline->timescalingActive()) { if(line_logline->timescalingActive()) {
line_length_label->setPalette(line_hard_palette); line_length_label->setPalette(line_hard_palette);
line_length_label->setStyleSheet(line_hard_style_sheet);
} }
else { else {
line_length_label->setPalette(line_time_palette); line_length_label->setPalette(line_time_palette);
line_length_label->setStyleSheet(line_time_style_sheet);
} }
if((line_logline->source()!=RDLogLine::Tracker)|| if((line_logline->source()!=RDLogLine::Tracker)||
line_logline->originUser().isEmpty()|| line_logline->originUser().isEmpty()||
@ -975,6 +980,7 @@ void LogLineBox::PrintTime()
startTime(RDLogLine::Logged))); startTime(RDLogLine::Logged)));
} }
line_time_label->setPalette(line_hard_palette); line_time_label->setPalette(line_hard_palette);
line_time_label->setStyleSheet(line_hard_style_sheet);
break; break;
default: default:
@ -988,6 +994,7 @@ void LogLineBox::PrintTime()
line_time_label->setText(""); line_time_label->setText("");
} }
line_time_label->setPalette(line_time_palette); line_time_label->setPalette(line_time_palette);
line_time_label->setStyleSheet(line_time_style_sheet);
break; break;
} }
} }

View File

@ -114,7 +114,9 @@ class LogLineBox : public RDWidget
QPalette line_changed_stop_palette; QPalette line_changed_stop_palette;
QPalette line_changed_play_palette; QPalette line_changed_play_palette;
QPalette line_time_palette; QPalette line_time_palette;
QString line_time_style_sheet;
QPalette line_hard_palette; QPalette line_hard_palette;
QString line_hard_style_sheet;
QPalette line_timescale_palette; QPalette line_timescale_palette;
QPalette line_transition_palette; QPalette line_transition_palette;
QPalette line_text_palette; QPalette line_text_palette;