Giter Club home page Giter Club logo

Comments (15)

AObuchow avatar AObuchow commented on July 17, 2024 1

Wow, I wasn't expecting anyone to try this out yet!
Thanks so much for trying it out and posting the first bug @PyvesB :)

However, on my Windows machine at least, not all parts are being themed properly. For example in the project explorer:

Yes this is a known issue I need to fix. The theme isin't properly inheriting from the platform dark theme IIRC, thus it currently relies on the user to have a dark GTK theme (which obviously isin't feasible for Windows users).

I noticed you were importing platform:/plugin/org.eclipse.ui.themes/css/dark/e4-dark_preferencestyle.css. Maybe you're missing out on some platform-specific overrides by doing so?

This is definetly worth looking into, thanks!

Thanks for looking into this!

For sure :) I've had more time to work on side projects lately, so I've been meaning to improve this theme plugin. I'm going to try to getting to work on it sooner than later, now that you're interested 😎

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024 1

Nevermind.. :D
It seems that the update site works, but not if the plugin is already installed.. need to fix that.

Feel free to uninstall the plugin and reinstall using the update site in the README and let me know how it looks :) I'm going to try it out on windows in a moment.

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024 1

@PyvesB It now looks a lot better on Windows, but still needs many improvements.

Here's how it looks currently (1.0.2):
image

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024 1

@PyvesB A big issue with Modern Dark Theme is that the editor colours are not correctly set (as shown in the above picture). This happens despite importing the e4 dark preference style.

A temporary workaround is to import an eclipse editor theme, but this needs to be fixed for the first official release.

from eclipse-spectrum-theme.

PyvesB avatar PyvesB commented on July 17, 2024 1

Thanks @AObuchow , definitely looks much better now!

The dark menus don't aren't enabled on my side, unless I first enable the normal Dark theme then switch to Modern Dark Theme. Looking at the code in org.eclipse.e4.ui.swt.internal.win32.DarkThemeProcessor, I noticed the following check: theme.getId().contains("dark"). The theme's id is "Modern Dark Theme.id", with a capital D, so the check would fail.

As far as style sheets are concerned, according to the documentation of the theme extension point: "This extension point provides the possibility to define themes and/or contribute stylesheets and resources to already defined themes". I'm reading this as "define a style sheet if you want to modify an existing theme". As you're trying to define the styles of your own theme, I would not include it as a <stylesheet> element in plugin.xml, but instead simply have the @import statement in the CSS (which you do have, but it's not pointing to the version-controlled e4-dark_preferencestyle.css you included in the repository). Not an expert in this area, but something worth trying. :)

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024 1

Thanks @AObuchow , definitely looks much better now!

The dark menus don't aren't enabled on my side, unless I first enable the normal Dark theme then switch to Modern Dark Theme. Looking at the code in org.eclipse.e4.ui.swt.internal.win32.DarkThemeProcessor, I noticed the following check: theme.getId().contains("dark"). The theme's id is "Modern Dark Theme.id", with a capital D, so the check would fail.

AH, you solved a big piece of the puzzle!!! Thank you so much!!

Changing the ID to contain "dark" is what enables the dark menu bar on GTK (and Windows as you mentioned)! It seems to force GTK to use dark a theme (eg. even if you are using Adwaita non-dark GTK theme, Eclipse will use Adwaita-dark).

IMO this should be an upstream bug: instead of relying on the theme id containing the string "dark", there should be an optional extension point parameter to declare the theme as a dark or light. As it currently stands, finding out that you need to include the "dark" string in the ID is too difficult/not documented. I'll make an upstream bug for this.

I will release an update today fixing this :)

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024 1

As far as style sheets are concerned, according to the documentation of the theme extension point: "This extension point provides the possibility to define themes and/or contribute stylesheets and resources to already defined themes". I'm reading this as "define a style sheet if you want to modify an existing theme". As you're trying to define the styles of your own theme, I would not include it as a <stylesheet> element in plugin.xml, but instead simply have the @import statement in the CSS (which you do have, but it's not pointing to the version-controlled e4-dark_preferencestyle.css you included in the repository). Not an expert in this area, but something worth trying. :)

Good observation! I removed the extension point parameter and included org.eclipse.ui.themes in the required bundle for the manifest.

The editor colors are still incorrect, but it's a step forward :)

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024 1

Though I think the bug should be part of Platform UI, not SWT. :)

Fixed :)

Also the 1.0.3 release is out (I don't know why I didn't start with 0.0.1... the first "real" release on the eclipse marketplace will be 0.0.1. 1.0.3 fixes the dark widgets not being enabled.

There's still a lot to do:

  • For some reason, the JDT colors get set, then some colors change for some reason (I think this has to do with the colors & fonts preference in Appearance Options of the preference dialog). You can see this behavior when opening a java file (the colors will be correct for a moment then change).
  • The EGit colors need to be set (a modified repo will cause a project's foreground color to be black in the project explorer)
  • A bunch of other things ... :P

from eclipse-spectrum-theme.

PyvesB avatar PyvesB commented on July 17, 2024 1

Sure! I've not got much time to test with my personal Windows machine at the moment, but I'll install it on my macOS work machine and see if I spot anything wrong. 😉

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024 1

Awesome thank you! Btw, I have a windows machine but don't own a mac so having users test on OSX provides more value anyway :)

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024

@PyvesB I improved the theme but have been unable to properly update the update site ): I was trying to do it in a rush hahah, will have to try and fix it later

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024

I'll make an upstream bug for this.

Upstream bug is tracked here

from eclipse-spectrum-theme.

PyvesB avatar PyvesB commented on July 17, 2024

I'll make an upstream bug for this.

Upstream bug is tracked here

Would definitely be an improvement to have it as an extension point flag! Though I think the bug should be part of Platform UI, not SWT. :)

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024

There's still a lot to do:

* For some reason, the JDT colors get set, then some colors change for some reason (I think this has to do with the colors & fonts preference in Appearance Options of the preference dialog). You can see this behavior when opening a java file (the colors will be correct for a moment then change).

* The EGit colors need to be set (a modified repo will cause a project's foreground color to be black in the project explorer)

This was addressed in the newly release version, 1.0.4

from eclipse-spectrum-theme.

AObuchow avatar AObuchow commented on July 17, 2024

@PyvesB are you ok with me closing this bug? More specific bugs can now be created for things that aren't properly styled, eg. #32

from eclipse-spectrum-theme.

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.