Bug 157932 - Make increase/decrease indent button label context-dependent so it mentions "outline level" for lists
Summary: Make increase/decrease indent button label context-dependent so it mentions "...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevEval
Depends on:
Blocks: Writer-Toolbars UNO-Command-Label
  Show dependency treegraph
 
Reported: 2023-10-26 11:57 UTC by Stéphane Guillou (stragu)
Modified: 2023-10-27 08:08 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stéphane Guillou (stragu) 2023-10-26 11:57:08 UTC
The Increase/Decrease Indent buttons in the Formatting toolbar should change their labels when the cursor is inside a list (ordered or unordered) so it mentions "outline levels" instead.

(Same thing in Sidebar > Properties deck > Paragraph section.)

The Writer menu already uses a more suitable string in Format > Lists > Demote/Promote Outline Level (same as the Bullets and Numbering toolbar)

See: https://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu?r=6c073a18#2095

But we also have "Promote|Demote list level": https://opengrok.libreoffice.org/xref/core/sw/inc/strings.hrc?r=dcea29c2#477
... which is used in the Undo/Redo stack.

I suggest consolidating and using a single string between toolbar, sidebar, menu and undo/redo stack.

Tested with:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fd69b546ad36452560cb11ccb28e78632d65f045
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Issue since OOo 3.3.

Heiko, Hossein, likely an easyHack?
Comment 1 Heiko Tietze 2023-10-27 08:08:12 UTC
I think it also should use (slightly) different icons. Just altering the tooltip is not obvious for casual users.