mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-18 22:22:36 +02:00
2023-04-29 Fred Gleason <fredg@paravelsystems.com>
* Changed the behavior of the logo display in rdairplay(1) so as to show the default Rivendell logo when the 'Logo Image' control in rdadmin(1) is not set to a valid graphical image file. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
b18da6a1aa
commit
dde4191bfe
@ -24045,3 +24045,7 @@
|
||||
* Added a 'RDWidget::setBackgroundPixmap()' method.
|
||||
* Fixed a bug in the voice tracker in rdairplay(1) that caused the
|
||||
the track waveform areas to be painted solid black.
|
||||
2023-04-29 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Changed the behavior of the logo display in rdairplay(1) so as to
|
||||
show the default Rivendell logo when the 'Logo Image' control in
|
||||
rdadmin(1) is not set to a valid graphical image file.
|
||||
|
@ -62,16 +62,12 @@ TopStrip::TopStrip(QWidget *parent)
|
||||
// Logo
|
||||
//
|
||||
QPixmap pix(rda->airplayConf()->logoPath());
|
||||
if(pix.isNull()) {
|
||||
pix.load("/usr/share/pixmaps/rivendell/rdairplay_logo.png");
|
||||
}
|
||||
d_logo=new QLabel(this);
|
||||
d_logo->setAlignment(Qt::AlignCenter);
|
||||
d_logo->setPixmap(pix);
|
||||
/*
|
||||
d_logo->setFont(bannerFont());
|
||||
d_logo->setText(QString::asprintf("User Logo\n(%dx%d)",
|
||||
RD_RDAIRPLAY_LOGO_WIDTH,
|
||||
RD_RDAIRPLAY_LOGO_HEIGHT));
|
||||
d_logo->setStyleSheet("background-color: #99FF99");
|
||||
*/
|
||||
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user