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
the link stays blue
the link should have switched to orange
User Profile Reset: No
Version : 22.214.171.124
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
Created attachment 167376 [details]
demo of the bug
Attached a demo of the bug I'm facing.
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
Version: 126.96.36.199 (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
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 ?
(In reply to mathieu.tarral from comment #3)
> 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 ?
Let's ask design team. I changed bug summary to make the problem more clear.
cc: Design team
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.
> 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:
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 ?
[Automated Action] NeedInfo-To-Unconfirmed
Created attachment 167936 [details]
(In reply to mathieu.tarral from comment #6)
> The solution that was found was...
Maybe a screenshot helps to understand my previous comment.
Resolving NAB since it is possible to change the CS of a hyperlink.