Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-12-12 02:10:22

infinite
Member
Registered: 2015-11-03
Posts: 91

[Solved] How to change Scrollbar color & Scrollbar background color

Hello ,

I want to change the Scrollbar color in a first time and then , the Scrollbar background color .

I think it's concern just gtk theme in Menu>Parameters>appearance .
I'm saying that because there is no file who contains parameters for the Scrollbar in xfwm4's folder .

Any ideas ?

Offline

#2 2015-12-12 15:00:15

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

Re: [Solved] How to change Scrollbar color & Scrollbar background color

Yes. the scrollbar is an element of the Appearance (GTK) theme. You won't find anything in the xfwm4 configuration files to control it. A sample snippet like this in your gtk configuration files will change the colours.

#########################################################################
# Scrollbar colours
style "my-scrollbar"
{
  bg[NORMAL] = "#FF0000"        # scrollbar
  bg[PRELIGHT] = "#00FF00"      # hover
  bg[ACTIVE] = "#0000FF"        # trough colour (can be over-ridden by theme engine configs)
}
widget_class "*Scrollbar" style "my-scrollbar"

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 ---

Offline

#3 2015-12-12 16:24:06

infinite
Member
Registered: 2015-11-03
Posts: 91

Re: [Solved] How to change Scrollbar color & Scrollbar background color

@ToZ's colors = Wow , that's gaudy tongue

Thanks , it works . A few questions =

This snippet ( and the file ) look like a script .
What kind of script language ?

Is there a Manual or something who explain where colors like Srollbar comes from when it's not specified in the gtkrc file ??

Where can i learn about all those xfce configurations ?

Last edited by infinite (2015-12-12 16:24:49)

Offline

#4 2015-12-12 18:48:25

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

Re: [Solved] How to change Scrollbar color & Scrollbar background color

infinite wrote:

@ToZ's colors = Wow , that's gaudy tongue

Nothing like red, green and blue to make the scrollbar noticeable.

This snippet ( and the file ) look like a script .
What kind of script language ?

Its not a script, it just gtk configuration settings. Look at other gtkrc files in /usr/share/theme/THEME/gtk-2.0/gtkrc to see similar types of settings. You'll might also want to look at the files in /usr/share/theme/THEME/gtk-2.0 for GTK3 configuration settings - these are in CSS format and will affect any applications that are built on the gtk3 framework.

Is there a Manual or something who explain where colors like Srollbar comes from when it's not specified in the gtkrc file ??

I've never come across a definitive "here is how you do it". Here are some links to get you started:
GTK2:
- https://wiki.gnome.org/Attic/GnomeArt/T … /GtkThemes
- https://en.wikibooks.org/wiki/GTK%2B_By_Example/Theming
- http://www.orford.org/gtk/
GTK3
- https://developer.gnome.org/gtk3/stable/theming.html
- http://worldofgnome.org/making-gtk3-the … -1-basics/
Using a theme engine
- https://wiki.xfce.org/howto/gtk_theme

Where can i learn about all those xfce configurations ?

They're not really Xfce configurations, they are GTK configurations. Applications can be created using a variety of toolkits (GTK2, GTK3, QT) and each of these toolkits have their own way of being themed.


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 ---

Offline

#5 2015-12-12 21:43:40

infinite
Member
Registered: 2015-11-03
Posts: 91

Re: [Solved] How to change Scrollbar color & Scrollbar background color

ToZ wrote:

You'll might also want to look at the files in /usr/share/theme/THEME/gtk-2.0 for GTK3 configuration settings - these are in CSS format and will affect any applications that are built on the gtk3 framework.

I have no idea of how to verify which version of gtk , themes use .

I'm going to check it....

ToZ wrote:

Where can i learn about all those xfce configurations ?

They're not really Xfce configurations, they are GTK configurations. Applications can be created using a variety of toolkits (GTK2, GTK3, QT) and each of these toolkits have their own way of being themed.

Ok , but at the end , is it possible to have a Window config' with = Xfwm4+GTK+QT or Xfwm4+QT ?

Offline

#6 2015-12-12 22:58:30

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

Re: [Solved] How to change Scrollbar color & Scrollbar background color

infinite wrote:

Ok , but at the end , is it possible to have a Window config' with = Xfwm4+GTK+QT or Xfwm4+QT ?

Its possible, but it requires some work. See, for example, https://wiki.archlinux.org/index.php/Un … plications.


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 ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 545.72 KiB (Peak: 546.56 KiB) ]