mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 15:39:47 +00:00
Use the standard KDE color for the content area messages.
Patch by Robert Knight, thanks! BUG: 156457 svn path=/trunk/KDE/kdegraphics/okular/; revision=765205
This commit is contained in:
parent
b897d75b0b
commit
a3e0474e35
|
@ -22,6 +22,7 @@
|
|||
#include <qtimer.h>
|
||||
#include <qtoolbutton.h>
|
||||
#include <kacceleratormanager.h>
|
||||
#include <kcolorscheme.h>
|
||||
#include <kiconloader.h>
|
||||
#include <klocale.h>
|
||||
|
||||
|
@ -293,10 +294,7 @@ PageViewTopMessage::PageViewTopMessage( QWidget * parent )
|
|||
{
|
||||
setAutoFillBackground( true );
|
||||
QPalette pal = palette();
|
||||
pal.setColor( QPalette::Active, QPalette::Window, Qt::yellow );
|
||||
pal.setColor( QPalette::Inactive, QPalette::Window, Qt::yellow );
|
||||
pal.setColor( QPalette::Disabled, QPalette::Window, Qt::yellow );
|
||||
pal.setColor( QPalette::WindowText, Qt::black );
|
||||
KColorScheme::adjustBackground( pal, KColorScheme::NeutralBackground, QPalette::Window );
|
||||
setPalette( pal );
|
||||
QHBoxLayout * lay = new QHBoxLayout( this );
|
||||
lay->setMargin( 4 );
|
||||
|
|
Loading…
Reference in a new issue