LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-08-2016, 01:23 PM   #1
ghborrmann
Member
 
Registered: May 2004
Location: Louisville KY
Distribution: Fedora 25
Posts: 32

Rep: Reputation: 0
Need Help with GTK Theme ScrollBar Steppers


I have recently installed Fedora 25 XFCE (I had been using Fedora 24). After launching libreoffice calc, I noticed that the scroll bars didn't have the arrows at each end for fine tuning. Apparently, the default Adwaita theme does not supply them. Fedora 24 had the same problem, but then I was able to find a theme (BlueMenta) which supplied the missing arrows and looked fine.

This time, I searched through the Fedora 25 installed themes and found two which appeared to enable the arrows: Albatross and Xfce-xde2. Switching to either of those themes restored the arrows, but I found both of them unsatisfactory (the scroll bars and/or the arrows were almost invisible). Moreover, neither of these restored the arrows to my terminal windows.

Searching the web, I found a suggestion that worked for some users: install a file named gtk.css in the folder ~/.config/gtk-3.0 with the contents:
Code:
.scrollbar {
  -GtkScrollbar-has-backward-stepper: true;
  -GtkScrollbar-has-forward-stepper: true;
  -GtkRange-slider-width: 15;
  -GtkRange-stepper-size: 20;
}
This file has no effect on anything, as far as I can tell.

My normal response to this type of thing would be to look at an almost suitable theme and try to tweak it to something more to my needs. The only theme that comes close is the default Adwaita. However, the file /usr/share/themes/Adwaita/gtk-3.0/gtk.css merely says that this file is not used because Adwaita is built into the system.

Why can't I override the Adwaita defaults with ~/.config/gtk-3.0/gtk.css ?

Why don't the Albatross and Xfce-kde2 themes have arrows on the terminal windows, since they have them on the calc windows?

Any suggestions?
 
Old 12-10-2016, 09:35 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I gave up on that kind of stuff a long time ago for this same reason,
Quote:
However, the file /usr/share/themes/Adwaita/gtk-3.0/gtk.css merely says that this file is not used because Adwaita is built into the system.
My suggestion would be start from scratch or a shell of a theme and create your own custom theme with everything you want, then use that one, and save it, up load it even so "they" can save it for you on there server somewhere, then you can always get to it.
 
Old 04-02-2018, 12:55 PM   #3
dwaltz
LQ Newbie
 
Registered: Mar 2018
Posts: 1

Rep: Reputation: Disabled
I have a similar problem with the gnome-terminal in ark with the Adwita theme.
Hence I got the deepin theme and there I enabled the stepper in
/usr/share/themes/deepin/gtk-2.0/main.rc setting

GtkScrollbar::has-backward-stepper = 1
GtkScrollbar::has-forward-stepper = 1

and
/usr/share/themes/deepin/gtk-3.0/gtk.css


-GtkScrollbar-has-backward-stepper: true;
-GtkScrollbar-has-forward-stepper: true;
 
Old 04-04-2018, 02:06 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
dwaltz, thanks for posting but you're offering a GTK2 solution for a GTK3 problem.
sorry to say, but it is useless in this context.
also the question is somewhat outdated, i doubt it is still valid with all the changes gnome/gtk3 went through in the past 2 years.
 
  


Reply

Tags
gtk3, libreoffice, scrollbar, theme


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Customize GTK3 / GTK2 Theme Colors Using `GTK Theme Preferences` LXer Syndicated Linux News 0 09-08-2012 02:00 PM
LXer: Atolm GTK Theme + Clarity Icon Theme = Perfect for Dark Theme Fans LXer Syndicated Linux News 0 02-26-2011 11:50 PM
LXer: Atolm - Impressive New Theme by the Artists Behind Orta GTK Theme LXer Syndicated Linux News 1 12-30-2010 02:17 PM
LXer: Equinox GTK Theme + Faenza Icon Theme = Pure Awesomeness! LXer Syndicated Linux News 0 08-11-2010 02:41 AM
Scrollbar in Gtk+ 2.0 hpcpg Programming 0 03-29-2004 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration