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

Fixes to issue #2313 Light (Preview) Theme #2485

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

mai-tran-03
Copy link

@mai-tran-03 mai-tran-03 commented Nov 4, 2024

Since the progress item background color is inconsistent in the light preview theme and is fine in other themes, I explicitly made DARK_THEME a custom theme so it would still have its color components while the background color is consistent in the light preview.

Fixes #2313

@mai-tran-03 mai-tran-03 changed the title Fixes to issue #2313 Fixes to issue #2313 Light (Preview) Theme Nov 4, 2024
@BeckerWdf
Copy link
Contributor

BeckerWdf commented Nov 4, 2024

getCustomThemeFlag was introduced with e60b130 which was a fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=506553

Copy link
Member

@opcoach opcoach left a comment

Choose a reason for hiding this comment

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

I rebased your contribution on master locally, launched it, and ran a 'clean all the projects' installed (I imported all the platform ui projects in my workspace). it is working well with or without a theme and whatever the theme chosen for the 'building' progress...

Please give a good name to the method used even if the method is private.

@@ -1014,7 +1016,7 @@ private boolean getCustomThemeFlag() {
if (engine != null) {
ITheme activeTheme = engine.getActiveTheme();
if (activeTheme != null) {
return !DEFAULT_THEME.equals(activeTheme.getId());
return DARK_THEME.equals(activeTheme.getId());
Copy link
Member

Choose a reason for hiding this comment

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

the getCustomThemeFlag() says in the javadoc that it is returning true if a theme is selected. But the method returns true if the current theme is the dark one. even if this is a private method, it could be renamed into 'isDarkThemeSelected'

@vogella
Copy link
Contributor

vogella commented Nov 27, 2024

@BeckerWdf is this PR included in or superseded by #2549?

@BeckerWdf
Copy link
Contributor

BeckerWdf commented Nov 28, 2024

@BeckerWdf is this PR included in or superseded by #2549?

no it's not.

@BeckerWdf
Copy link
Contributor

This PR does not touch the theme's css file at all. So it's not really related.

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.

Light (Preview) Theme: Issues in Progress View
4 participants