Skip to content

Conversation

@mickaelistria
Copy link
Contributor

Default color for Forms are changed so that gradients are removed,
system colors are used.

@mickaelistria mickaelistria linked an issue Jun 9, 2022 that may be closed by this pull request
@vogella
Copy link
Contributor

vogella commented Jun 10, 2022

New

image

Old

image

Definitely better, lets merge so that it gets a lot of usage during the release phase.

@trancexpress
Copy link
Contributor

Will I be seeing this change in my IDE or is it something coming from the theme?

@iloveeclipse
Copy link
Member

Open plugin.xml editor and enjoy.

// Examples: Win High Con Black, Win High Con #1, Win High Con #2
// (covered in the second part of the OR clause above)
createColor(IFormColors.TITLE, rgb);
createColor(IFormColors.TITLE, getSystemColor(SWT.COLOR_TITLE_FOREGROUND));
Copy link
Contributor

Choose a reason for hiding this comment

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

Even nicer and more consistent with the OS systems would IMHO be to use a gray color as background, not sure if we have a good constant for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The palette is visible running SWT's ControlExample in the "Colors" tab. There are the COLOR_WIDGET_*_SHADOW to serve this. I personally don't mind about which exact color we pick, as long as it's readable, it's a system color and gradients are off by default. So please give a try and suggest a color and I can update.

@vogella
Copy link
Contributor

vogella commented Jun 10, 2022

This is how it looks currently in the light theme under Linux with gray background. IMHO this is more inline with the current OS L&F

image

@vogella
Copy link
Contributor

vogella commented Jun 10, 2022

The current gray in the light theme seems to fit in nicely with the OS

image

Default color for Forms are changed so that gradients are removed,
system colors are used.
@mickaelistria
Copy link
Contributor Author

@vogella I have changed to use COLOR_WIDGET_LIGHT_SHADOW instead.

@vogella
Copy link
Contributor

vogella commented Jun 10, 2022

COLOR_WIDGET_LIGHT_SHADOW

Can you add a screenshot?

@mickaelistria
Copy link
Contributor Author

Screenshot from 2022-06-10 12-53-08

@vogella
Copy link
Contributor

vogella commented Jun 10, 2022

On my Ubuntu

image

LGTM, +1

@mickaelistria mickaelistria merged commit c9e71b8 into eclipse-platform:master Jun 10, 2022
vogella added a commit that referenced this pull request Jun 10, 2022
With #121
form default L&F has been updated to have no gradient anymore.
vogella added a commit to vogella/www.eclipse.org-eclipse-news that referenced this pull request Jun 14, 2022
vogella added a commit to eclipse-platform/www.eclipse.org-eclipse-news that referenced this pull request Jun 14, 2022
HannesWell pushed a commit to HannesWell/eclipse.platform.ui that referenced this pull request Jul 1, 2023
…form#121)

Signed-off-by: azerr <azerr@redhat.com>

Signed-off-by: azerr <azerr@redhat.com>
Co-authored-by: azerr <azerr@redhat.com>
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.

Remove forms default gradient and use a SWT color constant

4 participants