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

How to zoom or change font size? #202

Closed
yzcj105 opened this issue Jan 14, 2023 · 12 comments
Closed

How to zoom or change font size? #202

yzcj105 opened this issue Jan 14, 2023 · 12 comments
Labels
enhancement New feature or request

Comments

@yzcj105
Copy link

yzcj105 commented Jan 14, 2023

Feature description

I wonder if it's possible to customize font size or zoom in level by modifying source or config files.

Motivation

The font is a bit small for me.

Alternatives

No response

Additional context

Something I tried, but failed.

  1. I tried Cmd + "+" , however it does not work.
  2. And I tried to go to the source file and see two scss files, src/layout/index.scss and src/main.scss. I tried to add zoom: 150% or font-size: 22pt, and run yarn dev. It seems they doesn't work.

So I wonder which file I should modify to customize the font-size and zoom level?

@yzcj105 yzcj105 added the enhancement New feature or request label Jan 14, 2023
@lencx
Copy link
Owner

lencx commented Jan 14, 2023

The website is loaded with an external URL, so it is not in the project and needs to be modified by injecting a script. The application supports script injection, which allows you to modify it through js.

@yzcj105
Copy link
Author

yzcj105 commented Jan 14, 2023

Thank you @lencx for your reply.
I understand that the web is loaded though an external URL. I don't have too much knowledge on js or tauri. So I'd like to do it in an easier way. For example, in most web based desktop apps, such as Electron based, we still can use Cmd + "+" shortcuts to zoom in or Cmd + "-" to zoom out without manipulating the css file. Is it possible to enable that ?

@lencx
Copy link
Owner

lencx commented Jan 14, 2023

I will optimize it in a future version, because there are still many important features to add to this application, but I am the only one developing it and I need to solve many problems at the same time. This project has already taken too much of my time and effort.

@yzcj105
Copy link
Author

yzcj105 commented Jan 14, 2023

Thank you very much!

@eshack94
Copy link

I also came here to request the same feature (zooming in and out to change text size, etc...). That would be awesome!

Thank you for all your hard work on this project @lencx . The community is grateful.

@abdul-kaium5
Copy link

abdul-kaium5 commented Jan 15, 2023

Same problem .

lencx added a commit that referenced this issue Jan 25, 2023
@lencx
Copy link
Owner

lencx commented Jan 25, 2023

https://github.com/lencx/ChatGPT/releases/tag/v0.10.1
New shortcut key to change zoom level (30% - 200%), + or - 10% each time, 0 will be reset to 100% (#202)

  • Windows: Ctrl +, Ctrl -, Ctrl 0
  • MacOS: Cmd +, Cmd -, Cmd 0

zoom

@yzcj105
Copy link
Author

yzcj105 commented Jan 25, 2023

Thank you @lencx for the great feature!

@yzcj105 yzcj105 closed this as completed Jan 25, 2023
@erickrex
Copy link

Hello @lencx do you mind telling us how to increase font size for Linux users. Maybe pointing us to the file that should be modified and some documentation on how to compile similar applications could help. I have bad eyesight, I cannot use the application in it's current form, even a 20% increase would be enough. Thank you for your work

@lencx
Copy link
Owner

lencx commented Feb 17, 2023

@erickrex The linux shortcuts should be the same as the windows ones.

@Orion120
Copy link

Is it possible to change the font size on the Control Center page?

@wellmorq
Copy link

Doesn't work for me. Windows, 0.12.0.
Seems like Ctrl+ and Ctrl- do nothing :(

sbnewsthailand pushed a commit to sbnewsthailand/ChatGPT that referenced this issue Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants