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

Fix issues with animation markers drawing #99363

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

passivestar
Copy link
Contributor

Animation markers introduced in #91765 draw unnecessary separator lines in the header over the already existing lines. This seems to be an oversight because those lines don't seem to have anything to do with markers and double lines are hard to spot in the default theme. However in my theme they introduced a noticeable regression because I'm not using those separators and #91765 drew some unthemable ones.

I also added missing EDSCALE when drawing marker lines for better HiDPI support and added a little space around the marker label text

Before/After fixes in this PR:

g2

You can notice the line being drawn twice in the default theme in close comparison:

g1

Copy link
Member

@fire fire left a comment

Choose a reason for hiding this comment

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

The picture before and after looks good. Did not review the code.

@AThousandShips AThousandShips added this to the 4.4 milestone Nov 17, 2024
Copy link
Member

@SaracenOne SaracenOne left a comment

Choose a reason for hiding this comment

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

Was discussed in the Animation meeting and seems fine 👍

@passivestar
Copy link
Contributor Author

When testing with different scale I noticed that marker font size was missing an EDSCALE so I fixed that too

@Repiteo Repiteo merged commit 63a408f into godotengine:master Nov 19, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 19, 2024

Thanks!

@passivestar passivestar deleted the fix-marker-drawing branch November 19, 2024 21:41
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.

6 participants