Bug 152338

Summary: Wrong default URL color with dark page background (Writer only)
Product: LibreOffice Reporter: dhina <dhinaghena>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: aron.budea, rafael.palma.lima
Priority: medium    
Version: 7.5.0.0 alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107733, 142074, 157844    
Attachments: Wrong default color in URL
Dark links not readable

Description dhina 2022-12-01 10:18:44 UTC
Description:
With a black (dark) page background, the default URL color should be changed to a light color, as it has been set automatically in Drawing or Presentation

Steps to Reproduce:
1. Open Writer
2. write an URL and press space at the end to make it clickable automatically

Actual Results:
The white tex color is changed to dark blue

Expected Results:
It should be a light blue when dark background


Reproducible: Always


User Profile Reset: No

Additional Info:
This issue is not present in Presentation and Drawing
Comment 1 dhina 2022-12-01 10:19:28 UTC
Created attachment 183937 [details]
Wrong default color in URL
Comment 2 dhina 2022-12-01 10:19:42 UTC
Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 360b5861fb46353e7a6b9f5abf13339cd719a8df
CPU threads: 8; OS: Mac OS X 10.15.7; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_FR.UTF-8); UI: en-US
Calc: threaded
Comment 3 dhina 2022-12-01 10:23:15 UTC
I forgot a step to reproduce it:

Steps to Reproduce:
1. Open Writer
2. Set the page's background to black:  Side menu > PAge > Styles > Background > Black 
3. write an URL and press space at the end to make it automatically clickable
Comment 4 Rafael Lima 2022-12-01 22:05:54 UTC
In Impress and Draw the hyperlink color comes from [1] which is an "Application Color" that depends on the color scheme you chose.

[1] https://opengrok.libreoffice.org/xref/core/officecfg/registry/data/org/openoffice/Office/UI.xcu?r=0aa61812&mo=17649&fi=483#478

In Writer it comes from the "Internet Link" style, hardcoded as COL_BLUE here:

https://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentStylePoolManager.cxx?r=d96d1b38#1548

The main problem is that a Writer style / template is not sensitive to the UI color scheme. So I wouldn't know how to proceed here because we cannot simply change the template.
Comment 5 Timur 2023-06-30 16:05:57 UTC
Created attachment 188138 [details]
Dark links not readable

I set to New, because this is a problem that makes content unreadable.