Bug 157818 - Highlight color not visible in sidebar-character-styles-preview
Summary: Highlight color not visible in sidebar-character-styles-preview
Status: RESOLVED DUPLICATE of bug 157067
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.7.1 release
Hardware: All Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-18 20:48 UTC by fedfue
Modified: 2023-10-27 07:05 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example on version 7472 (ok) and 7571 (error) (212.89 KB, image/jpeg)
2023-10-19 00:54 UTC, fedfue
Details
version 7.6 - the same problem (103.54 KB, image/jpeg)
2023-10-19 05:23 UTC, fedfue
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fedfue 2023-10-18 20:48:13 UTC
Description:
In 'sidebar > Syles > Character styles', with 'Show previews' checked, the styles with a background color do not show it in the preview of this sidebar (in 'Paragraph style' it works fine) (in previous versions it worked fine). 

Steps to Reproduce:
1.Open LibreOffice Writer.
2.open the sidebar.
3.go to the 'Character style' tab.
4.check 'show previews' at the bottom of the sidebar.
5.Create a style and assign it a background color. 
6. apply that style to a text.

Actual Results:
On the page, the text will be displayed with background color, but in the sidebar it will not.

Expected Results:
You should see the background color in the (as in previous versions) 


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 6; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-GB (en_GB); UI: en-GB
Calc: CL threaded
Comment 1 Dieter 2023-10-18 21:29:27 UTC
fedfue, could you please retest with LO 7.6 and in SafeMode?
Thank you.
=> NEEDINFO
Comment 2 m_a_riosv 2023-10-18 22:06:26 UTC

*** This bug has been marked as a duplicate of bug 119729 ***
Comment 3 fedfue 2023-10-18 23:56:53 UTC
(In reply to m.a.riosv from comment #2)
> 
> *** This bug has been marked as a duplicate of bug 119729 ***

Bug 119729 seems to talk about "drawing styles", I mean 'styles' [Ctrl Alt 2] -> 'a' icon ('Character styles') (similar to CSS class styles).
It works in version 7.4.7.2, it stopped working in 7.5.7.1 (and I think it happened a few years ago too, and then they fixed it).
Comment 4 fedfue 2023-10-19 00:54:11 UTC
Created attachment 190287 [details]
Example on version 7472 (ok) and 7571 (error)
Comment 5 Dieter 2023-10-19 03:41:07 UTC
So there is still the question, if it works with 7.6.? Could you please test and provide Feedback?
=> NEEDINFO
Comment 6 fedfue 2023-10-19 05:19:36 UTC
(In reply to Dieter from comment #1)
> fedfue, could you please retest with LO 7.6 and in SafeMode?
> Thank you.
> => NEEDINFO

Version 7.6.2_Win_x86-64, the same problem.
Comment 7 fedfue 2023-10-19 05:23:51 UTC
Created attachment 190289 [details]
version 7.6 - the same problem

version 7.6 the same problem
Comment 8 m_a_riosv 2023-10-20 00:45:35 UTC
Sorry, not a duplicate.

Seems it works when the style is modified, but not with direct format.

Please, can you attach the sample file.
Comment 9 fedfue 2023-10-20 17:35:49 UTC
(In reply to m.a.riosv from comment #8)
> Sorry, not a duplicate.
> 
> Seems it works when the style is modified, but not with direct format.
> 
> Please, can you attach the sample file.

Do you mean a sample document '.odt'? The problem is not in the document view, it works fine there. The problem occurs only in the sidebar > (preview) 'character style (even if a new document is created).
I think it is also independent of the template (.ott). Because if I open a new document with a default LibreOffice template, and I modify the background-color to some style ('character style' tab), the same thing happens, the background color looks good on the page, but it doesn't is displayed in the sidebar.
Comment 10 fedfue 2023-10-20 17:43:22 UTC
(ps: yesterday I uploaded some example screenshots)
Comment 11 raal 2023-10-20 21:56:33 UTC
Cannot reproduce with Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3649dc202bedf72e37c77993a1f7027bfdfc6d9e
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Please attach sample file. Thank you.
Comment 12 Dieter 2023-10-22 11:47:07 UTC
Can't confirm with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ff9c8b62c1015972e9e89799832fa3690dcd46b4
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

Preview works. Fedfue, have you tested in SafeMode (Help -> Restart in SafeMode?)
=> NEEDINFO
Comment 13 fedfue 2023-10-24 19:57:17 UTC
(In reply to Dieter from comment #12)
> Can't confirm with
> 
> Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
> Build ID: ff9c8b62c1015972e9e89799832fa3690dcd46b4
> CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL:
> win
> Locale: de-DE (de_DE); UI: en-GB
> Calc: CL threaded
> 
> Preview works. Fedfue, have you tested in SafeMode (Help -> Restart in
> SafeMode?)
> => NEEDINFO

yes, the same situation. (In 2 computers with Win 10).
Comment 14 Dieter 2023-10-27 07:05:26 UTC
I confirm it with

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

but it works in master. It has been fixed recently, see bug 157067

*** This bug has been marked as a duplicate of bug 157067 ***