Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-03-29 08:01:15

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

GTK2 , Custom Scrollbar

Hi ,

Made some change to the Thinice theme ( Often edits )

Still , contrary to the doc , many things doesn't work as they suppose to :
https://wiki.gnome.org/Attic/GnomeArt/T … kScrollbar

  #GtkRange Style Properties
  GtkRange::slider_width = 25
  GtkRange::stepper_size = 40
  GtkRange::trough-side-details = TRUE #doesn't work
  GtkRange::trough-under-steppers = FALSE #doesn't work
#------------------------------------------------------

  #GtkScrollbar Style Properties
  GtkScrollbar::fixed-slider-length = TRUE #doesn't work
  GtkScrollbar::min_slider_length = 80 #doesn't work
  GtkScrollbar::has-secondary-forward-stepper = TRUE #doesn't work
  GtkScrollbar::has-secondary-backward-stepper = TRUE #doesn't work
#------------------------------------------------------------------

Entire file

style "default"
{
  GtkOptionMenu::indicator_spacing = { 3, 2, 1, 1 }
  GtkEntry::progress-border = { 1, 1, 1, 1 }

  #GtkRange Style Properties
  GtkRange::slider_width = 25
  GtkRange::stepper_size = 40
  GtkRange::trough-side-details = TRUE #doesn't work
  GtkRange::trough-under-steppers = FALSE #doesn't work
#------------------------------------------------------

  #GtkScrollbar Style Properties
  GtkScrollbar::fixed-slider-length = TRUE #doesn't work
  GtkScrollbar::min_slider_length = 80 #doesn't work
  GtkScrollbar::has-secondary-forward-stepper = TRUE #doesn't work
  GtkScrollbar::has-secondary-backward-stepper = TRUE #doesn't work
#------------------------------------------------------------------

  GtkCheckButton::indicator_size = 10
  GtkCheckMenuItem::indicator_size = 10
  GtkButton::default_border = { 0, 0, 0, 0 }


  fg[SELECTED]      = "#433C3C" #title window active_text_color 
  fg[INSENSITIVE]   = "#B63939" #title window inactive_text_color 

  fg[NORMAL]        = "#000000" #menu window button active & inactive text color
				#desktop label icon color
 				
  fg[ACTIVE]        = "#000000" #panel bouton active label color
				#menu bouton selected label color

  fg[PRELIGHT]      = "#000000" #panel menu bouton prelight label color
				#app menu bottons background color if none 

  bg[SELECTED]      = "#BF3876" #workspace plugin panel background color

  base[PRELIGHT]    = "#FF0000" #icon prelight color in menu parameters

  text[INSENSITIVE] = "#F971CF" #pink Where exactly can we see it ??
  base[INSENSITIVE] = "#FF0041" #pink Where exactly can we see it ??

  bg[NORMAL]        = "#DC5F47" #normal fg scrollbar color
				#window active & inactive title bg color 
				#border_color
				#menu window color

  bg[ACTIVE]        = "#BF3876" #background scrollbar color
				#panel menu bouton selected background color

  bg[PRELIGHT]      = "#FF0000" #prelight scrollbar color
				#panel menu bouton prelight background color
				

  bg[INSENSITIVE]   = "#DC5F47" #background bouton up-down srollbar color
				#background xfce4-panel preference boutons

  base[NORMAL]      = "#DC5F47" #major color&background color in entrys

  text[ACTIVE]      = "#000000" #text foreground prelight color ,appear first with whisker&appifinder #do @fg_color(active) 
  base[ACTIVE]      = "#BF3876" #text background prelight color #do @bg_color(active)

  text[NORMAL]      = "#FFFFFF"
  text[SELECTED]    = "#FFFFFF"  
  base[SELECTED]    = "#4A348E" #background text selected color 

  #text[PRELIGHT]    = "#00FF83" #prelight foreground on bouton select panel of xfce4-panel preference


  #font_name = "Sans 10"
  engine "thinice"
  {
    # Do you want the scrollbar handles rectangular or a bit shaped?
    rect_scrollbar = FALSE

    # The following variables are semi-generic, can be applied to
    # different widget classes etc..

    # Mark type 1 is used on scrollbar handles, handleboxes etc
    # Can be: NOTHING, SLASH, INVSLASH, DOT, INVDOT
    mark_type1 = SLASH

    # Mark type 2 is used on scrollbar buttons
    # Can be: NOTHING, SLASH, INVSLASH, DOT, INVDOT, ARROW
    mark_type2 = ARROW

    # How to draw paned stuff
    # Can be: NONE, SOME (currently 5), FULL
    paned_dots = SOME
  }
}

style "tooltips" {
  bg[NORMAL] = "#EEE1B3"
  fg[NORMAL] = "#000000"
}

style "progress-bar" {
  bg[PRELIGHT] = "#336699"
  fg[PRELIGHT] = "#FFFFFF"
  bg[NORMAL]   = "#C1C1CC"
}

style "menu-item" {
  #bg[PRELIGHT]   = "#000000" #xfce appmenu background color
  #fg[PRELIGHT]   = "#FFFFFF"
  base[PRELIGHT] = "#336699" #Where exactly can we see it ??
  text[PRELIGHT] = "#FFFFFF" #Where exactly can we see it ??
}

style "entry" {
  bg[SELECTED] = "#0034FF"
  fg[SELECTED] = "#000000"
}

class "GtkWidget" style "default"
widget "gtk-tooltip*" style "tooltips"
class "GtkProgressBar" style "progress-bar"
class "*MenuItem*" style "menu-item"
class "GtkEntry" style "entry"
widget_class "*MenuItem*" style "menu-item"
widget_class "*.GtkAccelMenuItem.*" style "menu-item"
widget_class "*.GtkRadioMenuItem.*" style "menu-item"
widget_class "*.GtkCheckMenuItem.*" style "menu-item"
widget_class "*.GtkImageMenuItem.*" style "menu-item"
widget_class "*.GtkSeparatorMenuItem.*" style "menu-item"
widget_class "*.GtkRadioMenuItem.*" style "menu-item"

Last edited by infinite (2016-03-30 14:01:13)

Offline

#2 2016-03-29 15:33:19

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: GTK2 , Custom Scrollbar

the settings can't work since TRUE need to be 1(false=0)

Offline

#3 2016-03-29 16:45:40

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

Re: GTK2 , Custom Scrollbar

Right , thanks ssf .
------------------------------------

What details are we supposed to see in :
  GtkRange::trough-side-details = 1

Contrary to the Doc , there is no space betwen steppers with :
  GtkRange::trough-under-steppers = 0

Obviously no change .
Some visual examples will be instructive ...

Last edited by infinite (2016-03-30 08:33:01)

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 534.58 KiB (Peak: 538.81 KiB) ]