Skip to content
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

Update desktop palettes #29

Merged
merged 6 commits into from
Apr 23, 2024
Merged

Conversation

rossnomann
Copy link
Contributor

@rossnomann rossnomann commented Apr 16, 2024

This PR makes desktop palettes more readable and adds some missing variables, such as groupCall*
Also --accent flag is added to allow to change accent color. Green is the default accent.

Examples:

https://t.me/addtheme/ctpmochaimproved
https://t.me/addtheme/ctpmacchiatoimproved
https://t.me/addtheme/ctpfrappeimproved
https://t.me/addtheme/ctplatteimproved

Closes #24; Closes #25;

I'm not sure what's going on in #27 but now you can change accent color.

@unseen-ninja
Copy link
Member

Thanks a lot for updating the theme and fixing the mentioned issues!

image
This also seems to get rid of a lot of the contrast between the different panes which I think is not really preferential here as it makes it really hard to differentiate between the different areas used for content, navigation, etc.

This probably can easily be fixed by giving the chat area a different background (probably mantle) and highlighting pinned messages (either using crust or surface maybe?). I'm not entirely sure about the suggested solutions here tho. Open for other proposals as well. c:

@rossnomann
Copy link
Contributor Author

rossnomann commented Apr 17, 2024

My bad. There are wallpapper variables in example themes, e.g. wallpaper: t.me/bg/HsVrZS2H_FACAAAA2bSTVfYHdRQ // link to cloud wallpaper
There are no such variables in the PR though, and Telegram will use a default wallpaper. Anyway I need to update screenshots. I will do it soon.

@rossnomann
Copy link
Contributor Author

rossnomann commented Apr 17, 2024

Updated previews along with res.webp in 5fddeb6 . If it doesn't look good, feel free to drop this commit.
Ok, I tried to make it as close to the original as possible, now it should be ok.

Also it looks like preview.png is not used anymore, so I removed it.

@rossnomann
Copy link
Contributor Author

image
I think mantle for the pinned messages and crust for the chat area are fine too. But again, there are no wallpapers in palettes and I'm not sure that I should add them.

@unseen-ninja
Copy link
Member

I think mantle for the pinned messages and crust for the chat area are fine too. But again, there are no wallpapers in palettes and I'm not sure that I should add them.

I would assume that most people set a separate background image anyway, so this is more of a placebo change for the most part. But for those few who are not using one this probably is a good change. c:

@rossnomann
Copy link
Contributor Author

I think wallpapers must be added by the one who owns the cpt* themes, because cpt*improved has wallpapers uploaded by me and I don't know what can happen with that wallpapers in future.

@rossnomann
Copy link
Contributor Author

rossnomann commented Apr 17, 2024

I would recommend the following algorithm of adding a wallpaper to a theme:
Create/edit a new theme, save it with a new wallpaper. Open the theme on https://themes.contest.com/, copy the wallpaper variable and paste it to the builder( build/colors/colors.go)

@rossnomann
Copy link
Contributor Author

Create/edit a new theme, save it with a new wallpaper

For me, this is the preferred way because telegram will generate a new link for the cloud wallpaper, which is not available in the gallery (chat settings). And probably you will not be able to remove it.

You also can upload a wallpaper from chat settings > chat wallpaper > choose from file. And then open it in chat settings > chat wallpaper > choose from gallery right click and share. But who knows what will happen when you eventually will remove a wallpaper from the gallery.

Also I don't know what will happen with cloud wallpapers uploaded using the suggested way if my account will be blocked/deleted. That's why I think that the wallpaper must be uploaded by the theme owner.

@unseen-ninja
Copy link
Member

I don't think the wallpaper would become inaccessible as they are simply stored on Telegram's servers. It wouldn't make much sense to tie them to a specific user account. I don't even recall specifically adding them to the current themes either.. o:

@unseen-ninja
Copy link
Member

I hope you don't mind me pulling you in here @sgoudham. I'd like to hear your opinion on whether it's okay to eventually merge this and just have the TG Desktop theme be updated, or if there should be an effort to also edit the other themes (android, iOS, macOS) as well and release them alltogether. Personally I don't think it's an issue to update them step-by-step. but… idk.

@rossnomann
Copy link
Contributor Author

Added wallpapers and squashed commits. That's all from my side, I guess.

@unseen-ninja
Copy link
Member

Again; Thank you so much for your contributions!

@sgoudham
Copy link

I hope you don't mind me pulling you in here @sgoudham. I'd like to hear your opinion on whether it's okay to eventually merge this and just have the TG Desktop theme be updated, or if there should be an effort to also edit the other themes (android, iOS, macOS) as well and release them alltogether. Personally I don't think it's an issue to update them step-by-step. but… idk.

No worries about the ping.

I suppose I don't have enough knowledge on how easy it is to edit the other themes alongside the desktop one but I'd imagine it's annoying since the contributor hasn't attempted it already. (or maybe they aren't interested)

Ultimately, if it requires slight updates here and there then I don't mind this PR staying open for a bit longer but if there're a lot of changes to be made or if there's relatively little interest in it right now, we can totally merge this PR, raise issues to track the updates to the mobile versions and update them "step-by-step" as you mentioned.

I'd definitely like to avoid this PR going stale for a long period of time 👍

@sgoudham
Copy link

While I'm here, a slight request from me, could we document the release process for the theme in another PR/commit?
It's not obvious to me when looking at the README or the repository structure.

@unseen-ninja
Copy link
Member

unseen-ninja commented Apr 19, 2024

From what I've experienced with this in the past it's really annoying to convert the themes between the different versions of Telegram since the naming conventions between the different template files are vastly different. Telegram offers a tool that's supposed to convert themes, but this also doesn't seem to work properly..
My initial assessment is that it seems to be a lot of effort to get the other themes updated to the same state. Hence I'm tempted to just merge this and leave the conversion for later. Glad you agree with that. c:

The release process with Telegram themes is equally annyoing.. since right now they're tied to my personal Telegram account.. iirc there is a way to distribute themes as plain old files, but I haven't really looked into that too much but it might be a good alternative to the current link-based distribution.
Either way; you're right that it should be documented a bit better.

@unseen-ninja
Copy link
Member

I've been test-driving this for a couple days and haven't found any bugs or quirks so far. I've upstreamed these changes; so the quote-unquote official links are up to date with this now. c:

@unseen-ninja unseen-ninja merged commit d3392dc into catppuccin:main Apr 23, 2024
@rossnomann rossnomann deleted the update-desktop branch April 23, 2024 14:01
@rossnomann
Copy link
Contributor Author

rossnomann commented Apr 23, 2024

I've noticed that the scroll bar in the chat area is green instead of gray (overlay1/surface2). It happens when you are trying to save a theme via the theme editor in Telegram Desktop. I don't know how to fix that. But there is a workaround: just use themes.contest.com.

To confirm that there is a bug: Click the "edit theme" button, choose the "tdesktop" tab, copy the palette, and make a diff with the original one from the repository.
Then just paste the original palette and click "save and apply theme". If you don't see any changes in the Telegram Desktop app, try to restart the app or switch the theme.

@unseen-ninja
Copy link
Member

Oh, that's odd. On my end I don't even get a green scrollbar in the first place.
tg-scroll

I have initially distributed the themes through the themes website and have just updated the contents again. If this issue persists on your end; may I ask what platform and version you're on; maybe the issue is burried in there somewhere?

MacOS 14.2.1 (M2) – Telegram Desktop 4.16.8

@rossnomann
Copy link
Contributor Author

rossnomann commented Apr 23, 2024

https://t.me/addtheme/ctp_mocha

image
Telegram Desktop 4.16.8 (downloaded from the official website)
Ubuntu 22.04 on Xorg

@isabelincorp
Copy link
Member

Thank you both for your work on this theme! I love the work being done, just one suggestion I have is using subtext colors rather than all text for when you're on the main menu page with all the messages. Changing it over to subtext would make more sense.

What I mean is making the message preview not the same color as the channel name.

Telegram Desktop 4.16.8 (arch repo)
Arch on Wayland (sway/wlroots)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing msgServiceBg icons in “Send an image” dialog cannot be seen
4 participants