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

Optimize and tweak some SVGs, improve consistency between icons, and fix broken masks in light mode #82133

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

MewPurPur
Copy link
Contributor

@MewPurPur MewPurPur commented Sep 22, 2023

Removes the 2D dark color. Adds a forced black color (similar to forced white) to use for shades, and replaces the uses of 2D dark with that. This is a more flexible solution, as it allows a shade effect to be used everywhere (our icons already extensively use transparency tricks to achieve the coloring they need)

Aside from this, I fixed some icons. The biggest are these few:

image

Which broke because I was using an #ffffff mask, but this gets converted into a dark color on light theme.

But also others, and some tweaks too, like optimizations and standardizing viewport icons' widths.

Also, Helps with #82579

@Calinou
Copy link
Member

Calinou commented Oct 1, 2023

Tested locally. Unfortunately, this doesn't fix the issue for 3D gizmo icons for me:

image

The rest of the changes look good, I just thought the PR would fix that particular issue.

@MewPurPur
Copy link
Contributor Author

MewPurPur commented Oct 1, 2023

OK I see, this isn't a complete fix, it only helps with the black border. I don't know about the other thing.

@capnm
Copy link
Contributor

capnm commented Oct 1, 2023

In the 2D view, it looks now perfect.

image

@capnm
Copy link
Contributor

capnm commented Oct 1, 2023

Sprite3D texture scale 0.15 ...
image

@capnm
Copy link
Contributor

capnm commented Oct 1, 2023

I recompiled the current tip + this PR + cleared all Godot settings & caches
The artifacts are almost invisible to the human eye.

grafik
grafik
grafik

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally (rebased on top of master 5ee9831), it works as expected.

@YuriSizov
Copy link
Contributor

YuriSizov commented Nov 3, 2023

Fixes #84309

@MewPurPur I would really appreciate if you didn't do that. These are completely different issues. I can't even be sure @Calinou checked this other part, since it was added last minute. It may also require further discussion.

We could benefit from separate PRs and clearer titles/commit messages about what specifically is fixed about icons.

@MewPurPur
Copy link
Contributor Author

MewPurPur commented Nov 3, 2023

Should I split off the negative space Panel icons?

I think the rest don't warrant much discussion. Cali was also the one who suggested the hollow icons, so I doubt he missed this in his review.

@MewPurPur MewPurPur changed the title Fix some SVGs Optimize and tweak some SVGs, improve consistency between icons, and fix broken masks in light mode Nov 3, 2023
@YuriSizov
Copy link
Contributor

Should I split off the negative space Panel icons?

Yes, I think so.

@MewPurPur
Copy link
Contributor Author

Yessir!

@YuriSizov
Copy link
Contributor

Could you also amend the commit message?

@YuriSizov YuriSizov merged commit a8bcbff into godotengine:master Nov 6, 2023
15 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@MewPurPur MewPurPur deleted the svg-tweaks branch November 6, 2023 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants