Bug 116683 - LibreOffice is unusable under Plasma's breeze-dark theme
Summary: LibreOffice is unusable under Plasma's breeze-dark theme
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.2.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gtk3-themeing
  Show dependency treegraph
 
Reported: 2018-03-28 11:28 UTC by Merlinux
Modified: 2021-08-26 15:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
ScreenShot (75.92 KB, image/png)
2018-03-28 11:30 UTC, Merlinux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Merlinux 2018-03-28 11:28:53 UTC
Description:
If one tries to use a dark theme under plasma libreoffice is just unusable.

See screenshot attached

Steps to Reproduce:
1.Set Plasma to use theme Breeze-Dark (for both Qt and GTK3 software)
2.Set Libreoffice to use Breeze-Dark theme ( https://addons.mozilla.org/en-US/firefox/addon/plasma-5-breeze-dark/ )

Actual Results:  
SideBar, statusbar and others are not themed

Expected Results:
All of LibreOffice UI should be themed


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Comment 1 Merlinux 2018-03-28 11:30:11 UTC
Created attachment 140938 [details]
ScreenShot

Screenshot of Calc
Comment 2 Buovjaga 2018-04-02 15:05:35 UTC
(In reply to Merlinux from comment #0)
> Steps to Reproduce:
> 1.Set Plasma to use theme Breeze-Dark (for both Qt and GTK3 software)
> 2.Set Libreoffice to use Breeze-Dark theme (
> https://addons.mozilla.org/en-US/firefox/addon/plasma-5-breeze-dark/ )

Why do you have that Firefox theme as step 2? It is completely unnecessary. Breeze Dark works just fine when you switch to it in the KDE settings and open LibreOffice. Sure, there are some issues like bug 116585, but not the ones you describe.
Comment 3 Merlinux 2018-04-04 15:42:06 UTC
(In reply to Buovjaga from comment #2)
> (In reply to Merlinux from comment #0)
> > Steps to Reproduce:
> > 1.Set Plasma to use theme Breeze-Dark (for both Qt and GTK3 software)
> > 2.Set Libreoffice to use Breeze-Dark theme (
> > https://addons.mozilla.org/en-US/firefox/addon/plasma-5-breeze-dark/ )
> 
> Why do you have that Firefox theme as step 2? It is completely unnecessary.
> Breeze Dark works just fine when you switch to it in the KDE settings and
> open LibreOffice. Sure, there are some issues like bug 116585, but not the
> ones you describe.

That's weird, then...
I'm on Tumbleweed and i do have KDE's GTK (2 and 3) Theme Settings all set to Breeze-Dark and still LibreOffice is all "Grey" unless i apply that Firefox theme which, even then, stays as the screenshot.
Comment 4 Merlinux 2018-04-04 16:13:51 UTC
(In reply to Buovjaga from comment #2)
> (In reply to Merlinux from comment #0)
> > Steps to Reproduce:
> > 1.Set Plasma to use theme Breeze-Dark (for both Qt and GTK3 software)
> > 2.Set Libreoffice to use Breeze-Dark theme (
> > https://addons.mozilla.org/en-US/firefox/addon/plasma-5-breeze-dark/ )
> 
> Why do you have that Firefox theme as step 2? It is completely unnecessary.
> Breeze Dark works just fine when you switch to it in the KDE settings and
> open LibreOffice. Sure, there are some issues like bug 116585, but not the
> ones you describe.

Could it have anything to do with the fact that i'm using LibreOffice-GTK3 interface package instead of the old LibreOffice-GTK2?
Comment 5 Buovjaga 2018-04-04 18:09:49 UTC
No, forget about the KDE GTK settings - just use the normal KDE settings.

Surely you are not running LibreOffice with
SAL_USE_VCLPLUGIN=gtk3 libreoffice

Under KDE you use the normal KDE integration VCL backend of LibreOffice.
Comment 6 Merlinux 2018-04-04 19:33:18 UTC
(In reply to Buovjaga from comment #5)
> No, forget about the KDE GTK settings - just use the normal KDE settings.


All the other "normal" KDE settings are set to Breeze-Dark as well.


> Surely you are not running LibreOffice with
> SAL_USE_VCLPLUGIN=gtk3 libreoffice
> 
> Under KDE you use the normal KDE integration VCL backend of LibreOffice.

No idea how to do that! I have no VCL package installed, apparently. :(

Please Advise :)
Comment 7 Buovjaga 2018-04-04 19:42:52 UTC
(In reply to Merlinux from comment #6)
> (In reply to Buovjaga from comment #5)
> > No, forget about the KDE GTK settings - just use the normal KDE settings.
> 
> 
> All the other "normal" KDE settings are set to Breeze-Dark as well.
> 
> 
> > Surely you are not running LibreOffice with
> > SAL_USE_VCLPLUGIN=gtk3 libreoffice
> > 
> > Under KDE you use the normal KDE integration VCL backend of LibreOffice.
> 
> No idea how to do that! I have no VCL package installed, apparently. :(
> 
> Please Advise :)

I am a KDE user and Breeze Dark with LibreOffice is working fine without shoving GTK3 into the mix.

VCL means Visual Components Libraries and it is inherited from OpenOffice.org. It is responsible for rendering the LibreOffice UI. https://docs.libreoffice.org/vcl.html

You can see the VCL backend used in your Help - About dialog. For you I would assume it to be VCL: kde4;
Comment 8 Merlinux 2018-04-06 17:16:08 UTC
(In reply to Buovjaga from comment #7)
> I am a KDE user and Breeze Dark with LibreOffice is working fine without
> shoving GTK3 into the mix.
> 
> VCL means Visual Components Libraries and it is inherited from
> OpenOffice.org. It is responsible for rendering the LibreOffice UI.
> https://docs.libreoffice.org/vcl.html
> 
> You can see the VCL backend used in your Help - About dialog. For you I
> would assume it to be VCL: kde4;

You are correct about that.

However, weirdly, i was able to find a solution by removing the libreoffice-kde4 package and leaving libreoffice-gtk3. The first, apparently, is not as well supported as the later.

Thank you for helping :)
Comment 9 Buovjaga 2018-04-06 17:17:47 UTC
Note that it is not strictly necessary to remove the kde4 integration package. You can somehow make an alias for the normal libreoffice command to be replaced with
SAL_USE_VCLPLUGIN=gtk3 libreoffice

...as you had the gtk3 package installed.
Comment 10 Merlinux 2018-04-13 17:09:46 UTC
(In reply to Buovjaga from comment #9)
> Note that it is not strictly necessary to remove the kde4 integration
> package. You can somehow make an alias for the normal libreoffice command to
> be replaced with
> SAL_USE_VCLPLUGIN=gtk3 libreoffice
> 
> ...as you had the gtk3 package installed.

Where and how can i do that? =)
Comment 11 Buovjaga 2018-04-13 17:34:22 UTC
(In reply to Merlinux from comment #10)
> (In reply to Buovjaga from comment #9)
> > Note that it is not strictly necessary to remove the kde4 integration
> > package. You can somehow make an alias for the normal libreoffice command to
> > be replaced with
> > SAL_USE_VCLPLUGIN=gtk3 libreoffice
> > 
> > ...as you had the gtk3 package installed.
> 
> Where and how can i do that? =)

Well, I tried it, but could not make it work. Anyway, it *should* work like this and maybe it will work for you: in /usr/lib/libreoffice/share/xdg/ are the .desktop files for LibreOffice. The files have Exec= entries for normal start and "new document".

You should change the Exec entries so they start like
Exec=env SAL_USE_VCLPLUGIN=gtk3 libreoffice

Finally, copy the files to /home/username/.local/share/applications/ so they will not be overwritten.
Comment 12 Buovjaga 2018-04-13 17:42:13 UTC
Ah, I ran into something simpler:
edit the file at : /etc/profile.d/libreoffice-fresh.sh and uncomment SAL_USE_VCLPLUGIN=gtk3 (you need to reboot for this change to take effect).

Don't have time now to reboot, but I hope it works for you.
Comment 13 Merlinux 2018-04-18 15:27:56 UTC
(In reply to Buovjaga from comment #12)
> Ah, I ran into something simpler:
> edit the file at : /etc/profile.d/libreoffice-fresh.sh and uncomment
> SAL_USE_VCLPLUGIN=gtk3 (you need to reboot for this change to take effect).
> 
> Don't have time now to reboot, but I hope it works for you.

I'm sorry. I'm tired of looking and trying to find that file, but i'm clueless!
I'm on openSUSE tumbleweed and i can't seem to find any libreoffice-fresh.sh to uncomment the line you mentioned.

Can you provide any clue?
Thank You
Comment 14 Buovjaga 2018-04-18 15:57:04 UTC
(In reply to Merlinux from comment #13)
> (In reply to Buovjaga from comment #12)
> > Ah, I ran into something simpler:
> > edit the file at : /etc/profile.d/libreoffice-fresh.sh and uncomment
> > SAL_USE_VCLPLUGIN=gtk3 (you need to reboot for this change to take effect).
> > 
> > Don't have time now to reboot, but I hope it works for you.
> 
> I'm sorry. I'm tired of looking and trying to find that file, but i'm
> clueless!
> I'm on openSUSE tumbleweed and i can't seem to find any libreoffice-fresh.sh
> to uncomment the line you mentioned.
> 
> Can you provide any clue?
> Thank You

Ok, if it does not exist, create it from scratch and let the contents be:
export SAL_USE_VCLPLUGIN=gtk3

Also make it executable.
Comment 15 Merlinux 2018-04-20 12:19:40 UTC
(In reply to Buovjaga from comment #14)
> (In reply to Merlinux from comment #13)
> > (In reply to Buovjaga from comment #12)
> > > Ah, I ran into something simpler:
> > > edit the file at : /etc/profile.d/libreoffice-fresh.sh and uncomment
> > > SAL_USE_VCLPLUGIN=gtk3 (you need to reboot for this change to take effect).
> > > 
> > > Don't have time now to reboot, but I hope it works for you.
> > 
> > I'm sorry. I'm tired of looking and trying to find that file, but i'm
> > clueless!
> > I'm on openSUSE tumbleweed and i can't seem to find any libreoffice-fresh.sh
> > to uncomment the line you mentioned.
> > 
> > Can you provide any clue?
> > Thank You
> 
> Ok, if it does not exist, create it from scratch and let the contents be:
> export SAL_USE_VCLPLUGIN=gtk3
> 
> Also make it executable.

Worked like a charm!!! THANK YOU!!! :D

Do you think KDE5 back-end( https://anzwix.com/a/LibreOffice/Add%20KDE5%20Desktop%20Backend ) will solve this kde integration problem?
Comment 16 Buovjaga 2018-04-20 13:06:11 UTC
(In reply to Merlinux from comment #15)
> Worked like a charm!!! THANK YOU!!! :D
> 
> Do you think KDE5 back-end(
> https://anzwix.com/a/LibreOffice/Add%20KDE5%20Desktop%20Backend ) will solve
> this kde integration problem?

Cool to hear :)

Maybe the next gen kde backend will solve it, hard to say at this point. My understanding is that Milian was working towards a "KDE file dialogs on top of GTK3" -solution, but there is more fundamental work going on: https://cgit.freedesktop.org/libreoffice/core/log/?h=private/jmux/qt5_fixes and https://cgit.freedesktop.org/libreoffice/core/log/?h=feature/qt5%2bkde5

Yesterday bubli said on IRC that she got native KDE5 dialogs to appear.
Comment 17 stdcerr 2019-12-19 20:45:36 UTC
A similar issue happened to me. I set the icon theme in Plasma under GNOME/GTK Application Style to Breeze Dark. Then, as I launched LibreOffice Draw, all the icons on the left in the DRaw toolbar, were invisible as they were black on very dark grey background and unter less than optimal lightning conditions, it simply is impossible to make out the icons. I essentially had to hover the cursor over each button to see the tooltip which would allow me to recognize where I clicked. I had to manually go to Tools - Options - LibreOffice - View and set the Icon style to Breeze (dark) upon whihc the icons appear perfectly fine.
No manual selection of the dark theme should be required ifit can be inherited from the global plasma configuration.

This is in version 6.3.4.2.0+

Steps to Reproduce:
Set Plasma Style to Breeze Dark, set Application Style > GNOME/GTK Application Style GTK2 theseme & GTK3 theme to Breeze-Dark, set Icon theme to Breeze Dark in Plasma's System Settings dialog.

Actual Results:  
Draw will start with having its Icon style set to Breeze in Tools - Options - View dialog which leads to terrible contrast ratios for the icons in the program!

Expected Results:
The Icon Style in Draw shgould be set to Breeze (dark) automatically.

Reproducible: Always

User Profile Reset: No

Additional info: 

LSB Version:    1.4
Distributor ID: Arch
Description:    Arch Linux
Release:        rolling
Codename:       n/a
Comment 18 Buovjaga 2019-12-19 21:00:27 UTC
stdcerr: please open a new report. Include the text in your Help - About (it can be selected, copied & pasted)
Comment 19 haytham.med 2021-08-26 15:59:07 UTC
Ok, Here's latest update, you can set breeze(dark) under tools>options>view>icon style, and all will be set correctly.