Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix background issue for Gnome desktop
- Revert de437ab
  • Loading branch information
dakcarto committed Jan 25, 2013
1 parent fbe6c6a commit 4736393
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/app/qgisappstylesheet.cpp
Expand Up @@ -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 );
Expand Down
3 changes: 0 additions & 3 deletions src/ui/qgsoptionsbase.ui
Expand Up @@ -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>
Expand Down

2 comments on commit 4736393

@dakcarto
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup that works!

Thanks

Please sign in to comment.