21 Followers
67 Following
192 Posts
@doRadiology thanks for the info, I'll have a look
@doRadiology that's a good idea.
@doRadiology I'm glad it worked. By building with a lower java version the final jar can be run with any version above 17. If you build with 21, only 21 can run the jar. That's why I do this.
@doRadiology I also added a BUILD.md file in the repo root which should allow you to build your own jar
@doRadiology that is, under line 80, add "localStorage.setItem("theme", "dark")" under the "themeChange(false)" line in the App.vue file
@doRadiology to automatically set the theme to dark on each startup add a line in App.vue :
```
diff --git a/src/jelu-ui/src/App.vue b/src/jelu-ui/src/App.vue
index 37c0b2b..eec020b 100644
--- a/src/jelu-ui/src/App.vue
+++ b/src/jelu-ui/src/App.vue
@@ -78,6 +78,7 @@ const shelves = computed(() => {
onMounted(() => {
console.log('Component is mounted!')
themeChange(false);
+ localStorage.setItem("theme", "dark")
})
```
@doRadiology actually, if you're ok to modify the source code and build the jar yourself , I can show you how to set the theme in the front end and then how to build the jar. I'll give you the instructions when I have some free time.
@doRadiology oh ok. That is not possible unfortunately. The backend does not know anything about the front.
@doRadiology the theme you pick is stored in the local storage of your browser and you should not have to set it each time. Is this storage accessible to jelu ? You can have a look in the dev tools of the browser. In the local storage you should see a 'jelu_language' entry and a 'theme' entry
@doRadiology hi, you should be able to go to the settings page and pick a theme. Is it not working ?