Skip to content

Use symbolic icons for buttons in GTK toolbar. #17539

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

Merged
merged 1 commit into from
May 31, 2020

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented May 29, 2020

PR Summary

Unfortunately, the only way to trigger this is to rename the files, so add some symlinks to the existing SVG. Switching from PNG to SVG should be scalable as well.

This is an alternative to #17459 for GTK only. The main advantage is that leaving it to GTK allows it to work for any theme, e.g., if you use Caribbean-Blue, the buttons will be blue instead of black or white.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • [?] New features are documented, with examples if plot related
  • [N/A] Documentation is sphinx and numpydoc compliant
  • [N/A] Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • [N/A] Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@QuLogic QuLogic requested a review from anntzer May 29, 2020 23:55
@anntzer
Copy link
Contributor

anntzer commented May 30, 2020

You also need help.svg for toolmanager.

Unfortunately, the only way to trigger this is to rename the files, so
add some symlinks to the existing SVG. Switching from PNG to SVG should
be scalable as well.
@QuLogic QuLogic force-pushed the gtk-symbolic-icons branch from 82bc27a to 82877b7 Compare May 30, 2020 21:35
@QuLogic
Copy link
Member Author

QuLogic commented May 30, 2020

Yes, added.

Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

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

works for me

@timhoffm timhoffm added this to the v3.3.0 milestone May 31, 2020
@timhoffm timhoffm merged commit 5445d77 into matplotlib:master May 31, 2020
@QuLogic QuLogic deleted the gtk-symbolic-icons branch May 31, 2020 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants