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

Use TextEdit caret color for minimap highlight (fix minimap regression) #91137

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

ckaiser
Copy link
Contributor

@ckaiser ckaiser commented Apr 25, 2024

Fixes the minimap highlight regression mentioned in #78311, decided to use the caret color as a base since that way it's not a hardcoded value and it's consistent across themes. Originally I attempted to get the background color but the only way to get actual one was to make a StyleBoxFlat from StyleBox and then get the bg_color and this seems much cleaner IMO but I might be missing something on that front.

Before & After:
comparison_bug

@ckaiser ckaiser requested a review from a team as a code owner April 25, 2024 06:30
@YeldhamDev YeldhamDev added this to the 4.3 milestone Apr 25, 2024
@YeldhamDev YeldhamDev linked an issue Apr 25, 2024 that may be closed by this pull request
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Could you rebase to fix CI? There was a temporary test failure in master.

@ckaiser ckaiser force-pushed the fix-minimap-lightmode branch from 4c70385 to 91fff47 Compare April 25, 2024 07:27
@akien-mga akien-mga merged commit 50a38cd into godotengine:master Apr 25, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@ckaiser ckaiser deleted the fix-minimap-lightmode branch April 25, 2024 19:21
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.

3 participants