Heigvd / Wegas

A Web Game Authoring System coded in Java and Javascript for rapid development of serious games without programming skills.
https://wegas.albasim.ch
MIT License
28 stars 15 forks source link

Missing theme style CSS injection in player and trainer pages #1941

Open xgo-work opened 7 months ago

xgo-work commented 7 months ago

The CSS variables that are defined in the theme are injected as variables in the css but not referenced in a style in trainer and player pages.

In the scenario page, the layout using the theme variable is injected wegas-app/src/main/node/wegas-react/src/Editor/Components/Layout.tsx

but it is not the case for trainer and player for instance wegas-app/src/main/node/wegas-react/src/Editor/Components/Player.tsx wegas-app/src/main/node/wegas-react/src/Host/HostLayout.tsx

Those should be defined in the respective files or unified at a higher level (maybe in the ThemeProvider react element itself)