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

Changing appearance in the source code #1551

Open
ghost opened this issue Mar 26, 2022 · 2 comments
Open

Changing appearance in the source code #1551

ghost opened this issue Mar 26, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 26, 2022

Hello. I would like to change appearance by recompiling. Can you tell me which files need to be changed to achieve the following goals (in order of importance):

  1. Increase message font size (I know about DPI, but I think when I change DPI scrolling becomes slower and fonts become blurry)
  2. Increase input box size (I like typing long messages)
  3. Make scrollbar thicker (not Apple style)

By the way, I compile with clang 8 because gcc 5 consumes too much memory in the final stage.

@GrayHatter
Copy link
Member

You didn't say what OS you're on, but I'm going to assume unix like given you have a preference for compiler.

If you're just looking to change font size, you can do so in this function.
https://github.com/uTox/uTox/blob/develop/src/xlib/freetype.c#L393
IIRC the edit box is built here, https://github.com/uTox/uTox/blob/develop/src/ui/edit.c but this is all edit boxes, so you may just need to edit https://github.com/uTox/uTox/blob/develop/src/layout/friend.c#L855

I don't remember off the top of my head where the scroll bar is defined, but changing it is likely to be somewhat complicated.

another option to consider is to change the scroll rate with DPI changes. If you do end up making that change, consider making a PR, because I'd be happy to include that change into uTox

@ghost
Copy link
Author

ghost commented Apr 26, 2022

Thank you for the information. I will keep it in mind for the future. I temporarily switched to Wire because it has the ability to send offline messages. And also because due to a Windows crash, my companion lost his Tox profile.

Yes, I am using Linux. The old Ubuntu 16.04, so I compiled the new version of Tox myself. But it turned out that sending files doesn't work in my build. I also have an old tested working binary of version 0.15 for Linux. Everything works in it. It's a version that's no longer on the web site or even in the Web Archive, but I have it. But as I said before, I'm currently using Wire. And I've been struggling for a long time to compile telegram-desktop (for news, not chatting).

About the contribution, I don't think I can help you. I'm not a programmer, but I've accumulated quite a bit of experience in compiling software. I can only minimally edit the source code.

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

No branches or pull requests

1 participant