Skip to content
Permalink
Browse files
Fix background issue for Gnome desktop
- Revert de437ab
  • Loading branch information
dakcarto committed Jan 25, 2013
1 parent fbe6c6a commit 4736393fe0d080efb114fd2beec55c20d62f3058
Showing with 8 additions and 3 deletions.
  1. +8 −0 src/app/qgisappstylesheet.cpp
  2. +0 −3 src/ui/qgsoptionsbase.ui
@@ -156,6 +156,14 @@ void QgisAppStyleSheet::buildStyleSheet( const QMap<QString, QVariant>& opts )
}
}

//fix background issue for gnome desktop
if ( mLinuxOS && mGtkStyle )
{
ss += "QListWidget#mOptionsListWidget{";
ss += "background-color: white;";
ss += "} ";
}

QgsDebugMsg( QString( "Stylesheet built: %1" ).arg( ss ) );

emit appStyleSheetChanged( ss );
@@ -59,9 +59,6 @@
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: #fff</string>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>

2 comments on commit 4736393

@dakcarto

This comment has been minimized.

Copy link
Member Author

@dakcarto dakcarto replied Jan 25, 2013

Tim,

Could you verify this fix still works for your setup? Seems that when the background is set via the app stylesheet (instead of directly on the widget), the issue of scrollbars reverting to default qt-style instead of os-style doesn't happen.

@timlinux

This comment has been minimized.

Copy link
Member

@timlinux timlinux replied Jan 25, 2013

Yup that works!

Thanks

Please sign in to comment.