|
|
|
|
|
|
|
|
|
Re: CSS problem on JavaFX e4 app [message #1823788 is a reply to message #1823771] |
Thu, 02 April 2020 06:53 |
Marco Maisano Messages: 22 Registered: March 2020 |
Junior Member |
|
|
I have created two sheets of css, Day.css and Night.css "which I wish were related to two themes.
Then, I have created two classes, DayTheme and NightTheme, classes that extends AbstractTheme (implemented as above for the DefaultTheme).
Therefore, I created two OSGI services, one for each class, theme-day.xml and theme-night.xml.
theme-day.xml is associated with the DayTheme class and the same goes for Night.
Then the two .xml services are registered in the MANIFEST.
You asked me: where's your service implement Stylesheet?
What do you mean?
Then, I implemented two functions:
public static void switchTheme(String themeID) {
themeManager.setCurrentThemeId(themeID);
}
public static Theme getTheme() {
return themeManager.getCurrentTheme();
}
and I verified that the theme is actually associated, since by getting the current theme, it is returned.
But the css (ie the theme) is not associated with the context.
It is as if the theme does not register the css.
What am I missing?
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05572 seconds