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

Change ICompletionData.Image from Bitmap to IImage #341

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

mgarstenauer
Copy link
Contributor

I propose changing ICompletionData.Image from Bitmap to IImage. Having Bitmap in the interface is unnecessarily restrictive. Changing the type to IImage allows other types of image sources. For example: CroppedBitmap, DrawingImage

In my case, I have an icon font that has a custom IImage implementation.

⚠ Note that this is a breaking change! Any application implementing IComplectionData (like AvaloniaEdit.Demo) will have to be updated. However, I think that this change is worthwhile and should be made before releasing 11.0.0.

Copy link
Collaborator

@danipen danipen left a comment

Choose a reason for hiding this comment

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

LGTM.

@Gillibald Gillibald merged commit d6b2c05 into AvaloniaUI:master Jun 9, 2023
@mgarstenauer mgarstenauer deleted the icompletiondata-iimage branch June 9, 2023 07:30
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.

3 participants