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

New theme icons #712

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

Jowan-Spooner
Copy link
Contributor

@Jowan-Spooner Jowan-Spooner commented Oct 23, 2024

This is a follow up to #710, showing how svg icons could help with icons. There is a bunch of icons not yet converted though.

This already removes the two light and dark icon folders. To do so some icons have been replaced already. This is done by adding the icons to the theme, then adding through code (e.g. `get_theme_icon("settings", "MM_Icons").

This is basically a smaller variant of #708, only including the svg icon set and adding it in in a few places.

Some places with new icons (and properly colored icons on light themes):
Dark Theme after:
grafik

Light Theme before:
grafik
Light Theme after:
grafik

Adds in an SVG icon sheet. This allows having color-changing icons and possibly having scalable icons in the future as well.

This required changing the icons in some places. We also don't want to manually reference the icon-sheet in scenes, but instead always use the theme (add the icon to the theme, e.g. the MM_Icons type) then assign them in code with `get_theme_icon("settings", "MM_Icons")`. In some cases we might have to update this on theme changes listening to NOTIFICATION_THEME_CHANGED.
@Jowan-Spooner Jowan-Spooner marked this pull request as ready for review October 24, 2024 17:02
We now have a default.tres theme and both default dark and default light are using the enhanced theme system. This makes them behave more similar. The default is still using the same base colors as dark, this could be changed in the future, probably when we want to expose the colors to the users.
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.

1 participant