Giter Club home page Giter Club logo

Comments (15)

fsobolev avatar fsobolev commented on June 8, 2024 1

I was thinking about something mpv-like: "m" to change to the next mode and "Shift-m" to change to the previous mode. And similar for other settings, but with different buttons (maybe "c" for channels, "r" for roundness, "p" for color profiles, etc).

from cavalier.

fsobolev avatar fsobolev commented on June 8, 2024 1

Most of the settings can now be changed using keyboard shortcuts. Shortcuts dialog is not modal, so you can open it and still have main window active and use shortcuts without closing shortcuts dialog.
When it makes sense, pressing a key increases a value, while Shift+key decreases it. Changing mode or profile goes indefinitely in circle, so for example if you press P when the last profile is active it will change to the first profile.
N is used for Margin because M will be used for Mirror. E is used for Reverse because R and O are already in use.

from cavalier.

gregorni avatar gregorni commented on June 8, 2024 1

I think if we group the settings the way they are now, with the "Change …" settings listed first and the "Toggle …" settings second, it should be consistent enough.

from cavalier.

gregorni avatar gregorni commented on June 8, 2024 1

Okay, I'll get working on it. Thanks for the tip!

from cavalier.

gregorni avatar gregorni commented on June 8, 2024

I think maybe "." and "," would be better because they're right next to each other. I think the arrow keys are quite important keys and should be responsible for more important settings. Also, there are 4 arrow keys, so I think they should be reserved for a setting that benefits from that amount of keys.

from cavalier.

gregorni avatar gregorni commented on June 8, 2024

I like that! would it be possible to do something like "r" + "+" and "r" + "-" for changing roundness?

Edit: Forgot you meant "r" and "Shift" + "r", so forget about it.

from cavalier.

 avatar commented on June 8, 2024

Awesome, thanks!

from cavalier.

gregorni avatar gregorni commented on June 8, 2024

I think a setting such a sharp window corners doesn't need 2 keyboard shortcuts, though. It only has two options, so one shortcut to toggle between those two states should be enough, right?

from cavalier.

fsobolev avatar fsobolev commented on June 8, 2024

I think a setting such a sharp window corners doesn't need 2 keyboard shortcuts, though. It only has two options, so one shortcut to toggle between those two states should be enough, right?

Settings that have only 2 states indeed only require 1 shortcut. I just found it logical to provide Key / Shift+Key shortcuts for everything for consistency. But if you think it's excessive I can remove Shift+Key shortcuts for such settings.

from cavalier.

gregorni avatar gregorni commented on June 8, 2024

Screenshot from 2023-01-28 09-33-43

Hmm. What do you think?

from cavalier.

fsobolev avatar fsobolev commented on June 8, 2024

@gregorni Looks good to me :) To actually remove shortcuts you can remove lines like these in shortcuts.py:

shortcut_controller.add_shortcut(Gtk.Shortcut.new( \
        Gtk.ShortcutTrigger.parse_string("<Shift>S"), \
        Gtk.NamedAction.new("cavalier.toggle-corners")))

Feel free to open a PR 😊

from cavalier.

fsobolev avatar fsobolev commented on June 8, 2024

@gregorni I changed "Change Widgets Style" -> "Toggle Widgets Style", so it's the same as with other 2-state settings and use one shortcut

from cavalier.

gregorni avatar gregorni commented on June 8, 2024

I was about to ask you about that.

from cavalier.

gregorni avatar gregorni commented on June 8, 2024

For consistency it would also be better to have the Toggle Widgets Style listed below the Change Color Profile shortcut.

from cavalier.

fsobolev avatar fsobolev commented on June 8, 2024

For consistency it would also be better to have the Toggle Widgets Style listed below the Change Color Profile shortcut.

Yeah, I don't mind. I listed shortcuts in the same order as in the preferences window, but I think it's good to make an exception for this one.

from cavalier.

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.