keyboard navigation accessibility fix. Stop using Qt's Fusion style for dark Color - #3375
keyboard navigation accessibility fix. Stop using Qt's Fusion style for dark Color#3375amirmahdifard wants to merge 1 commit into
Conversation
260281e to
14fb480
Compare
|
@CoBC are you familiar with this issue? I've never noticed any problems with dark mode. |
|
@bear101 Do you have screen reader? if yes, I will tell you how to reproduce it. The problem is not due to dark mode, it's about qt's fution style being active. I also tested this in other qt test sample |
I'm not aware of this issue, nobody has talked about it to me |
|
@CoBC remember some time ago I told you teamtalk has a problem for me that in context menus, when I press arrow keys, my keyboard skips grade out menu items, and you told me why this is happening? I spent one night, made a qt test sample application, And after long tests, I figgered out that when qt's fution style is active, it causes this bug. |
|
Thanks for the description on how to reproduce the issue. It makes it much easier to understand what issue you're trying to fix. However, this change makes menus and dialog boxes unreadable to sighted users. Text and background color becomes the same in dark mode. |
|
I'm not sure it's really a problem to not focus disabled items. If an option is disabled, why we should focus it? |
|
@bear101 oh! did you try the build of this pr on a dark system? i'm blind, So I don't know how it looks like for sited users. But I didn't remove any other dark settings, I just removed the Qt fusion style from dark, to use the windows default style for dark and light both. Is it ok? |
I was fasing an accessibility navigation bug for months, And I couldn't find the reason.
Last night, I stayed awake the entire night and made and debugged a sample qt test application, and finally I got the bug cause.
when Qt's Fusion style is active and being used, every disabled menu items in menus/context menus ( disabled grade out QActions) would not receave focus and skipped for screen readers during keyboard navigation with up and down arrow keys.
Currently, If We set windows Color to light from windows settings and open teamtalk, this bug will be solved and every item would receave focus properly during keyboard navigation
when windows Color is set to dark in windows settings, Qt's Fusion style will be activated for teamtalk, And cause this accessibility bug.
So, Fixed it by stop using Qt's Fusion style on dark Color
This bug is for Qt's Fusion style, and I've reported it to Qt, so they will fix it, so that layter Qt's Fusion style won't cause this annoying bug anymore, So that anyone doesn't have to try to hunt the bug for months.