mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-08-16 08:34:12 +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:
parent
d0aa89aa75
commit
31f54ee4fc
@ -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'.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user