Giter Club home page Giter Club logo

Comments (10)

cyd01 avatar cyd01 commented on May 23, 2024 1

Thanks for reporting

from kitty.

lars18th avatar lars18th commented on May 23, 2024

Please @cyd01 consider this enhancement!

Personally I use this combination of < CTRL > + < Mouse Wheel > to change the size with Chrome and Windows (for Icons in the desktop). So I found it very useful.

from kitty.

lars18th avatar lars18th commented on May 23, 2024

Hi @cyd01 ,

To integrate this functionality ( < CTRL > + < Mouse Wheel > equivalent to the Menu "Font Up"/"Font Down") you only need to insert at this point:

This code from https://github.com/FauxFaux/PuTTYTray/blob/9dc8d3a636082ba4dbb48de71e59c8e2b9a0e593/windows/window.c#L3879

          // region tray-zoom

        } else if (control_pressed) {
          conf_get_fontspec(conf, CONF_font)->height +=
              MBT_WHEEL_UP == b ? 1 : -1;
          // short version of IDM_RECONF's reconfig:
          term_size(term,
                    conf_get_int(conf, CONF_height),
                    conf_get_int(conf, CONF_width),
                    conf_get_int(conf, CONF_savelines));
          reset_window(2);

          // endregion

        } else {

I hope you'll want to integrate it. It's quite simple and very powerful. πŸ˜‰
Regards.

from kitty.

cyd01 avatar cyd01 commented on May 23, 2024

Get the very last beta build.
Excuse me in advance ... I did not make so many tests ... I'm about to fly for Christmas holidays.
See you next year.

from kitty.

lars18th avatar lars18th commented on May 23, 2024

Get the very last beta build.

Thank you for the trial! However, it doesn't work... because I don't finished to see the code:

  • When using your patches, you need to call the function ChangeFontSize() from:

    KiTTY/kitty.c

    Line 4530 in 71d79d4

    void ChangeFontSize(HWND hwnd, int dec) {

from kitty.

lars18th avatar lars18th commented on May 23, 2024

So the patch will be something like:

          // region tray-zoom

        } else if (control_pressed) {
          ChangeFontSize(hwnd, MBT_WHEEL_UP == b ? 1 : -1);

          // endregion

        } else {

from kitty.

cyd01 avatar cyd01 commented on May 23, 2024

from kitty.

lars18th avatar lars18th commented on May 23, 2024

But it is not really beautiful. Font resizing is not so reactive, but I'll do it.

The current menu has this functionality: "Font UP" and "Font DOWN". It's already inside the KiTTY. So this is only another way to call it (more simple and fast, from my point of view).

Thank you for this very good project! πŸ‘

from kitty.

lars18th avatar lars18th commented on May 23, 2024

Hi @cyd01 ,

This function works like a charm in the last version 0.73.1.5.
Thank you! πŸ‘

Please, remember to close this issue as it's resolved.
Regards.

from kitty.

tjaacks avatar tjaacks commented on May 23, 2024

Thanks a lot for integrating this, @lars18th and @cyd01!

from kitty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.