Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: raziel_432 on 29 April 2021, 12:18:39

Title: [SOLVED] Buggy KDE Desktop Theme
Post by: raziel_432 on 29 April 2021, 12:18:39
I'm using KDE with Breeze Dark Theme with the "Default" GTK Theme and this is the result.
(https://i.imgur.com/a4GPId3.png)
https://imgur.com/a/F6EiiNf
If I use Artix-dark for the GTK Theme it's not noticeable, but it seems there are parts of the GTK theme that are being used for the plasma desktop.
Title: Re: Buggy KDE Desktop Theme
Post by: nous on 30 April 2021, 23:24:22
Just changing the 'Global Theme' may be not enough, perhaps you need to also change it in 'Application Style' tab. See this post too for more (https://forum.artixlinux.org/index.php/topic,1380.msg11309.html#msg11309).
You should also read our wiki entry (https://wiki.artixlinux.org/Main/Troubleshooting#When_I_switch_theme_in_Plasma.2FMATE.2FXFCE.2FAnyDEorWM_the_colours_are_broken.21) to get some insight on the subject.
Title: Re: Buggy KDE Desktop Theme
Post by: raziel_432 on 01 May 2021, 08:07:02
When I do that the GTK applications theme switches to Breeze and there are still White bars with Black/Grey font.

(https://i.imgur.com/olZDeXS.png)
Title: Re: Buggy KDE Desktop Theme
Post by: raziel_432 on 01 May 2021, 08:12:53
Can't Artix copy off Manjaro Linux or KDE neon's solution to this? I don't have this problem on those distros.
Title: Re: Buggy KDE Desktop Theme
Post by: raziel_432 on 01 May 2021, 08:48:05
This is how the Breeze Dark Theme looks like in Artix:
(https://i.imgur.com/fphR1dl.png)

This is how Manjaro looks like with Breeze Dark Theme and Default GTK Application Style :
(https://i.imgur.com/SCBGbx0.png)

Artix takes some parts of the GTK Application Style and Mixes it with the Global Theme.
While Manjaro has isolated KDE and GTK Application Style, so I can have two different themes for GTK and KDE apps.
Can't the same be done with Artix? I'm not that tech savvy so I don't know the differences between Atix and Manjaro.
Except the init systems.

(https://i.imgur.com/ByYg0VT.png)
Title: Re: Buggy KDE Desktop Theme
Post by: tintin on 02 May 2021, 06:06:42
Bonjour,

Just yesterday I installed Artix Linux XFCE OpenRC from the artix-xfce-openrc-20210426-x86_64.iso using Calamares.

I don't use Thunar, but Dolphin.

When choosing the Adwaita theme, I notice that the visual themes are mixed.
The background of Dolphin, Gimp, or some configuration windows is black...

I found an absolutely unscientific method to fix it (but it has been working for over a year):

Reinstall all the packages present.
sudo pacman -S $(pacman -Qnq)

After this "cure", all the colors are correct everywhere ... on condition of commenting (add # at the beginning of the line) in / etc / environment the two lines:
# QT_QPA_PLATFORMTHEME=gtk2
# QT_STYLE_OVERRIDE=gtk

sudo mousepad /etc/environment

P.S.
Personally, I change the background color of Dolphin:
edit ~/.config/kdeglobals and modify
[Colors:View]
BackgroundNormal=220,220,220

mousepad ~/.config/kdeglobals
Title: Re: Buggy KDE Desktop Theme
Post by: raziel_432 on 02 May 2021, 12:35:36
Can't try right now. The latest 4 updates did something to my runit system (I think) and now firefox, telegram and pamac won't start, and pacman -Syyu returns error: no usable package repositories configured.
I don't know what happened.
Title: Re: Buggy KDE Desktop Theme
Post by: tintin on 02 May 2021, 13:21:02
Can't try right now. The latest 4 updates did something to my runit system (I think) and now firefox, telegram and pamac won't start, and pacman -Syyu returns error: no usable package repositories configured.
I don't know what happened.
What does cat /etc/pacman.d/mirrorlist say?
Title: Re: Buggy KDE Desktop Theme
Post by: raziel_432 on 02 May 2021, 14:16:20
What does cat /etc/pacman.d/mirrorlist say?

I don't think there's any problem there.
It says Generated on 2021-04-26 and Mirror list of Europe, North America and Asia Servers.

I get error when starting apps that says error while loading shared libraries: /usr/lib/libatspi.so.0: file too short
It links to libatspi.so.0.0.1 which is a zero byte file.
Title: Re: Buggy KDE Desktop Theme
Post by: tintin on 02 May 2021, 15:39:18
I get error when starting apps that says error while loading shared libraries: /usr/lib/libatspi.so.0: file too short
It links to libatspi.so.0.0.1 which is a zero byte file.
I am not an expert.
Have you installed packages from AUR or locally unsupported packages?

I leave the rest to the specialists ...
Title: Re: Buggy KDE Desktop Theme
Post by: raziel_432 on 02 May 2021, 18:31:14
I am not an expert.
Have you installed packages from AUR or locally unsupported packages?

I leave the rest to the specialists ...
No, I just updated some packages. My PC crashed later so maybe that's the reason.
I'll just reinstall. This was a new install anyway.
Title: Re: Buggy KDE Desktop Theme
Post by: tintin on 02 May 2021, 18:39:28
No, I just updated some packages. My PC crashed later so maybe that's the reason.
Probably.
Especially if installation processes were in progress.

Quote
I'll just reinstall. This was a new install anyway.
Ah OK   :)

Title: Re: Buggy KDE Desktop Theme
Post by: raziel_432 on 02 May 2021, 19:32:10
Probably.
Especially if installation processes were in progress.
No, it didn't happen during the update idk
I commented out:
# QT_QPA_PLATFORMTHEME=gtk2
# QT_STYLE_OVERRIDE=gtk
in  /etc/environment and now the theme works as it should!
But now I noticed another problem.
The cursor animation constantly changes between the default and breeze.
Title: Re: Buggy KDE Desktop Theme
Post by: nous on 02 May 2021, 23:12:39
I get error when starting apps that says error while loading shared libraries: /usr/lib/libatspi.so.0: file too short
It links to libatspi.so.0.0.1 which is a zero byte file.
Delete libatspi.so.0.0.1 and re-install at-spi2-core. No need to re-install the entire system.

I commented out:
# QT_QPA_PLATFORMTHEME=gtk2
# QT_STYLE_OVERRIDE=gtk
in  /etc/environment and now the theme works as it should!
This is mentioned in the last paragraph of the wiki entry I linked in my previous post:
Our Gtk-based DEs use the QT_QPA_PLATFORMTHEME and QT_STYLE_OVERRIDE environment variables to control the appearance of Qt applications. Using an all-toolkit theme like Breeze or Artix-dark is recommended and no additional actions are needed to achieve visually appealing results. Otherwise, those variables may need to be disabled in /etc/environment. For some Qt applications that follow ~/.config/kdeglobals, you may need to delete the lines containing 'artix-dark' from it (or delete it).
Title: Re: [SOLVED] Buggy KDE Desktop Theme
Post by: raziel_432 on 03 May 2021, 12:20:41
Delete libatspi.so.0.0.1 and re-install at-spi2-core. No need to re-install the entire system.
I have this laptop that crashes often, so after I fixed it, it crashed again and at-spi2-core got corrupted again, but this time I already installed timeshift from AUR and had a btrfs snapshot ready.
Timeshift should have a package in the main repositories, because there are cases when I try to install a package from AUR like pamac-tray-icon-plasma where I get a compile error.
I can live without pamac-tray-icon-plasma but not without timeshift.
I used pamac-tray-appindicator but it seems it's not in the repositories anymore.
Title: Re: [SOLVED] Buggy KDE Desktop Theme
Post by: nous on 03 May 2021, 16:42:09
BTW, here's how Plasma renders each theme here, it's the latest stable community-qt version (20210426): Artix-dark, Breeze and Breeze-dark.
Title: Re: [SOLVED] Buggy KDE Desktop Theme
Post by: Fox on 11 November 2023, 16:46:00
Just do this and theme like it's normal Arch:
https://forum.artixlinux.org/index.php/topic,6126