-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Public Themes Folder #115
Comments
You could add the file in like this in a compose file, which would persist across restarts: volumes:
- $DOCKERDIR/thelounge/themes/custom_theme.css:/usr/local/share/.config/yarn/global/node_modules/thelounge/public/themes/custom_theme.css |
I tried |
@xnaas I believe I've ran into an issue when using ./foldername instead of the full path leading to funkiness in Docker. I don't know why or what was the issue, but it would never allow to read what was there. Once I put the full path into the folder, it would work correctly. I'll test this out on my end as I was hoping to get some themes in to TheLounge as well from the Docker side of things. I think you scratch all that I said above, I was reading it totally differently, but nearcatch gave me an idea to try out. |
Aren't themes installed in thelounge's package path, which defaults to |
Soon™ will come Someday™. Fret not.
Yes. We're not talking about installed themes. We're talking about manually creating your own theme (not dealing with pushing to npm or creating a package) and dropping it in the More:
|
Hopefully this comment proves helpful. I was looking at using NPM to install another theme and have it stay but wasn't able to get that going. (Couldn't get the NPM to install in the docker container at the time). If that's possible, I'm all eyes/ears on how to get it working. Will have to play around with that myself too to see if I can get it going that way. So in essence, my issue was different than xnaas whereas I just wanted to use NPM to install other themes I had seen online. |
@JoeArcher007: If you're using the official container, it should just be |
note that you don't need npm (the registry)... installing from a local folder works as well by giving a file: prefix |
We were chatting around in #thelounge some today and came to find that the path for the public themes folder is @
/usr/local/share/.config/yarn/global/node_modules/thelounge/public/themes/
inside the container. Would be nice if this was exposed in a way for it to be mounted with normal perms for copying custom themes in.Though in brief testing with copying CSS files into the container (
docker cp
), I didn't really have any luck getting those themes to appear in thelounge, even if I set the owner toroot
and permissions to644
likemorning.css
anddefault.css
. I suspect that's because thelounge requires restarts to see new files in here (restart would of course destroy the file copied in)? I don't know as I don't have a non-Docker lounge to play with...The text was updated successfully, but these errors were encountered: