diff --git a/ChangeLog b/ChangeLog index 117e42dc..e040291d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23017,3 +23017,7 @@ the added event. 2022-04-30 Fred Gleason * Removed debugging printf()s from lib/rdmarkerview.cpp'. +2022-04-30 Fred Gleason + * Fixed a regression in rdairplay(1) that caused all of the button + labels in the Button Log widget to be initialized with a black + background. diff --git a/rdairplay/loglinebox.cpp b/rdairplay/loglinebox.cpp index 4b4135d0..1c409f88 100644 --- a/rdairplay/loglinebox.cpp +++ b/rdairplay/loglinebox.cpp @@ -2,7 +2,7 @@ // // On Air Playout Utility for Rivendell. // -// (C) Copyright 2002-2021 Fred Gleason +// (C) Copyright 2002-2022 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as @@ -302,6 +302,8 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent) line_trans_label->setStyleSheet("background-color: #FF00FF"); #endif // COLORIZE_LAYOUT + SetPalette(line_default_palette,Qt::black); + setAcceptDrops(true); } @@ -893,7 +895,8 @@ void LogLineBox::paintEvent(QPaintEvent *e) { QPainter *p=new QPainter(this); p->fillRect(0,0,size().width()-2,size().height()-2, - palette().color(QPalette::Window)); + palette().color(QPalette::Window)); + // QGuiApplication::palette().color(QPalette::Window)); p->setPen(palette().color(QPalette::Dark)); p->drawRect(0,0,size().width()-1,size().height()-1); p->end(); @@ -924,8 +927,8 @@ void LogLineBox::dropEvent(QDropEvent *e) void LogLineBox::SetPalette(const QPalette &pal,const QColor &grp_color) { // printf("%d:SetPalette(%s,%s)\n",log_line, - // pal.color(QPalette::WindowText).name().toUtf8().constData(), - // pal.color(QPalette::Window).name().toUtf8().constData()); + // pal.color(QPalette::WindowText).name().toUtf8().constData(), + // pal.color(QPalette::Window).name().toUtf8().constData()); setPalette(pal); setStyleSheet("color:"+pal.color(QPalette::WindowText).name()+ ";background-color:"+pal.color(QPalette::Window).name());