set a background image for a room #625
Replies: 3 comments 1 reply
-
related: element-hq/element-web#5844 |
Beta Was this translation helpful? Give feedback.
-
I made a rough demo patch with a basic implementation of this here (raw). The patch is extremely rough as it was only made to test the feature, and currently only works with the dark theme. Here's a screenshot My patch fills the background of the entire app with the image, rather than just the room's timeline. I personally found this more aesthetically pleasing, but if this were to be developed as a legitimate patch, there would likely need to be more discussion about where the image should actually be drawn. My patch allows rooms to have a background set both in the rooms state as well as individual users' account room data, allowing users to override backgrounds for themselves. Again, discussion would need to be had to decide if this is necessary. The patch defines a The JS for this patch is much simpler than I'd expected it to be, the biggest pain was the CSS; as my patch fills the entire background, it needed to make the backgrounds for many elements transparent. I doubt the CSS in the patch is up to the quality standards for this repo. There would likely be much less CSS hackiness if the background only applied to the timeline rather than the whole app. |
Beta Was this translation helpful? Give feedback.
-
There should be a custom global background for your client. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I am a mod > 50, I should be able to setup a background image for a room 💃
Beta Was this translation helpful? Give feedback.
All reactions