Bug 138292 - CHARACTER STYLES: Not possible to have two different styles for internet link
Summary: CHARACTER STYLES: Not possible to have two different styles for internet link
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2020-11-17 19:08 UTC by mathieu.tarral
Modified: 2020-12-08 10:06 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
demo of the bug (4.48 MB, video/webm)
2020-11-17 19:08 UTC, mathieu.tarral
Details
Screenshot (44.74 KB, image/png)
2020-12-08 10:03 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mathieu.tarral 2020-11-17 19:08:02 UTC
Description:
When inserting a hyperlink in a LibreOffice document, the default style "internet link" is applied.

It is impossible to change this style and switch to another one afterwards.
See the demo for repro.

Steps to Reproduce:
1. insert an internet link (color is blue by default)
2. create a new character style setting orange as default color 
3. try to switch the above link to this orange style

Actual Results:
the link stays blue

Expected Results:
the link should have switched to orange


Reproducible: Always


User Profile Reset: No



Additional Info:
Version : 6.4.6.2
Build ID : 1:6.4.6-0ubuntu0.20.04.1
Threads CPU : 12; OS : Linux 5.4; UI Render : par défaut; VCL: gtk3; 
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded
Comment 1 mathieu.tarral 2020-11-17 19:08:43 UTC
Created attachment 167376 [details]
demo of the bug

Attached a demo of the bug I'm facing.
Comment 2 Dieter 2020-12-04 17:29:07 UTC
I confirm the described behaviour, but I don't know, if it is a bug or not. If I change colour af character style "Internet Link" it works.

Does this solve your problem? => NEEDINFO

Tested with

Version: 7.0.3.1 (x64)
Build ID: d7547858d014d4cf69878db179d326fc3483e082
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 3 mathieu.tarral 2020-12-04 23:24:32 UTC
Hi,

my problem was that I wanted to have multiple internet links styles, with different colors.
That's why I created a separate style and tried to apply it.

So, is this a normal behavior or shouldit be fixed ?

Thanks
Comment 4 Dieter 2020-12-07 07:27:10 UTC
(In reply to mathieu.tarral from comment #3)
> Hi,
> 
> my problem was that I wanted to have multiple internet links styles, with
> different colors.
> That's why I created a separate style and tried to apply it.
> 
> So, is this a normal behavior or shouldit be fixed ?
> 
> Thanks

Let's ask design team. I changed bug summary to make the problem more clear.

cc: Design team
Comment 5 Heiko Tietze 2020-12-07 09:55:02 UTC
Hyperlinks are automatically assigned to the character style (CS) "Internet Link" (but not shown in the Stylist, reported in bug 108170). You can change this style freely and have, for example, the font color in red. You can apply another CS to the link- works for font name, size etc. but color and underline attributes are taken from "Internet Link" anyway. The character properties dialog allows to change the CS for visited and unvisited links (bug 132253 suggests to drop this tab).

I guess the last hint solves your problem. If so, we should discuss on bug 132253 where to move the hyperlink options. My take: drop it anyway and change the CS only in the Stylist, which means one cannot define the visited link appearance in advance.
Comment 6 mathieu.tarral 2020-12-07 20:28:08 UTC
> You can change this style freely and have, for example, the font color in red. > You can apply another CS to the link- works for font name, size etc. but color > and underline attributes are taken from "Internet Link" anyway.

So I can change the color for the CS "Internet Link", and it will be applied on all of them.

My situation is that I wanted to build a resume with LibreOffice.
I created a dark bue sidebar in the left, with multiple links to my contact info, and in the main blank area, I also needed to add links to my projects.

So I need 2 different color to be applied
- orange on blue background
- blue on white background (the default, but we can imagine that we might need more styles)

I asked this question on the ask.libreoffice.org french forum:
https://ask.libreoffice.org/fr/question/278984/changer-la-couleur-dun-hyperlien/

The solution that was found was to set the CS "Internet Link" to "Standard", and reapply the underlining effect, and then on top of that I could apply my custom CS styles.

Should this be considered as a workaround or a valid solution ?

Thanks
Comment 7 QA Administrators 2020-12-08 04:26:32 UTC Comment hidden (obsolete)
Comment 8 Heiko Tietze 2020-12-08 10:03:27 UTC
Created attachment 167936 [details]
Screenshot

(In reply to mathieu.tarral from comment #6)
> The solution that was found was...

Maybe a screenshot helps to understand my previous comment.
Comment 9 Heiko Tietze 2020-12-08 10:06:28 UTC
Resolving NAB since it is possible to change the CS of a hyperlink.