You are not logged in.

#1 2015-10-26 16:53:56

ubone
Member
Registered: 2014-08-31
Posts: 42

Raleigh theme edit

A minor customization of gtk2's default theme Raleigh. Suggestions are welcome.

# initial edit
# can be added to ~/.gtkrc-2.0 but will affect any active theme
# ~/.themes/theme-name/gtk-2.0/gtkrc is preferable

style "default"
{
	bg[NORMAL]	= "#f0f0f0"
	bg[PRELIGHT]	= "#fff"
	bg[SELECTED]	= "#6699ff"
	bg[INSENSITIVE]	= "#ccc"
	bg[ACTIVE]	= "#ccc"

	fg[NORMAL]	= "#000"
	fg[PRELIGHT]	= "#000"
	fg[SELECTED]	= "#000"
	fg[INSENSITIVE]	= "#999"
	fg[ACTIVE]	= "#000"

	base[NORMAL]	= "#fff"
	base[PRELIGHT]	= "#fff"
	base[SELECTED]	= "#6699ff"
	base[INSENSITIVE]	= "#fff"
	base[ACTIVE]	= "#ccc"

	text[NORMAL]	= "#000"
	text[PRELIGHT]	= "#000"
	text[SELECTED]	= "#fff"
	text[INSENSITIVE]	= "#000"
	text[ACTIVE]	= "#000"
}

style "txt"
{
	GtkTextView::cursor_color	= "#fff"

	base[NORMAL]	= "#ccc"
	#base[SELECTED]	= "#6699ff"

	#text[NORMAL]	= "#ffff00"
	#text[SELECTED]	= "#fff"
}

style "scrollbar"
{
	bg[NORMAL]	= "#ccc"
	#bg[PRELIGHT]	= "#6699ff"	# Clicked on colour 
	bg[ACTIVE]	= "#f0f0f0"
}

style "prgrs-bar"
{
	bg[NORMAL]	= "#ccc"
	bg[PRELIGHT]	= "#6699ff"

	fg[PRELIGHT]	= "#fff"
}

style "menu"
{
#	xthickness	= 0
#	ythickness	= 0

	bg[NORMAL]	= "#fff"
	bg[PRELIGHT]	= "#6699ff"
	#bg[SELECTED]	= "#fff"	# See https://bugs.freedesktop.org/show_bug.cgi?id=38038

	fg[PRELIGHT]	= "#fff"

	text[PRELIGHT]	= "#fff"
}

class "GtkWidget"		style "default"
class "GtkTextView"		style "txt"
class "GtkScrollbar"		style "scrollbar"
class "GtkProgressBar"		style "prgrs-bar"

widget_class	"*<GtkMenu>*"	style "menu"

updated, save to ~/.themes/Raleigh/gtk-2.0/gtkrc

style "default"
{
  xthickness = 1
  ythickness = 1

#  GtkScrollbar::has-backward-stepper = 0
#  GtkScrollbar::has-forward-stepper = 0
#  GtkScrollbar::slider-width = 10
}

style "scrollbar"
{
#  xthickness = 0
#  ythickness = 0

  bg[NORMAL]      = "#999999"
  bg[PRELIGHT]    = "#888888"
  bg[ACTIVE]      = "#cccccc"
}

style "menu"
{
  xthickness = 0 # to remove black left border
#  ythickness = 0 # to remove black top border (breaks menu)

  bg[NORMAL]      = "#fafafa"
}

class "GtkWidget"                      style "default"
class "GtkScrollbar"                   style "scrollbar"

widget_class   "*<GtkMenu>*"           style "menu"

and a dark variant

# useful for leafpad, can be started with GTK2_RC_FILES=$HOME/.this leafpad
# or Exec=env GTK2_RC_FILES=.this leafpad %f in leafpad.desktop

style "default"
{
  xthickness = 1
  ythickness = 1

#  GtkScrollbar::has-backward-stepper = 0
#  GtkScrollbar::has-forward-stepper = 0
#  GtkScrollbar::slider-width = 10

  base[NORMAL]  = "#333333"
  text[NORMAL]  = "#cccccc"
}

style "scrollbar"
{
#  xthickness = 0
#  ythickness = 0

  bg[NORMAL]      = "#999999"
  bg[PRELIGHT]    = "#888888"
  bg[ACTIVE]      = "#cccccc"
}

style "menu"
{
  xthickness = 0 # to remove black left border
#  ythickness = 0 # to remove black top border (breaks menu)

  bg[NORMAL]      = "#fafafa"
}

class "GtkWidget"                      style "default"
class "GtkScrollbar"                   style "scrollbar"

widget_class   "*<GtkMenu>*"           style "menu"

git.gnome.org/browse/gtk+/tree/gtk/theme/Raleigh/gtk-default.css or open raw
if someone wants to apply the changes to gtk3

Last edited by ubone (2018-04-22 05:02:29)

Offline

#2 2016-07-19 09:37:01

ubone
Member
Registered: 2014-08-31
Posts: 42

Re: Raleigh theme edit

Bumping for help.

Could this bg[NORMAL] border between text and scrollbar area be removed?

http://i.imgur.com/FWuswaG.png

Offline

#3 2016-07-20 22:27:52

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: Raleigh theme edit

ubone wrote:

Bumping for help.

Could this bg[NORMAL] border between text and scrollbar area be removed?

http://i.imgur.com/FWuswaG.png

is not possible resuce it to 1px? try see if removing or not make any difference,


Well, I suppose that this is somekind of signature, no?

Offline

Board footer

Powered by FluxBB