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

Cache the font of the slider / do not dispose colors #579

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Mar 22, 2024

Currently the font and colors are created on each call of getTextFont / get...Color and as these methods are called on each render it creates many fonts/colors and their dispose listener.

This caches the font and removes the disposal of colors as SWT no longer acquire native resources for colors. Beside that a new getFontSize method is provided so one can easily override that.

Currently the font and colors are created on each call of getTextFont /
get...Color and as these methods are called on each render it creates
many fonts/colors and their dispose listener.

This caches the font and removes the disposal of colors as SWT no longer
acquire native resources for colors. Beside that a new getFontSize
method is provided so one can easily override that.
@laeubi laeubi requested a review from lcaron March 22, 2024 05:47
@lcaron lcaron merged commit 8622402 into EclipseNebula:master Mar 23, 2024
3 checks passed
@lcaron
Copy link
Contributor

lcaron commented Mar 23, 2024

PR Merged, thank you @laeubi

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.

2 participants