Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt_gui: use native default icon theme if suitable #202

Merged
merged 1 commit into from
Feb 29, 2020

Conversation

xqms
Copy link
Contributor

@xqms xqms commented Feb 9, 2020

Currently, qt_gui checks if QIcon::themeName() is empty and, if that is the case, proceeds to set Tango as the icon theme. However, QIcon::themeName() can be empty, meaning "use the system default theme". This PR simply removes this check. If there is any motivation for the check I'm not aware of, please disregard.

On my system (KDE), this allows rqt to use the native icon theme (Breeze), resulting in a much more integrated look and feel.

We still have the other checks that make sure important icons are available.

This might also solve problems on Mac & Windows (#154), where Tango is not available, but I don't know if there is any default icon theme there.

@dirk-thomas
Copy link
Contributor

@ros-pull-request-builder retest this please

@dirk-thomas
Copy link
Contributor

Thanks for the patch.

The Noetic CI can be ignored - it will be resolved by #201.

@dirk-thomas dirk-thomas merged commit ada0f9f into ros-visualization:kinetic-devel Feb 29, 2020
@dirk-thomas
Copy link
Contributor

Cherry-picked to crystal-devel: 33e18ab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants