kotatogram / kotatogram-desktop

Experimental Telegram Desktop fork.
https://kotatogram.github.io
Other
1.17k stars 121 forks source link

[Feature Request] pywal support: change background image automatically on restart if source file is modified #251

Open sinanmohd opened 3 years ago

sinanmohd commented 3 years ago

Is your feature request related to a problem?

if we modify the source file background image does not automatically change on restart unlike the color palate

if this feature get added we would be able to completely change telegram theme automatically with a restart using scripts like pywal and telegram-palette-gen. right now this requires to go to settings and change the background image manually each time a new theme is applied

Describe the solution you'd like

add a check box? change the background automatically if source file is modified

idk, you guys are the experts 🙃

Describe alternatives you've considered

would it be possible to hot reload color palate and background images without requiring restart using an outside script?

Additional context

https://x0.at/yuMw.mp4

ilya-fedin commented 3 years ago

if we modify the source file background image does not automatically change on restart unlike the color palate

When you change background image, it's being uploaded to Telegram servers and the copy in encrypted storage is used, so that would require adding a lot of code to save the path and monitoring the file with something like inotify. I don't think this is a good solution.

would it be possible to hot reload color palate and background images without requiring restart using an outside script?

Apparently, we can add some commandline arguments to change background image & theme... I don't promise anything, though.

sinanmohd commented 3 years ago

thanks, that's better i thought change on restart will be simpler to do compared to hot reload 😅