Skip gradient image for flat look in FormHeading and CSS handler#3808
Draft
vogella wants to merge 2 commits intoeclipse-platform:masterfrom
Draft
Skip gradient image for flat look in FormHeading and CSS handler#3808vogella wants to merge 2 commits intoeclipse-platform:masterfrom
vogella wants to merge 2 commits intoeclipse-platform:masterfrom
Conversation
Contributor
|
This pull request changes some projects for the first time in this development cycle. An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch. Git patchFurther information are available in Common Build Issues - Missing version increments. |
Contributor
54d9573 to
9cf24cd
Compare
Contributor
Author
|
Rebased onto eclipse/master and resolved merge conflicts in FlatLookTest.java. Fixed a bug in the FormHeading optimization where the background image wasn't being cleared correctly in all cases. Verified with mvn clean verify in forms test bundle. |
…andler FormHeading.setTextBackground now detects when all gradient colors are identical and uses a solid background instead of generating a gradient image. This avoids unnecessary image allocation and rendering overhead for flat themes. CSSPropertyFormHandler now simplifies identical-color gradient lists from CSS into a single-color array before passing to the form widget, preventing unnecessary gradient processing downstream. Fixes eclipse-platform#3803
Section.updateHeaderImage now detects when the gradient color equals the title bar background and skips creating the gradient image entirely. This avoids unnecessary image allocation and tiling for flat themes where both CSS properties are set to the same value.
9cf24cd to
50e467e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setTextBackground): Detect when all gradient colors are identical and usesetBackground(color)instead of generating a gradient image viaFormImages. This avoids unnecessaryImageallocation and GC rendering for flat themes.These changes implement Levels 1 and 4 from #3803, complementing the Level 2/3 changes in #3807.
Fixes #3803
Test plan
text-background-colorwith identical gradient stops uses solid backgroundtext-background-colorwith distinct gradient stops still creates gradient🤖 Generated with Claude Code