Re: LyX on Gnome wayland - a new decoration alternative

2023-11-25 Thread Tobias Hilbricht
Am Samstag, dem 25.11.2023 um 12:18 +0100 schrieb Lorenzo Bertini:
> you installed them). These are called "styles", and are .cpp Qt
> plugins rather than themes; you can set them to use a custom .qss if
> you want to theme them. Kvantum instead is a theme engine, and you
> can install themes with it. Very linear and uncomplicated, isn't it?
> :)
> 
> Lorenzo

I stumbled across this thread because qt-apps like LyX on Gnome +
Wayland did behave a bit strange here, too. Out of the box I had
unusual dialogs (files in LyX and TeXStudio, printing in Ocular, both
were in parts untranslated).

It turned out qt5-gtk-platformtheme-packages were not installed, and I
learned that I have to install qt5ct and that I have to set a variable
QT_QPA_PLATFORMTHEME=qt5ct in /etc/environment, too.

If I use kvantum here, then Comboboxes have gray fonts on dark
background, which makes them unusable. So indeed, very linear and
uncomplicated ...

Tobias
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX on Gnome wayland - a new decoration alternative

2023-11-25 Thread Lorenzo Bertini
Il giorno sab 25 nov 2023 alle ore 11:13 Isaac Oscar Gariano <
isaacos...@live.com.au> ha scritto:

> Hmm,
> Are you using LyX 2.3, which uses Qt5?
> I use the LyX 2.4 development version on Qt6 usually on Windows, but I
> occassionaly use it on Wayland  (through WSLg, which doesn't use a desktop
> environment).
>
> (On a side note, I recall liking "Plastic" (but I think it had a funny
> spelling) for Qt5, but I can't seem to find it for Qt6...)
>
> Do you by any chance know where to find more Qt6 themes? (I only have
> variants of "HighContranst", "Adwaita", "kvantum", "Fusion", and "Windows"
> (which looks like a 25 year old version of Windows, not a recent one)).
>
> — Isaac Oscar Gariano
> --
> *From:* lyx-users  on behalf of Lorenzo
> Bertini 
> *Sent:* Saturday, 25 November 2023 7:53 AM
> *To:* lyx-users List 
> *Subject:* LyX on Gnome wayland - a new decoration alternative
>
> Dear list,
>
> if use LyX on Gnome wayland using "wayland" as a platform (and not "xcb")
> you probably don't have any shadow and only very basic window decoration.
> This is because Qt still hasn't implemented proper wayland decorations.
>
> You then have to rely on external Qt plugins to have nicer decorations and
> shadows. The projects QGnomePlatform and adwaita-qt are being discontinued
> and replaced by QAdwaitaDecorations (
> https://github.com/FedoraQt/QAdwaitaDecorations).
>
> I forked the latter in https://github.com/bertini97/qadwaitadecorations
> trying to address some problems of the original repo, like hardcoded colors
> and shadow artifacts.
>
> Sorry if this is too off-topic. I posted in the hope of helping people who
> use Gnome and don't want to have a bad experience with LyX on wayland.
>
> Lorenzo
>

Hi,
no I'm using the qt6 version. It looks like you are using the default
window decoration on wayland, which is without shadows.

Qt6 dropped "plastique", "motif" and some other styles. Only "fusion" and
"windows" are available (and of course "kvantum" and "adwaita" if you
installed them). These are called "styles", and are .cpp Qt plugins rather
than themes; you can set them to use a custom .qss if you want to theme
them. Kvantum instead is a theme engine, and you can install themes with
it. Very linear and uncomplicated, isn't it? :)

Lorenzo
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


LyX on Gnome wayland - a new decoration alternative

2023-11-24 Thread Lorenzo Bertini
Dear list,

if use LyX on Gnome wayland using "wayland" as a platform (and not "xcb")
you probably don't have any shadow and only very basic window decoration.
This is because Qt still hasn't implemented proper wayland decorations.

You then have to rely on external Qt plugins to have nicer decorations and
shadows. The projects QGnomePlatform and adwaita-qt are being discontinued
and replaced by QAdwaitaDecorations (
https://github.com/FedoraQt/QAdwaitaDecorations).

I forked the latter in https://github.com/bertini97/qadwaitadecorations
trying to address some problems of the original repo, like hardcoded colors
and shadow artifacts.

Sorry if this is too off-topic. I posted in the hope of helping people who
use Gnome and don't want to have a bad experience with LyX on wayland.

Lorenzo
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users