sw/source/uibase/sidebar/ThemePanel.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit b2f10f6f6778b6b11709ea4ee57f66c271b9316f Author: Michael Weghorn <[email protected]> AuthorDate: Tue Dec 9 18:48:53 2025 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Dec 10 17:40:42 2025 +0100 sw a11y: set a11y names for color themes in sidebar Following Change-Id: I77b7b12d0087eac8afeb88d4847a95ed268bfc5f Author: Michael Weghorn <[email protected]> Date: Tue Dec 9 18:43:39 2025 +0100 sw: Use weld::IconView in ThemePanel , also set accessible names for the items in the sidebar, which e.g. makes the Orca screen reader announce those when they receive focus with the gtk3 or qt6 VCL plugin. (They also had no accessible names set before the above-mentioned commit, so only "Item 1", "Item 2" etc. were announced.) See the above-mentioned commit for more details on how to trigger the relevant code path. Change-Id: I3fc075a5d9f14de3badc3b3ba99e1ce3fa5cbabb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195325 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/sw/source/uibase/sidebar/ThemePanel.cxx b/sw/source/uibase/sidebar/ThemePanel.cxx index 0a7170a447d1..79ed05a0b1b0 100644 --- a/sw/source/uibase/sidebar/ThemePanel.cxx +++ b/sw/source/uibase/sidebar/ThemePanel.cxx @@ -50,6 +50,7 @@ ThemePanel::ThemePanel(weld::Widget* pParent) const int nIndex = mxIconViewColors->n_children(); const OUString sId = OUString::number(nIndex); mxIconViewColors->insert(nIndex, nullptr, &sId, &aBitmap, nullptr); + mxIconViewColors->set_item_accessible_name(nIndex, rColorSet.getName()); } if (!rColorSets.getColorSetVector().empty())
