diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-07 07:54:46 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-08-07 16:10:44 +0200 |
commit | 8950ae3095c43d6217cb53d1e8969ccf3a0b56ac (patch) | |
tree | 33c014cb9073d87039058a1cd9259199733f88dc /sw/inc/strings.hrc | |
parent | 0633189fabe85f73062ff2ce67b5f40af7d3f504 (diff) |
sw a11y: Add a11y names for bg settings in side bar
Set a11y names for UI elements related to the page
background in Writer's "Page" sidebar deck, section
"Styles."
Some of those combo boxes/menu buttons are reused for
multiple background types, so set an a11y name
depending on the currently selected background
type in C++ code instead of a static one in the .ui
file for these.
This allows screen readers to announce what those
comboboxes/menu buttons are for when they receive
focus.
Lack of some of those led to gla11y failures in pending
Gerrit change [1], but is actually a preexisting issue
as mentioned in [2].
(The gla11y issue even showed up after simply resaving
pagestylespanel.ui with glade 3.40, see CI failure for [3],
a previous change doing that in preparation for this
commit, but now squashed into this commit.)
[1] https://gerrit.libreoffice.org/c/core/+/171430
[2] https://gerrit.libreoffice.org/c/core/+/171430/comments/6fac1506_50ddcce5
[3] https://gerrit.libreoffice.org/c/core/+/171582
Change-Id: I4e78c61cfd5d5b9f198887eec53be368cb6a0716
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171583
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'sw/inc/strings.hrc')
-rw-r--r-- | sw/inc/strings.hrc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc index 97b7b4545054..7724887cc467 100644 --- a/sw/inc/strings.hrc +++ b/sw/inc/strings.hrc @@ -1504,6 +1504,11 @@ #define STR_TABLE_PANEL_ALIGN_CENTER NC_("sidebartableedit|aligncenterlabel", "Center") #define STR_TABLE_PANEL_ALIGN_MANUAL NC_("sidebartableedit|alignmanuallabel", "Manual") +#define STR_BACKGROUND_COLOR NC_("STR_BACKGROUND_COLOR", "Background color") +#define STR_GRADIENT_COLOR_1 NC_("STR_GRADIENT_COLOR_1", "First gradient color") +#define STR_BACKGROUND_BITMAP NC_("STR_BACKGROUND_BITMAP", "Background bitmap") +#define STR_BACKGROUND_PATTERN NC_("STR_BACKGROUND_PATTERN", "Background pattern") + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |