Skip to content

Add titles to rows in the manager tables #9262

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

Merged
merged 4 commits into from
Oct 14, 2019
Merged

Conversation

joew46167
Copy link

When arrowing through the Library Manager table and the Board Manager table while using a screen reader, the rows are not read.

By adding a TitleBorder the rows of the table get read.

This currently does not work in MacOS - JDK 9+ is required for it to work on MacOS. As such, I hope to soon write a replace to these managers for when accessibility features setting is turned on so that the current tables are avoided. However this may take some time.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you lint your code locally prior to submission?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully ran tests with your changes

@facchinm
Copy link
Member

Hi Joe, while I love the patch, visually it makes things a bit different from what it used to be
2019-09-30-101155_861x359_scrot
I kinda like the new look but maybe just exposing under isAccessible() flag could be better right now. What do you think? @tigoe

@tigoe
Copy link
Member

tigoe commented Sep 30, 2019

The bigger font is nice for those who are low vision, but the repeat of the text on two lines seems awkward. Is there a nightly build I can run it on to hear what it's like in a screen reader? And yes, I agree that using the isAccessible() flag when possible is a good option.

@facchinm
Copy link
Member

@ArduinoBot build this please

@facchinm
Copy link
Member

The build should be coming shortly 😉

@tigoe
Copy link
Member

tigoe commented Sep 30, 2019

Thanks @facchinm Unfortunately the PR has the same problem as before, as Joe mentioned. It doesn't work on MacOS yet, so I can't test until I'm back on a PC. It behaves the same as previously: freezes up at the filter box.

@joew46167
Copy link
Author

joew46167 commented Sep 30, 2019 via email

@tigoe
Copy link
Member

tigoe commented Sep 30, 2019

If it's a choice between where to put the title, I actually prefer the larger type of the title in the bounding box, personally. I'd leave it there and cut the title that's just below it. But I recognize that there may be factors I'm not considering.

@joew46167
Copy link
Author

I have made a new push to my repository.

I remove the name from the cell, leaving it only in the title. This is pretty good, but not perfect.

As I enter the cell it will read the title, then the contents of the cell string.
However, if I tab to the More Info button, then tab back to the cell string, it doesn't read the board name, only the string. I can make it read the board name when doing this, but as you tab into the cell it reads the name twice, which is awkward.

Even at awkward in one use case, I still think this is the better way to go.

@joew46167
Copy link
Author

Is there an update on this? More that I need to do?

@facchinm
Copy link
Member

facchinm commented Oct 7, 2019

I need to retest it in the next few days, sorry for the radio silence but we are a bit overwhelmed in this period 🙂

@joew46167
Copy link
Author

OK sounds good to me!

@facchinm
Copy link
Member

Looks perfect now, merging. Thanks again!

@facchinm facchinm merged commit b4bcb30 into arduino:master Oct 14, 2019
@cmaglie cmaglie added this to the Release 1.8.11 milestone Jan 22, 2020
matthijskooijman added a commit to matthijskooijman/Arduino that referenced this pull request Mar 14, 2020
In commit 93581b0 (Set foreground color in library/board manager), the
foreground color was set in addition to the background color, to make
sure that the library and board manager would remain readable even with
a non-standard color scheme (e.g. a dark theme).

When that commit was created, this worked properly. However, between
creating that commit and merging it as part of arduino#9272, the title
rendering was changed from being part of the description (which had its
color set up properly) to being part of the title border (which used
default colors) in arduino#9262.

This commit fixes this again by applying the foreground color also to
the TitledBorder component.
matthijskooijman added a commit to matthijskooijman/Arduino that referenced this pull request Mar 14, 2020
In commit 93581b0 (Set foreground color in library/board manager), the
foreground color was set in addition to the background color, to make
sure that the library and board manager would remain readable even with
a non-standard color scheme (e.g. a dark theme).

When that commit was created, this worked properly. However, between
creating that commit and merging it as part of arduino#9272, the title
rendering was changed from being part of the description (which had its
color set up properly) to being part of the title border (which used
default colors) in arduino#9262.

This commit fixes this again by applying the foreground color also to
the TitledBorder component.

In ContributedPlatformTableCellJPanel this also moves the creation of
the TitledBorder into the constructor, and for
ContributedLibraryTableCellJPanel upwards in the constructor (where it
is run unconditionally), so the property can be final.
@per1234 per1234 added accessibility Enabling the use of the software by everyone Component: Board/Lib Manager Boards Manager or Library Manager Component: IDE user interface The Arduino IDE's user interface labels Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Enabling the use of the software by everyone Component: Board/Lib Manager Boards Manager or Library Manager Component: IDE user interface The Arduino IDE's user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants