mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -75,6 +75,7 @@
|
||||
//
|
||||
#define AIR_FLASH_COLOR Qt::blue
|
||||
#define AIR_ERROR_COLOR Qt::red
|
||||
#define AIR_WIDGET_BACKGROUND_COLOR "#D0D0D0"
|
||||
|
||||
//
|
||||
// LogLineBox Colors
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user