Skip to content

Use a more accessible dropdown#293

Open
jeremypw wants to merge 4 commits into
mainfrom
jeremypw/dropdown/use_mnemonics
Open

Use a more accessible dropdown#293
jeremypw wants to merge 4 commits into
mainfrom
jeremypw/dropdown/use_mnemonics

Conversation

@jeremypw

@jeremypw jeremypw commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Fixes #292

Use a custom factory for Gtk.DropDown that can optionally show mnemonics in the strings and/or a selection marker.

For simplicity only implemented for simple string lists. Therefore the energy usage warning used in the timeout dropdown is not currently styled differently but I do not think the styling added much anyway. A shorter more direct warning is used instead. In principle markup could be used to style part of the string differently but that is left for now.

With keyboard navigation, the grey background for the selected item still does not appear but the marker changes as expected.

Screenshot from 2026-06-08 21 22 54

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

Successfully merging this pull request may close these issues.

Drop-downs show no highlight when using keyboard navigation

1 participant