https://bugs.documentfoundation.org/show_bug.cgi?id=145734

--- Comment #3 from Michael Weghorn <m.wegh...@posteo.de> ---
(In reply to Timur from comment #2)
> 1. I understand you are the author of libreoffice-qt6, I found rpm version
> on the web, but it's not in Ubuntu 22.04 repos, do you know why? 
> Does that prevent successful running of "SAL_USE_VCLPLUGIN=qt6 soffice",
> where I see gtk3 in Help-About? 

The qt6 VCL plugin is essentially the qt5 VCL plugin built against Qt 6 (plus
some changes needed for Qt 6), commit adding it:
https://git.libreoffice.org/core/commit/88d57cf241209ffec9eaed3e523942ab51af6db6

For it to be available in Ubuntu, it would have to be packaged, which
apparently hasn't happened so far. One reason for this might be that the qt6
VCL plugin was never mentioned in the LO release notes - mainly because it was
initially mostly meant to be used for own experimenting before making it
"official".
But at least from my (developer's) experience, I haven't run into any
issues that are specific to the qt6 VCL plugin (as compared to the qt5/kf5 one)
for a while when used together with recent versions of Qt 6.
(Well OK, looking at this meta bug again, there is the issue with video
playback on Wayland, tdf#145735.... tdf#135386 was just moved here because
making a11y work requires changes to the Qt library in addition, which aren't
going to happen for Qt 5.)

Triggered by your question, I have now submitted a packaging request to the
Debian bug tracker:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1019740

(I think Ubuntu takes over LO packaging from Debian, so having it packaged in
Debian would then also make it available in future Ubuntu releases.)


> 2. In my Mint 19.3 (based on Ubuntu 18.04) different VCL are working,
> including with OS dark mode. 
> In Ubuntu 22.04 with OS dark mode, only LO gtk3 works with dark mode, kf5
> and qt5 not (libreoffice-qt5 and libreoffice-kf5 installed, not full KDE or
> plasma-desktop). Seems the same for Wayland and X11. 
> Any idea how I can make them work?

What desktop environment do you use and how are you enabling OS dark mode?
Desktop environment based on Gtk might possibly not change the style for
Qt-based applications when switching to dark mode in the OS settings (but I
don't know exactly).

What should still work is to set the QT_STYLE_OVERRIDE environment variable
(and make sure the corresponding Qt style packages are installed), e.g. I get
kf5 with a dark theme when I start LO with

    QT_STYLE_OVERRIDE="Adwaita-Dark" ./instdir/program/soffice.bin --writer

even if the system theme/style is not set to dark mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to