Bug 167074 - Format -> Theme - UI enhancement
Summary: Format -> Theme - UI enhancement
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:26.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-18 07:13 UTC by Parth Raiyani
Modified: 2025-08-04 12:22 UTC (History)
6 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 Parth Raiyani 2025-06-18 07:13:20 UTC
Description:
Convert theme dialog to IconView widget for enhancement as native GTK widget is better and it would also improve web-based libreoffice experience.

Steps to Reproduce:
1. Open any document
2. Go to Format
3. Click on Theme

Actual Results:
Theme dialog uses a ValueSet widget to display theme options.

Expected Results:
It will now use native IconView widget instead of ValueSet widget.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f221fa6d3022fcb51d23329828b306b4ffaa49a8
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 V Stuart Foote 2025-06-18 10:44:54 UTC
Would we loose the color swatch representation (Dark1, Light + 6 accents) for each Color Theme visible now in the dialog?

What would the new "native IconView widget" present if not the color swatches?
Comment 2 Tomaz Vajngerl 2025-06-18 12:55:21 UTC
(In reply to V Stuart Foote from comment #1)
> Would we loose the color swatch representation (Dark1, Light + 6 accents)
> for each Color Theme visible now in the dialog?
> 
> What would the new "native IconView widget" present if not the color
> swatches?

It would present the same color swatches, but using an GTK native IconView instead of ValueSet, which is a LO custom widget. Custom widgets have several issues when using welding (non-native look, HiDPI for example).

When using JS dialog, we need to send the bitmaps of the whole widget to the client (and listen to mouse events when clicking on the presented bitmap and send those back to the LO core) instead of individual color swatches. 

This is why we are working on converting usages of the ValueSets to IconView.
Comment 3 Commit Notification 2025-07-11 08:11:36 UTC
Parth Raiyani committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/2d1192753bf14dc01e81061ed8e9b01443070478

tdf#167074 Switch to IconView in ThemeDialog for improved UI handling

It will be available in 26.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.
Comment 4 Buovjaga 2025-08-04 11:16:22 UTC
Can this be closed as fixed?
Comment 5 Parth Raiyani 2025-08-04 12:22:59 UTC
(In reply to Buovjaga from comment #4)
> Can this be closed as fixed?

Yes, I believe we can. Let me do that.