2021-06-26 Fred Gleason <fredg@paravelsystems.com>

* Added an 'AIR_WIDGET_BACKGROUND_COLOR' define to
	'rdairplay/colors.h'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-06-26 11:40:06 -04:00
parent d0aa89aa75
commit 31f54ee4fc
4 changed files with 9 additions and 2 deletions

View File

@ -21965,3 +21965,6 @@
2021-06-26 Fred Gleason <fredg@paravelsystems.com>
* Refactored the layout in rdairplay(1) to achieve cleaner
separation of global and per-log UI elements.
2021-06-26 Fred Gleason <fredg@paravelsystems.com>
* Added an 'AIR_WIDGET_BACKGROUND_COLOR' define to
'rdairplay/colors.h'.

View File

@ -21,6 +21,7 @@
#include <QPainter>
#include "button_log.h"
#include "colors.h"
ButtonLog::ButtonLog(RDLogPlay *log,int id,RDAirPlayConf *conf,bool allow_pause,
QWidget *parent)
@ -535,7 +536,8 @@ void ButtonLog::resizeEvent(QResizeEvent *e)
void ButtonLog::paintEvent(QPaintEvent *e)
{
QPainter *p=new QPainter(this);
p->fillRect(0,0,size().width(),size().height(),QColor("#D0D0D0"));
p->fillRect(0,0,size().width(),size().height(),
QColor(AIR_WIDGET_BACKGROUND_COLOR));
delete p;
}

View File

@ -75,6 +75,7 @@
//
#define AIR_FLASH_COLOR Qt::blue
#define AIR_ERROR_COLOR Qt::red
#define AIR_WIDGET_BACKGROUND_COLOR "#D0D0D0"
//
// LogLineBox Colors

View File

@ -43,7 +43,8 @@ PieCounter::PieCounter(int count_length,QWidget *parent)
onair_on_palette=palette();
onair_on_palette.setColor(QPalette::Background,PIE_ONAIR_COLOR);
onair_off_palette=palette();
onair_on_palette.setColor(QPalette::Background,QColor("#D0D0D0"));
onair_on_palette.
setColor(QPalette::Background,QColor(AIR_WIDGET_BACKGROUND_COLOR));
setPalette(onair_on_palette);
setAutoFillBackground(true);