Summary: | Make "Level" spinbox into a dropdown menu in the Document tab of "Insert - Field" | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | sdc.blanco |
Component: | Writer | Assignee: | Baole Fang <baole.fang> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | heiko.tietze, mentoring, stephane.guillou |
Priority: | low | Keywords: | difficultyBeginner, easyHack, skillCpp, topicUI |
Version: | Inherited From OOo | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=159678 | ||
Whiteboard: | target:24.2.0 | ||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 114039 |
Description
sdc.blanco
2023-03-07 23:09:56 UTC
Probably an EasyHack I agree that it would be an improvement, but copying UX team in to double-check. If done, other parts of the UI should follow, for example Insert > Table of Contents or Index > Table of Contents, Index or Bibliography > Type. Was already a spinbox in OOo 3.3. (Note that in LO 7.6, "Chapter" was renamed to "Heading".) The spinedit is a very efficient control to change numerical values within a defined range. You can edit the value directly, what is not possible on dropdown controls. And the range of 1..10 is not a surprise for experienced users (nor you see all items with an expanded dropdown showing 8 items by default). Don't see much benefit in changing it. But also no big issue. Other opinions? (In reply to sdc.blanco from comment #0) > 1. Insert - Field - More Fields (Ctrl+F2) - Document tab > 2. Select type "Chapter" There is no such type in the Document Tab of the Fields dialog. Do you mean "Heading" ? I'm using: Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 5cd9de202765e243e41416802f3e4486b8a96f16 CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: he-IL (en_IL); UI: en-US Anyway, the spin box lets you type a value; if that is maintained, then ok. If it's not, then I'm not sure it's a sound enough tradeoff, but I don't mind that much either way. We discussed the topic in the design meeting. Since the level is a fix list with always the exact same (low) number of entries the proposed dropdown indeed fits better. Code pointer: sw/uiconfig/swriter/ui/flddocumentpage.ui and sw/source/ui/fldui/flddok.cxx (see also sw/uiconfig/swriter/ui/fldvarpage.ui resp. Variables > Number Range in the dialog where the same information is realized per dropdown) start working on this Baole Fang committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/27fde46937ecb71e7ce738cba430119a79cea77f tdf#154052: Change "Level" spinbox to combobox It will be available in 24.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |