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

keyboard & switch #2

Open
aplsimple opened this issue Sep 1, 2021 · 4 comments
Open

keyboard & switch #2

aplsimple opened this issue Sep 1, 2021 · 4 comments

Comments

@aplsimple
Copy link

aplsimple commented Sep 1, 2021

Hi, rdbende!

Perhaps, most annoying issue of the themes: in fact they are unusable with keyboard because there is no highlighting the focused widgets. And you never know which button is focused if there are several of them, so "don't press Enter/Space" is a rule.

Second issue is that the Switch widget seems to be unusable in forest theme, as "ttk::style layout Switch.TCheckbutton" isn't present in it at all.

I've tried to modify your theme to overcome these issues. The result is seen in the attached videos. The "before" video refers to the original theme, "after" to the modified one. Note that the keyboard is only used, the mouse being inactive.

For your consideration, the source (themes.zip) is attached too. The forest theme has undergone the most modifications, as seen in its video. I'd even changed main colors, but it's only my taste, never mind.

Take this stuff for a humble base to make your themes better.

Thanks a lot for your work, it's so well made!

With respect,
Alex

before.mp4
after.mp4
forest.mp4

themes.zip

@rdbende
Copy link
Owner

rdbende commented Sep 1, 2021

Hi Alex!

Unlike in my other themes, there is no Switch.TCheckbutton but a plain Switch instead. (I renamed it in my other themes for backwards compatibility with other themes, also ToggleButton, and Card). Probably this theme will have them too, because I have many other local fixes to it that I haven't pushed so far.

And keyboard focus... I didn't really deal with that, because as soon as I started my first theme I realized how ugly the built-in focus is and so I didn't implement it. In the Sun Valley theme, I thought about it, but whatever image I set for it, I could only achieve the dotted line, in different colors. While the original Microsoft design has much nicer focus highlights.

I'm wondering that you might be able to give advice on this, because I see you know Tcl/Tk really well.

@rdbende rdbende pinned this issue Jul 14, 2022
@rdbende
Copy link
Owner

rdbende commented Sep 12, 2022

Fyi Sun Valley ttk theme finally got keyboard focus indicators, and I have to say I really like it.
I hope someday the Forest theme will get them too, and it will certainly be sooner than the Azure theme (tbh, I don't really like the Azure theme).

@aplsimple
Copy link
Author

Good to know.

BTW I read your reasons to move to gitlab. Not quite sure of your decision.

@rdbende
Copy link
Owner

rdbende commented Sep 13, 2022

BTW I read your reasons to move to gitlab. Not quite sure of your decision.

Yeah. While I still have concerns about Github, in the end I kept using it for pretty much everything, because I had to realize that I can't just simply move to Gitlab. I have quite a few popular projects, and I am a contributor to several repos on Github, so I can't just simply leave it.

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

2 participants