
gtkrc-2.0 Panel Colour Changer
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
I pieced this together. You may want to help me to sort it & use it/ improve it.
Code:
Hi
I pieced this code together and need help sorting it. I am trying to make this so any future user can just come along & alter the settings w/o the need to add more strings of code.
The idea here is to add this to a place where users can just install it and be up & running w/o the hassle.
Later, Id like to piggy back it on the current {Panel GUI already in existance & alter the .png that is currently there now.
Anyway here it is:
# this file should be placed in your home folder
# and name ".gtkrc-2.0"`TT
# This file was written by kde & compiled by Steve Williams
# You can edit it in the kde control center, under "gtk styles and Fonts"
include "/usr/share/themes/Clearlooks/gtk-2.0/gtkrc"
style "user-font"
widget_class "*" style "user-font"
gtk-theme-name="Clearlooks"
gtk-font-name="DejaVu Sans 9"
# this is the new part added by bgryderclock
style "xfdesktop-icon-view" [
XfdesktopIconView::label-alpha = 75
base[normal] = "#000000"
base[selected] = "#000000"
base[active] = "#000000"
#---------------------------------------------------------------
# Section "icon background colors"
#---------------------------------------------------------------
# The following two lines *should* be left uncommented
# if we want the xfce desktop icon backgrounds to use
# alpha blending (e.g. invisible or some % thereof)
style "xfdesktop-icon-view" [
XfdesktopIconView::label-alpha = 0
#---------------------------------------------------------------
# Section "icon font colors"
#---------------------------------------------------------------
# The next three lines deal with the color of the desktop icon's
# text. You can comment them out if you want you use gtk theme
# colors. Below yields white un-selected normal, green selected,
# and blue when going to another window
#
# I chose three different colors so that you can see the level
# of customization we can do.
fg[normal] = "#ffffff" #this is white
fg[selected] = "#00ff00" # this is green
fg[active] = "#0000ff" # this is blue
## my blue fonts to use with nuvola theme & royal blue WM
# environment. a soft shark underbelly blue color if you will.
#fg[normal] = "#528AC6"
#fg[selected] = "#528AC6"
#fg[active] = "#528AC6"
]
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
#---------------------------------------------------------------
# Section "xfce panel colors"
#---------------------------------------------------------------
# Use these to change the panel color. Note this should
# be commented out entirely if you decide to use
# Section "xfce panel background" below.
#style "panel"
#[
#this one here is grey
#bg[normal] = "#909599"
# use this with nuvola theme
#bg[normal] = "#64AEE0"
#xthickness = 0
#ythickness = 0
#]
#
#widget_class "*Panel*" style "panel"
#widget "*Panel*" style "panel"
#class "*Panel*" style "panel"
#---------------------------------------------------------------
# Section "xfce panel background"
#---------------------------------------------------------------
style "panel"
[
bg_pixmap[normal] = "Panel/panel-bg.png"
]
# note I simply have a folder in my home called "Panel"
# with the file "panel-bg.png" in it. not sure if you
# can hard code that to somewhere else.
widget_class "*Panel*" style "panel"
widget "*Panel*" style "panel"
class "*Panel*" style "panel"
widget_class "*List*" style "colored"
class "*List*" style "colored"
widget_class "*Text*" style "colored"
class "*Text*" style "colored"
widget_class "*Entry*" style "colored"
class "*Entry*" style "colored"
#---------------------------------------------------------------
# Section "xfce icon fallback theme"
#---------------------------------------------------------------
#
# this is our fallback icon theme in case we launch
# thunar in kde or xfce can't find an icon for your theme
# for some icon for some reason.
# a safe default is "Rodent" as it comes with Slackware 12's xfce
gtk-icon-theme-name = "Etiquette Xfce"
normalfg[normal] = "#ffffff"
fg[selected] = "#ffffff"
fg[active] = "#ffffff"
]
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
Also, should this file be called /home/Steve/Desktop/gtkrc-2.0 or should it be /home/steve/gtkrc-2.0 ?
What would happen if I added this to /ect/gtrc-2.0 { A file I created} ??
UPDATE: /filesystem/gtkrc-2.0 is good. overwriting /etc/gtkrc thats already existing is even better. { I learn as I go}
04nov09 still need a hand on this.
Please advise.
the98
10 years ago
First I would like to know if there is a way to change the icon label's text alignment, because the alignment set by default is "left", and I would like it to be center.
The other question is if there is a way to change the name of the icon, for example, instead of "Home", "My Home" or something like that.
If anyone knows, please let me know.
Cheers,
Report
SteveWilliams
11 years ago
Report
Chrispy
12 years ago
$HOME/.gtkrc-2.0
or:
/etc/gtk-2.0/gtkrc
Report
SteveWilliams
12 years ago
The point of me posting this is to as for discussion on what I might be missing, might think about adding or what I might think about rearranging for better results & so on.
Syntax errors / Missing strings ? any sort of improvements I could try. You get the idea.
Suggestions would be fabulous indeed !
Steve
Report
SteveWilliams
12 years ago
The point of me posting this is to as for discussion on what I might be missing, might think about adding or what I might think about rearranging for better results & so on.
Syntax errors / Missing strings ? any sort of improvements I could try. You get the idea.
Suggestions would be fabulous indeed !
Steve
Report
fredbird67
12 years ago
Report
SteveWilliams
12 years ago
Basically this is in mostly finished condition. Again I am asking for some help sorting it.
The bar with the clock in it {In my case XFCE4 Panel} will now be able to be changed to what ever colour you wish. {No gradients yet} & theoretically you could either make it transparent or add a backdrop to it. I'm still working on that though.
The idea is for someone to not need to make any major alterations to it to make it work. Simply just change the colours and of course File> Save.
The idea of this is to ask for some help. This is still a work in progress.
I am open to ideas....
Steve
Report