You are not logged in.

#1 2021-08-16 18:43:37

str1ngd
Member
Registered: 2021-07-11
Posts: 28

[SOVLED]Windows/KDE-like behaviour in scrollbars after installing KDE?

As the title reads, I wanted to try KDE, so I just installed it etc. Then after trying it out I removed it because I preferred to stay with my Xfce. After I did that however, I noticed that my scrollbar started now to act like it does on Windows and KDE? For example, pressing at the bottom of the scrollbar on a long web page only travels like a tenth instead of going immidiately down to the bottom of the page, also with a little transition.

I tried removing orphan packages

pacman -R $(pacman -Qtdq)

as well but that didn't change anything.
Pressing the middle mouse button however does how it did before, and I am not sure why.

How can I fix this? If anyone wants me to elaborate on what I mean feel free to ask. Thanks

Last edited by str1ngd (2021-08-19 13:26:42)

Offline

#2 2021-08-16 22:12:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,374

Re: [SOVLED]Windows/KDE-like behaviour in scrollbars after installing KDE?

That's controlled by a styleHint, QStyle::SH_ScrollBar_MiddleClickAbsolutePosition and QStyle::SH_ScrollBar_LeftClickAbsolutePosition
iow. it depends on the GUI style you're using right now.

Eg. the Fusion style jumps on the middle button, trickles on the left button.
The two controlling environment variables for the style are QT_QPA_PLATFORMTHME and QT_STYLE_OVERRIDE.

Online

#3 2021-08-17 08:56:42

str1ngd
Member
Registered: 2021-07-11
Posts: 28

Re: [SOVLED]Windows/KDE-like behaviour in scrollbars after installing KDE?

seth wrote:

That's controlled by a styleHint, QStyle::SH_ScrollBar_MiddleClickAbsolutePosition and QStyle::SH_ScrollBar_LeftClickAbsolutePosition
iow. it depends on the GUI style you're using right now.

Eg. the Fusion style jumps on the middle button, trickles on the left button.
The two controlling environment variables for the style are QT_QPA_PLATFORMTHME and QT_STYLE_OVERRIDE.

Okay in env I only see QT_QPA_PLATFORMTHEME with the value "gtk2"

QT_QPA_PLATFORMTHEME=gtk2

What do I do to change it to how it was before? And how do I access "styleHint"?

Offline

#4 2021-08-17 12:57:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,374

Re: [SOVLED]Windows/KDE-like behaviour in scrollbars after installing KDE?

How am I supposed to know what it was before?
gtk2 doesn't sound kde-ish, though.

What happens if you run

QT_STYLE_OVERRIDE=Fusion someqtapplication

Another thing that just occurred to me is that I jumped to the conclusion "KDE, hence we're talking about Qt clients", maybe that was wrong: what programs are actually affected by the behavior (name some examples)

QStyle::styleHint() is a function in the QStyle class, it's not relevant to end-users.

Online

#5 2021-08-17 14:38:13

str1ngd
Member
Registered: 2021-07-11
Posts: 28

Re: [SOVLED]Windows/KDE-like behaviour in scrollbars after installing KDE?

seth wrote:

How am I supposed to know what it was before?
gtk2 doesn't sound kde-ish, though.

What happens if you run

QT_STYLE_OVERRIDE=Fusion someqtapplication

Another thing that just occurred to me is that I jumped to the conclusion "KDE, hence we're talking about Qt clients", maybe that was wrong: what programs are actually affected by the behavior (name some examples)

QStyle::styleHint() is a function in the QStyle class, it's not relevant to end-users.


Well how it was before is that it didn't act how it did in KDE. When I clicked at the bottom on a page for example it would go to the bottom, without no transition or just going a third/tenth down.

Another thing that just occurred to me is that I jumped to the conclusion "KDE, hence we're talking about Qt clients", maybe that was wrong: what programs are actually affected by the behavior (name some examples)

Yeah it happens pretty much in all applications I can think of, even the volume slider in the Xfce panel now also has a threshold on how much I can change by just clicking at the end of it (before it would jump directly to the end)

(I am using Firefox ESR by the way, an application where this also occurs. It also happened in normal Firefox installed from the offical Arch repos).


I also just now closed Firefox-esr and tried running:

QT_STYLE_OVERRIDE=Fusion firefox-esr

which opened Firefox in the terminal but didn't change the scrollbar, it was still the same how it is now..


If you want, to make it more clear; I can send a video on how it is on my machine and send a video on another clean machine (How I want it to be) to show you what my issue is. Thanks

Offline

#6 2021-08-17 14:45:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,374

Re: [SOVLED]Windows/KDE-like behaviour in scrollbars after installing KDE?

Firefox isn't a Qt client to begin with, it's not even really gtk but probably more like that:

https://unix.stackexchange.com/question … re-i-click
https://wiki.archlinux.org/title/GTK#Configuration

KDE might have written a different gtk config or changed the default path w/ some session export.

Online

#7 2021-08-19 13:26:17

str1ngd
Member
Registered: 2021-07-11
Posts: 28

Re: [SOVLED]Windows/KDE-like behaviour in scrollbars after installing KDE?

seth wrote:

Firefox isn't a Qt client to begin with, it's not even really gtk but probably more like that:

https://unix.stackexchange.com/question … re-i-click
https://wiki.archlinux.org/title/GTK#Configuration

KDE might have written a different gtk config or changed the default path w/ some session export.


Oh, this link seemed to work, thanks https://unix.stackexchange.com/question … re-i-click

I just commented out the lines he said to add in my gtk-3.0 and gtk-4.0 settings.ini

Offline

Board footer

Powered by FluxBB