Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-04-18 08:12:15

Tabespe
Member
Registered: 2019-12-04
Posts: 110

Scrollbar steppers

Hello

Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23.2_x64 Libretto January 21  2024 base: Debian GNU/Linux 12
    (bookworm)

Is there a way to bring the arrows in addition to the scrollbar into the GUI.
I would like to have them for GTK2, GTK3 and ev. GTK4

Would appreciate some answer.

Thank you.


Edit:
I have tried this in ~/.config/gtk-3.0/gtk.css:
scrollbar {
  -GtkScrollbar-has-backward-stepper: true;
  -GtkScrollbar-has-forward-stepper: true;
  }
scrollbar button {padding: 0}

But this makes not the full job.

Last edited by Tabespe (2024-04-18 08:16:50)

Offline

#2 2024-04-18 10:49:28

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,034

Re: Scrollbar steppers

Can you explain what you mean by "not the full job"? What is missing?

Also, steppers don't exist in GTK4 (see: https://discourse.gnome.org/t/gtk4-gtks … gone/14376).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#3 2024-04-18 11:39:52

Tabespe
Member
Registered: 2019-12-04
Posts: 110

Re: Scrollbar steppers

Thank you for asking.

1) Thunar: If the scrollbar is on the extreme down position, the stepper is weak:
https://imgur.com/83dTcxS
I would like, that it is still strong like the upper.

2) Thunar:
When I click on the arrow, I would like, that it moves one line like in GTK2 apps. But it only moves some pixels in thunar:
https://imgur.com/a/kCC91Xy

3) GTK2-Apps:
It does not show the arrows, but if I click, where the arrows should be it works as expected:
https://imgur.com/MXPTO7F
But I would like to see also arrows there.

Offline

#4 2024-04-18 19:37:58

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,034

Re: Scrollbar steppers

Tabespe wrote:

1) Thunar: If the scrollbar is on the extreme down position, the stepper is weak:
https://imgur.com/83dTcxS
I would like, that it is still strong like the upper.

I think this is default GTK3 behaviour when there is no more to scroll. You can override it by changing the last line of your snippet to:

scrollbar button {padding: 0; color: red;}

...and change "red" to whatever colour you would like.

2) Thunar:
When I click on the arrow, I would like, that it moves one line like in GTK2 apps. But it only moves some pixels in thunar:
https://imgur.com/a/kCC91Xy

I have a sense that this is just the way GTK3 changed things related to scrolling. I'm unable to find any information on how to disable or revert this functionality.

3) GTK2-Apps:
It does not show the arrows, but if I click, where the arrows should be it works as expected:
https://imgur.com/MXPTO7F
But I would like to see also arrows there.

It's been soooo long since I've done any GTK2 tweaking. What gtk2 theme are you using and do you have any content in ~/.gtkrc-2.0?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#5 2024-04-18 20:28:50

Tabespe
Member
Registered: 2019-12-04
Posts: 110

Re: Scrollbar steppers

Thank you.

Yes, it has:
https://imgur.com/cPr5In9

Offline

#6 2024-04-18 21:16:47

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,034

Re: Scrollbar steppers

Unfortunately, the Arc gtk-2.0 theme doesn't implement the steppers. Here is how the Chicago95 theme implements them. Notice that it uses the pixmap engine to specify the graphic elements for the function "STEPPER" - you'll need to re-create this functionality for the Arc theme.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Online

#7 2024-04-19 12:39:03

Tabespe
Member
Registered: 2019-12-04
Posts: 110

Re: Scrollbar steppers

Thank you!

I see it needs the folder Scrollbars with the pics and the file "scrollbar.rc".

Offline

#8 2024-04-19 13:01:08

Tabespe
Member
Registered: 2019-12-04
Posts: 110

Re: Scrollbar steppers

But maybe I should just take another theme.

Offline

Board footer

Powered by FluxBB