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

Create a setting to make stickers look smaller in the chat window (200px -> 40px) #260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hatarist
Copy link

@hatarist hatarist commented Apr 27, 2016

This is my (real bad) implementation of the issue #154.

It adds an option in the general settings view and its value is a bitwise operation of 2 << 29 (the next after HandleMediaKeysSettings). I wasn't sure why you started shifting from 1 to 2 so I kept it.

It also, obviously, isn't the best way to implement that option with the maximum sticker size hard-coded in every blockSize assignment, but I suck at Objective-C and am not sure I'd do it better without having a lot of time to spend.

The downside is you can't zoom it; I guess the more user-friendly thing would be to make it zoom like an image (perhaps with a full-screen dimmed overlay) on mouse click; the user would still have an option to view all stickers in the stickerset by calling the context menu.

It looks like that:
stickers3

Feel free to ditch it, just wanted to share with whomever is interested.

Thanks for the awesome project, I've been using it for years. <3


P.S.: I also managed to keep stickers from being shown completely and displaying emoji characters instead, like in the conversations list, but I guess it's not worth a separate pull request. See https://github.com/hatarist/telegram/commit/071fcabebf1fb9b737eabefc5d6ee5bac4399d11

@tartakovsky
Copy link

That one's great, i'll definitely use it if will be merged.

@sirian
Copy link

sirian commented May 13, 2016

+1

@overtake
Copy link
Owner

40x40 is a very smal size. i think 100x100 normal.

@hatarist
Copy link
Author

Sure, if it works out for you guys! At first I actually wanted to get rid of the stickers completely :)
Thanks for your time!

@antonsteenvoorden
Copy link

The size of the stickers could also be a slider perhaps? I can imagine people with large screens might want something in between those 2 sizes

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.

5 participants