GithubHelp home page GithubHelp logo

Comments (9)

AObuchow avatar AObuchow commented on June 8, 2024 1

Thanks for reporting the behaviour on MacOS.

On Linux, the issue is somewhat similar: Even if you have Eclipse set to a Light theme, the workspace launcher will use the GTK theme, which may or may not be dark.

I think the issue might be more difficult to fix on Linux than OSX since it is GTK theme dependant, however I'm not sure.

from eclipse.platform.ui.

laeubi avatar laeubi commented on June 8, 2024 1

so there is no way we can predict the theme for the workspace launcher dialog:

Eclipse stores the last used workspace so one could use the theme of the most recent workspace if its really important for the workspace chooser dialog to be "styled" but I'm not sure if styling is even available at this stage.

from eclipse.platform.ui.

vogella avatar vogella commented on June 8, 2024

@davidsoles are you selecting the OS dark theme or the dark theme of Eclipse?

from eclipse.platform.ui.

davidsoles avatar davidsoles commented on June 8, 2024

@vogella I'm selecting the dark theme of Eclipse.

from eclipse.platform.ui.

vogella avatar vogella commented on June 8, 2024

Unfortunately the theme engine is only available after the workspace has been selected. PartRenderingEngine#run calls initializeStyling in line 1050 after ChooseWorkspaceDialog. So if we want to style the workspace selection screen we would have to enable the styling engine before. Not sure how much effort that would be but if you want to analyse and send a PR that would be great.

from eclipse.platform.ui.

merks avatar merks commented on June 8, 2024

Isn't the theme stored as a preference in the workspace? I think so, hence each workspace can have a different theme and you don't know the theme until after a specific workspace has been chosen...

from eclipse.platform.ui.

jukzi avatar jukzi commented on June 8, 2024

Would be best to not store the preference in workspace then :-) Or to use the theme of the last used workspace.
I currently use two workspaces with different themes to know which workspace i am in. But that's not an important feature.

from eclipse.platform.ui.

elsazac avatar elsazac commented on June 8, 2024

Isn't the theme stored as a preference in the workspace? I think so, hence each workspace can have a different theme and you don't know the theme until after a specific workspace has been chosen...

@merks - you are right, the theme is stored in the workspace, so there is no way we can predict the theme for the workspace launcher dialog:

cat $WORKSPACE/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.e4.ui.css.swt.theme.prefs
eclipse.preferences.version=1
themeid=org.eclipse.e4.ui.css.theme.e4_dark

looks like a chicken & egg problem to me!

from eclipse.platform.ui.

mickaelistria avatar mickaelistria commented on June 8, 2024

FWIW, on Linux (or on GTK with other OS by the way), lower-level SWT, and thus the workspace launcher dialog widget as well, can be fully themed by relying on GTK themes, see for example https://eclipse.dev/eclipse/news/4.18/platform.php#system-theme . Launching an application such as Eclipse IDE with a different GTK theme is only a matter of setting a I_DONT_REMEMBER_WHICH_ONE environment variable and then you get full theming.

from eclipse.platform.ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.