On 2026-11-08 17:51, Laurent Balland wrote:
It seems it is possible to format text as bold in a weld::TreeView (like for the thesaurus dialog) but not as italic. Is there any reason for this limitation? Is there another object I should use to get a select- able list with some row in italic?I try to modify Sheets selection dialog [1] to emphasize hidden sheets. But formatting as bold is not a good idea for a hidden sheet; I would prefer italic.
If there is a reason, I can imagine weld::TreeView::set_text_emphasis being extended to alternatively allow using italic as well (e.g. by switching the current bool param indicating bold/not-bold to an enum class that allows for none/italics/bold).
Whether using italics is a good idea for that is probably best to discuss with the design team. (tdf#172599 [1] ("De-italicize notebookbar-tabbed section titles/captions ") mentions some possible reasons to avoid it for the Notebookbar at least.)
[1] https://bugs.documentfoundation.org/show_bug.cgi?id=172599
OpenPGP_signature.asc
Description: OpenPGP digital signature
