Bug 115111 - DOCX: Application color is only working outside page margins
Summary: DOCX: Application color is only working outside page margins
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Page
  Show dependency treegraph
 
Reported: 2018-01-19 15:21 UTC by J22Gim
Modified: 2020-11-27 07:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test DOCX file (432.65 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-01-19 15:22 UTC, J22Gim
Details
just checking the colors are OK when printing to PDF (293.31 KB, application/pdf)
2018-01-19 15:23 UTC, J22Gim
Details
Screenshot of the example file and another example in current Writer (105.10 KB, image/png)
2020-11-27 07:23 UTC, NISZ LibreOffice Team
Details
Simple example file made with 5.4 and custom application color (4.74 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-11-27 07:26 UTC, NISZ LibreOffice Team
Details
The second example with custom application color in Writer and default in Word (185.96 KB, image/png)
2020-11-27 07:29 UTC, NISZ LibreOffice Team
Details
Document background vs page background in 5.4 and 7.2alpha (157.85 KB, image/png)
2020-11-27 07:36 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J22Gim 2018-01-19 15:21:05 UTC
Description:
Application colors don't seem to work as expected in DOCX files.

Steps to Reproduce:
1. In "Application colors" (Tools->Options->LibreOffice->Application Colors), choose a color (eg grey, but can be anything but white) for the document background.
2. Open the DOCX file (try with the test DOCX file I uploaded)

Actual Results:  
In my screen I see the text background area as white (ie not the color chosen as document background in Application Colors)

Expected Results:
I would expect to see the background of the document in grey color (or whatever color you chose as Document Background) instead of white.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
It works well with ODT files (and maybe other formats).
I attach two files: the DOCX test and the PDF to check that it prints with correct colors.

Version: 5.4.4.2
Build ID: 1:5.4.4~rc2-0ubuntu0.14.04.1~lo1.1
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Comment 1 J22Gim 2018-01-19 15:22:33 UTC
Created attachment 139217 [details]
test DOCX file
Comment 2 J22Gim 2018-01-19 15:23:09 UTC
Created attachment 139218 [details]
just checking the colors are OK when printing to PDF
Comment 3 Dieter 2018-01-20 07:03:45 UTC
Tried to reproduce.

Result: Background outside margins shows application colour; Background within margins is still white.

J22Gim, do you get the same result?

Version: 5.4.4.2 (x64)
Build-ID: 2524958677847fb3bb44820e40380acbe820f960
CPU-Threads: 4; BS: Windows 6.19; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: group
Comment 4 J22Gim 2018-01-22 12:01:20 UTC
Yes, exactly like you describe. You can see it in the attached PDF (*)

(*) https://bugs.documentfoundation.org/attachment.cgi?id=139218
Comment 5 Dieter 2018-01-23 20:41:48 UTC
Set to NEW, because of comment 3 and 4.
Comment 6 J22Gim 2018-02-28 00:38:52 UTC
Confirmed also with
Version: 6.0.1.1
Build ID: 60bfb1526849283ce2491346ed2aa51c465abfe6
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: kde4; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 7 J22Gim 2018-07-12 02:50:11 UTC
any news about this?
Comment 8 QA Administrators 2019-07-13 02:47:49 UTC Comment hidden (obsolete)
Comment 9 J22Gim 2020-04-22 01:21:35 UTC
Still reproducible today. 

Version: 6.4.3.2
Build ID: libreoffice-6.4.3.2-snap1
CPU threads: 4; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 10 J22Gim 2020-10-13 15:49:20 UTC
still the same in Version: 7.0.2.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Ubuntu package version: 1:7.0.2_rc2-0ubuntu0.20.04.2
Calc: threaded
Comment 11 NISZ LibreOffice Team 2020-11-27 07:23:17 UTC
Created attachment 167607 [details]
Screenshot of the example file and another example in current Writer

In current master this works with a new document:

Version: 7.2.0.0.alpha0+ (x64)
Build ID: cb084f475db33a2cfc62bc9c8de37b8c3c87b3c7
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Also the example file has color (white) background set in the page properties. Unsetting that to "None" background restores the desired effect.
Comment 12 NISZ LibreOffice Team 2020-11-27 07:26:53 UTC
Created attachment 167608 [details]
Simple example file made with 5.4 and custom application color

This simple example file demostrates that even 5.4 did the right thing: using the default "None" page background area fill generates the desired effect.
Comment 13 NISZ LibreOffice Team 2020-11-27 07:29:05 UTC
Created attachment 167609 [details]
The second example with custom application color in Writer and default in Word

In Writer my setting causes the whole page to have a green color, while the default is retained in Word.
Comment 14 NISZ LibreOffice Team 2020-11-27 07:36:01 UTC
Created attachment 167610 [details]
Document background vs page background in 5.4 and 7.2alpha

Also the opposite setting works now correctly: If you set a non-white document background in Options and a white background in the page settings, then the page background has not covered the margins (unlike in Word). 
This changed with bug #112195.
Comment 15 NISZ LibreOffice Team 2020-11-27 07:37:27 UTC
With all that said, I can't reproduce any incorrect behavior.