Skip to content

Commit 4736393

Browse files
committedJan 25, 2013
Fix background issue for Gnome desktop
- Revert de437ab
1 parent fbe6c6a commit 4736393

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
 

‎src/app/qgisappstylesheet.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ void QgisAppStyleSheet::buildStyleSheet( const QMap<QString, QVariant>& opts )
156156
}
157157
}
158158

159+
//fix background issue for gnome desktop
160+
if ( mLinuxOS && mGtkStyle )
161+
{
162+
ss += "QListWidget#mOptionsListWidget{";
163+
ss += "background-color: white;";
164+
ss += "} ";
165+
}
166+
159167
QgsDebugMsg( QString( "Stylesheet built: %1" ).arg( ss ) );
160168

161169
emit appStyleSheetChanged( ss );

‎src/ui/qgsoptionsbase.ui

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
<height>16777215</height>
6060
</size>
6161
</property>
62-
<property name="styleSheet">
63-
<string notr="true">background-color: #fff</string>
64-
</property>
6562
<property name="horizontalScrollBarPolicy">
6663
<enum>Qt::ScrollBarAlwaysOff</enum>
6764
</property>

2 commit comments

Comments
 (2)

dakcarto commented on Jan 25, 2013

@dakcarto
MemberAuthor

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 commented on Jan 25, 2013

@timlinux
Member

Yup that works!

Thanks

Please sign in to comment.