Bug 152338 - Wrong default URL color with dark page background (Writer only)
Summary: Wrong default URL color with dark page background (Writer only)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink Options-Dialog-Colours Automatic-Color
  Show dependency treegraph
 
Reported: 2022-12-01 10:18 UTC by dhina
Modified: 2023-11-29 08:03 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Wrong default color in URL (134.35 KB, image/png)
2022-12-01 10:19 UTC, dhina
Details
Dark links not readable (114.64 KB, image/png)
2023-06-30 16:05 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
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.