Change icons for dark mode

Help with installation and general system troubleshooting questions concerning the office suite LibreOffice.
Post Reply
User avatar
aljustiet
Posts: 5
Joined: Wed Jun 26, 2024 12:08 am

Change icons for dark mode

Post by aljustiet »

They look awful with my theme.
OS: Archlinux/Hyprland
https://i.ibb.co/zfbNGBw/image.png
https://i.ibb.co/zfbNGBw/image.png
image.png (68.77 KiB) Viewed 3417 times
 Edit: Changed subject, was How can I change these icons? 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Last edited by MrProgrammer on Sun Aug 11, 2024 2:26 am, edited 2 times in total.
Reason: Add "dark mode" to topic subject
libreoffice-fresh 24.2.4-2
User avatar
robleyd
Moderator
Posts: 5188
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: How can I change these icons?

Post by robleyd »

I don't have LO available right now but from memory Tools | Options | LibreOffice | View has some icon choices.
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.5.2; SlackBuild for 24.2.5 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue
Unexpected '{' on line 32
.
User avatar
Hagar Delest
Moderator
Posts: 32759
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: How can I change these icons?

Post by Hagar Delest »

What OS?
I fear this kind of icon is more complicated than just a theme. It may be linked to how the contrast is rendered in dark mode themes for such icons.
Personally, on my Xubuntu machine, I tweak the LO launcher (soffice in /usr/lib) to set the generic display and avoid the dark theme from my desktop manager to apply.
I don't know why but for The Gimp I have no problem with the dark theme but for LO I'm lost with the dark theme. Moreover there are glitches that I can't stand with LO using dark themes (icons in menus are not aligned).
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
User avatar
aljustiet
Posts: 5
Joined: Wed Jun 26, 2024 12:08 am

Re: How can I change these icons?

Post by aljustiet »

Hagar Delest wrote: Wed Jun 26, 2024 8:08 am What OS?
I fear this kind of icon is more complicated than just a theme. It may be linked to how the contrast is rendered in dark mode themes for such icons.
Personally, on my Xubuntu machine, I tweak the LO launcher (soffice in /usr/lib) to set the generic display and avoid the dark theme from my desktop manager to apply.
I don't know why but for The Gimp I have no problem with the dark theme but for LO I'm lost with the dark theme. Moreover there are glitches that I can't stand with LO using dark themes (icons in menus are not aligned).
How Did you do that? I don't like how do the icons render in dark mode too.
libreoffice-fresh 24.2.4-2
User avatar
Hagar Delest
Moderator
Posts: 32759
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Change icons for dark mode

Post by Hagar Delest »

You have to edit the exec file:
sudo mousepad /usr/lib/libreoffice/program/soffice
Then add this line:
export SAL_USE_VCLPLUGIN=gen

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the 🖉 button if your issue has been fixed.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
User avatar
aljustiet
Posts: 5
Joined: Wed Jun 26, 2024 12:08 am

Re: Change icons for dark mode

Post by aljustiet »

Hagar Delest wrote: Sun Aug 11, 2024 9:06 pm You have to edit the exec file:
sudo mousepad /usr/lib/libreoffice/program/soffice
Then add this line:
export SAL_USE_VCLPLUGIN=gen

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the 🖉 button if your issue has been fixed.
https://files.catbox.moe/biu8c1.mp4
Can I set specific light theme for the libreoffice using soffice file?
libreoffice-fresh 24.2.4-2
User avatar
Hagar Delest
Moderator
Posts: 32759
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Change icons for dark mode

Post by Hagar Delest »

I've never tried. I just use the generic one that suits me:
Dark_theme.png
Dark_theme.png (68.7 KiB) Viewed 1889 times
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
User avatar
aljustiet
Posts: 5
Joined: Wed Jun 26, 2024 12:08 am

Re: Change icons for dark mode

Post by aljustiet »

Hagar Delest wrote: Sun Aug 11, 2024 9:32 pm I've never tried. I just use the generic one that suits me:
Dark_theme.png
I added the

Code: Select all

export SAL_USE_VCLPLUGIN=gen
line to the end of the soffice file, but it didn't change my theme in the LO apps.
libreoffice-fresh 24.2.4-2
User avatar
robleyd
Moderator
Posts: 5188
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Change icons for dark mode

Post by robleyd »

end of the soffice file
That won't help, you need to add it before the script actually starts OpenOffice. Instead, add it after this part of the script:

Code: Select all

# file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING
Note however that this change will be lost next time you upgrade OpenOffice. A longer term solution is to edit the OpenOffice entry in your application launcher and insert the string at the beginning of the command to start OpenOffice.
Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.5.2; SlackBuild for 24.2.5 by Eric Hameleers
---------------------
Roses are Red, Violets are Blue
Unexpected '{' on line 32
.
User avatar
aljustiet
Posts: 5
Joined: Wed Jun 26, 2024 12:08 am

Re: Change icons for dark mode

Post by aljustiet »

robleyd wrote: Sun Aug 18, 2024 1:47 am
end of the soffice file
That won't help, you need to add it before the script actually starts OpenOffice. Instead, add it after this part of the script:

Code: Select all

# file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING
Note however that this change will be lost next time you upgrade OpenOffice. A longer term solution is to edit the OpenOffice entry in your application launcher and insert the string at the beginning of the command to start OpenOffice.
What command-line options should I paste? I use fuzzel as my application launcher.
I tried to add gen before SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING
, it changed my theme, but now I have problems with scaling 😕.
image.png
image.png (57.82 KiB) Viewed 407 times
libreoffice-fresh 24.2.4-2
User avatar
Hagar Delest
Moderator
Posts: 32759
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Change icons for dark mode

Post by Hagar Delest »

robleyd wrote: Sun Aug 18, 2024 1:47 am Note however that this change will be lost next time you upgrade OpenOffice. A longer term solution is to edit the OpenOffice entry in your application launcher and insert the string at the beginning of the command to start OpenOffice.
I tried that too but the problem is with default applications that use directly the soffice file instead of the custom launcher.

What is the problem with scaling exactly? Fuzziness or too small interface?
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
Post Reply