Description: If the background color of a combobox ist set (class is VCLXListBox), only the drop down part of the combobox part is paint with the color, but not when only the selected item is shown and also not when the combobox has no focus. Steps to Reproduce: To reproduce, you need an extension, where the background color of the combobox is set via XPropertyState. In our company, we need this to indicate missing input. Actual Results: Background color is not shown Expected Results: Background color is shown Reproducible: Always User Profile Reset: No Additional Info: Version: 6.4.8.0.0+ (x64) Build-ID: 2277 CPU-Threads: 12; BS: Windows 10.0 Build 19043; UI-Render: Standard; VCL: win; Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE Calc: CL
Self confirming according to https://wiki.documentfoundation.org/QA/Guidelines_for_public_and_private_sector_deployments. Issue has originally been reported by another user in our internal issue tracker.
Created attachment 179026 [details] Demonstrates different behaviour between combobox and listbox The attached file shows, that it is in fact a problem with the listbox and not the combobox, as the combobox paints the background also in the selected state, while the listbox doesn't. Open the dialog with pressing on "Demonstrate BackgroundColor" and play around with both types of control, there are some minor differences, but the colors are equal. The press "Set background color", the combobox is painted immediately with red background, the listbox remains it's color. Only if the drop down list of the listbox is opened, the background color is painted.
Also reproducible with current master on Linux with the gtk3 and kf5 VCL plugins: Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 06d132333deeb1580b7cc106dfb3ff4bc454178d CPU threads: 12; OS: Linux 5.16; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-GB (en_GB.UTF-8); UI: en-US Calc: threaded Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 06d132333deeb1580b7cc106dfb3ff4bc454178d CPU threads: 12; OS: Linux 5.16; UI render: default; VCL: gtk3 Locale: en-GB (en_GB.UTF-8); UI: en-US Calc: threaded
Ilhan Yesil committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/ff7e00e12ff80bd708f31a1d886d000907ceb31a tdf#148109 Paint background color in listbox It will be available in 7.6.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.
Can this be closed as fixed?