mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 10:50:27 -04:00
Fix background color in the Viewer so it affects only the desired qwidgets
This commit is contained in:
parent
6c1cb50c62
commit
487df6eec5
@ -57,6 +57,7 @@ Viewer::Viewer(QWidget *parent)
|
||||
setFrameStyle(QFrame::NoFrame);
|
||||
setAlignment(Qt::AlignCenter);
|
||||
|
||||
setObjectName("YACReaderViewer");
|
||||
updateBackgroundColor(Configuration::getConfiguration().getBackgroundColor());
|
||||
//---------------------------------------
|
||||
mglass = new MagnifyingGlass(
|
||||
@ -1030,7 +1031,8 @@ void Viewer::updateOptions()
|
||||
|
||||
void Viewer::updateBackgroundColor(const QColor &color)
|
||||
{
|
||||
setStyleSheet(QString("background-color: %1;").arg(color.name()));
|
||||
setStyleSheet(QString("#YACReaderViewer { background-color: %1; }").arg(color.name()));
|
||||
content->setStyleSheet(QString("background-color: %1;").arg(color.name()));
|
||||
}
|
||||
|
||||
void Viewer::animateShowTranslator()
|
||||
|
Loading…
Reference in New Issue
Block a user