Page 7 of 15 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 143

Thread: A Beginner "How To" for gtkrc themes.

  1. #61
    Join Date
    Jan 2006
    Beans
    1,352

    Re: A Beginner "How To" for gtkrc themes.

    Worked for me.



    This is before:





    This is after:




    This was my style default for my before picture:

    Code:
    gtk-can-change-accels             = 1
    gtk-menu-drop-shadow              = 1
    gtk-menu-shadow-delay             = 100
    
    style "default"
    {
        GtkButton::default_border         = {0, 0, 0, 0}
        GtkButton::default_outside_border = {0, 0, 0, 0}
        GtkButton::default_spacing        = 0
        GtkButton::focus-line-width       = 0
        GtkButton::focus-padding          = 2
        GtkCheckButton::indicator_size    = 10
        GtkMenuBar::shadow_type           = out
        GtkMenuItem::selected_shadow_type = out
        GtkPaned::handle_full_size        = 0
        GtkPaned::handle_size             = 24
        GtkRadioButton::indicator_size    = 10
        GtkRange::slider_width            = 15
        GtkRange::stepper_size            = 15
        GtkRange::stepper_spacing         = 0
        GtkRange::trough_border           = 0
        GtkScrollbar::min_slider_length   = 34
        GtkToolbar::shadow_type           = out
        GtkWidget::focus-line-width       = 0
        GtkWidget::focus_padding          = 2
        GtkWidget::interior_focus         = 5
        GtkWidget::internal_padding       = 0
    
        xthickness = 0
        ythickness = 0
    
        fg[NORMAL]        = "#000000"
        fg[ACTIVE]        = "#000000"
        fg[PRELIGHT]      = "#000000"
        fg[SELECTED]      = "#000000"
        fg[INSENSITIVE]   = "#4b4440"
    
        bg[NORMAL]        = "#F0F2E7"
        bg[ACTIVE]        = "#8697AB"
        bg[PRELIGHT]      = "#8697AB"
        bg[SELECTED]      = "#6F6F73"
        bg[INSENSITIVE]   = "#F0F2E7"
    
        text[NORMAL]      = "#000000"
        text[ACTIVE]      = "#FFFFFF"
        text[PRELIGHT]    = "#000000"
        text[SELECTED]    = "#000000"
        text[INSENSITIVE] = "#4b4440"
    
        base[NORMAL]      = "#8697AB"
        base[ACTIVE]      = "#8697AB"
        base[PRELIGHT]    = "#6F6F73"
        base[SELECTED]    = "#6F6F73"
        base[INSENSITIVE] = "#F0F2E7"
    
        engine "xfce"
        {
            grip_style = slide
            smooth_edge = true
    	boxfill
            {
                fill_style = gradient
                orientation = vertical
                shade_start = 0.89 
                shade_end = 1.00
            }
        }
    }
     
    widget_class "*" style "default"
    
    style "colored" = "default"
    {
        xthickness = 2
        ythickness = 2
    
        bg[ACTIVE]        = "#B9C09C"
        bg[PRELIGHT]      = "#6F6F73"
    
        fg[ACTIVE]        = "#000000"
        fg[PRELIGHT]      = "#000000"
    
        text[ACTIVE]      = "#FFFFFF"
        text[PRELIGHT]    = "#000000"
    
        engine "xfce" 
        {
            smooth_edge = true
            grip_style = slide
            boxfill
            {
                fill_style = gradient
                orientation = vertical
                shade_start = 1.24
                shade_end = 0.83
            }
        }
    }
    
    widget_class "*Entry*"             style "colored"
    class "*Entry*"                    style "colored"
    widget_class "*Text*"              style "colored"
    class "*Text*"                     style "colored"
    widget_class "*List*"              style "colored"
    class "*List*"                     style "colored"

    This was my style default after changing only one line of code:

    Code:
    # xfce-milk, gradients, and rounded buttons.
    #
    
    
    gtk-can-change-accels             = 1
    gtk-menu-drop-shadow              = 1
    gtk-menu-shadow-delay             = 100
    
    style "default"
    {
        GtkButton::default_border         = {0, 0, 0, 0}
        GtkButton::default_outside_border = {0, 0, 0, 0}
        GtkButton::default_spacing        = 0
        GtkButton::focus-line-width       = 0
        GtkButton::focus-padding          = 0
        GtkCheckButton::indicator_size    = 10
        GtkMenuBar::shadow_type           = out
        GtkMenuItem::selected_shadow_type = out
        GtkPaned::handle_full_size        = 0
        GtkPaned::handle_size             = 24
        GtkRadioButton::indicator_size    = 10
        GtkRange::slider_width            = 15
        GtkRange::stepper_size            = 15
        GtkRange::stepper_spacing         = 0
        GtkRange::trough_border           = 0
        GtkScrollbar::min_slider_length   = 34
        GtkToolbar::shadow_type           = out
        GtkWidget::focus-line-width       = 0
        GtkWidget::focus_padding          = 2
        GtkWidget::interior_focus         = 5
        GtkWidget::internal_padding       = 0
    
        xthickness = 0
        ythickness = 0
    
        fg[NORMAL]        = "#000000"
        fg[ACTIVE]        = "#000000"
        fg[PRELIGHT]      = "#000000"
        fg[SELECTED]      = "#000000"
        fg[INSENSITIVE]   = "#4b4440"
    
        bg[NORMAL]        = "#F0F2E7"
        bg[ACTIVE]        = "#8697AB"
        bg[PRELIGHT]      = "#8697AB"
        bg[SELECTED]      = "#6F6F73"
        bg[INSENSITIVE]   = "#F0F2E7"
    
        text[NORMAL]      = "#000000"
        text[ACTIVE]      = "#FFFFFF"
        text[PRELIGHT]    = "#000000"
        text[SELECTED]    = "#000000"
        text[INSENSITIVE] = "#4b4440"
    
        base[NORMAL]      = "#8697AB"
        base[ACTIVE]      = "#8697AB"
        base[PRELIGHT]    = "#6F6F73"
        base[SELECTED]    = "#6F6F73"
        base[INSENSITIVE] = "#F0F2E7"
    
        engine "xfce"
        {
            grip_style = slide
            smooth_edge = true
    	boxfill
            {
                fill_style = gradient
                orientation = vertical
                shade_start = 0.89 
                shade_end = 1.00
            }
        }
    }
     
    widget_class "*" style "default"
    
    style "colored" = "default"
    {
        xthickness = 2
        ythickness = 2
    
        bg[ACTIVE]        = "#B9C09C"
        bg[PRELIGHT]      = "#6F6F73"
    
        fg[ACTIVE]        = "#000000"
        fg[PRELIGHT]      = "#000000"
    
        text[ACTIVE]      = "#FFFFFF"
        text[PRELIGHT]    = "#000000"
    
        engine "xfce" 
        {
            smooth_edge = true
            grip_style = slide
            boxfill
            {
                fill_style = gradient
                orientation = vertical
                shade_start = 1.24
                shade_end = 0.83
            }
        }
    }
    
    widget_class "*Entry*"             style "colored"
    class "*Entry*"                    style "colored"
    widget_class "*Text*"              style "colored"
    class "*Text*"                     style "colored"
    widget_class "*List*"              style "colored"
    class "*List*"                     style "colored"


    ...I think it worked for me because the GtkCombo used the style setting from my default "GtkButton::focus-padding = 0", and applied it to the button part of the xfce default GtkCombo .

    I could be wrong.


    I also changed my panel to match my new theme:

    Last edited by crimesaucer; July 8th, 2007 at 01:19 AM.

  2. #62
    Join Date
    Oct 2004
    Beans
    956
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: A Beginner "How To" for gtkrc themes.

    Yes, that's why. You don't have separate button and combo styles.

  3. #63
    Join Date
    Jan 2006
    Beans
    1,352

    Re: A Beginner "How To" for gtkrc themes.

    Well I have a seperate button style, just not the Combo so it's default.

    this is the complete gtkrc for my last theme called milkyblue2, if you feel like checking it out on your computer have fun with it:

    Code:
    # xfce-milk, gradients, and rounded buttons.
    #
    
    
    gtk-can-change-accels             = 1
    gtk-menu-drop-shadow              = 1
    gtk-menu-shadow-delay             = 100
    
    style "default"
    {
        GtkButton::default_border         = {0, 0, 0, 0}
        GtkButton::default_outside_border = {0, 0, 0, 0}
        GtkButton::default_spacing        = 0
        GtkButton::focus-line-width       = 0
        GtkButton::focus-padding          = 0
        GtkCheckButton::indicator_size    = 10
        GtkMenuBar::shadow_type           = out
        GtkMenuItem::selected_shadow_type = out
        GtkPaned::handle_full_size        = 0
        GtkPaned::handle_size             = 24
        GtkRadioButton::indicator_size    = 10
        GtkRange::slider_width            = 15
        GtkRange::stepper_size            = 15
        GtkRange::stepper_spacing         = 0
        GtkRange::trough_border           = 0
        GtkScrollbar::min_slider_length   = 34
        GtkToolbar::shadow_type           = out
        GtkWidget::focus-line-width       = 0
        GtkWidget::focus_padding          = 2
        GtkWidget::interior_focus         = 5
        GtkWidget::internal_padding       = 0
    
        xthickness = 0
        ythickness = 0
    
        fg[NORMAL]        = "#000000"
        fg[ACTIVE]        = "#000000"
        fg[PRELIGHT]      = "#000000"
        fg[SELECTED]      = "#000000"
        fg[INSENSITIVE]   = "#4b4440"
    
        bg[NORMAL]        = "#F0F2E7"
        bg[ACTIVE]        = "#8697AB"
        bg[PRELIGHT]      = "#8697AB"
        bg[SELECTED]      = "#6F6F73"
        bg[INSENSITIVE]   = "#F0F2E7"
    
        text[NORMAL]      = "#000000"
        text[ACTIVE]      = "#FFFFFF"
        text[PRELIGHT]    = "#000000"
        text[SELECTED]    = "#000000"
        text[INSENSITIVE] = "#4b4440"
    
        base[NORMAL]      = "#8697AB"
        base[ACTIVE]      = "#8697AB"
        base[PRELIGHT]    = "#6F6F73"
        base[SELECTED]    = "#6F6F73"
        base[INSENSITIVE] = "#F0F2E7"
    
        engine "xfce"
        {
            grip_style = slide
            smooth_edge = true
    	boxfill
            {
                fill_style = gradient
                orientation = vertical
                shade_start = 0.89 
                shade_end = 1.00
            }
        }
    }
     
    widget_class "*" style "default"
    
    style "colored" = "default"
    {
        xthickness = 2
        ythickness = 2
    
        bg[ACTIVE]        = "#B9C09C"
        bg[PRELIGHT]      = "#6F6F73"
    
        fg[ACTIVE]        = "#000000"
        fg[PRELIGHT]      = "#000000"
    
        text[ACTIVE]      = "#FFFFFF"
        text[PRELIGHT]    = "#000000"
    
        engine "xfce" 
        {
            smooth_edge = true
            grip_style = slide
            boxfill
            {
                fill_style = gradient
                orientation = vertical
                shade_start = 1.24
                shade_end = 0.83
            }
        }
    }
    
    widget_class "*Entry*"             style "colored"
    class "*Entry*"                    style "colored"
    widget_class "*Text*"              style "colored"
    class "*Text*"                     style "colored"
    widget_class "*List*"              style "colored"
    class "*List*"                     style "colored"
    
    style "menubar" = "colored"
    {
        xthickness = 0
        ythickness = 0
    
        engine "xfce" 
        {
            smooth_edge = true
            grip_style = slide
            boxfill
            {
                
                fill_style = gradient
                orientation = vertical
                shade_start = 0.79
                shade_end = 0.89
            }
        }
    }
    
    widget_class "*BonoboDockItem"     style "menubar"
    class "*BonoboDockItem"            style "menubar"
    widget_class "*HandleBox"          style "menubar"
    class "*HandleBox"                 style "menubar"
    widget_class "*ToolBar"            style "menubar"
    class "*ToolBar"                   style "menubar"
    widget_class "*MenuBar"            style "menubar"
    class "*MenuBar"                   style "menubar"
    
    style "menuitem" = "colored"
    {
        xthickness = 2
        ythickness = 2
    
        engine "xfce" 
        {
            smooth_edge = true
            grip_style = slide
            boxfill
            {
                fill_style = gradient
                orientation = vertical
                shade_start = 1.73
                shade_end = 0.93
            }
        }
    }
    
    widget_class "*MenuItem*"          style "menuitem"
    class "*MenuItem*"                 style "menuitem"
    
    style "scrollbar" = "default"
    {
        xthickness = 1
        ythickness = 1
        engine "xfce" 
        {
            smooth_edge = true
            grip_style = slide
            boxfill
            {
                fill_style = gradient
                orientation = auto
                shade_start = 1.73
                shade_end = 0.60
            }
        }
    }
    
    widget_class "*Scrollbar*"         style "scrollbar"
    class "*Scrollbar*"                style "scrollbar"
    widget_class "*GtkProgress*"       style "scrollbar" 
    class "*GtkProgress*"              style "scrollbar" 
    
    style "button" = "colored"
    {
        xthickness = 2
        ythickness = 2
    
        engine "xfce" 
        {
            smooth_edge = true
            grip_style = slide
            boxfill
            {
                fill_style = gradient
                orientation = vertical
                shade_start = 1.92
                shade_end = 0.82
            }
        }
    }
    
    widget_class "*Button*"            style "button" 
    class "*Button*"                   style "button" 
    widget_class "*button*"            style "button" 
    class "*button*"                   style "button" 
    widget_class "*Togglebutton*"      style "button" 
    class "*Togglebutton*"             style "button" 
    widget_class "*togglebutton*"      style "button" 
    class "*togglebutton*"             style "button" 
    widget_class "*OptionMenu*"        style "button" 
    class "*OptionMenu*"               style "button" 
    widget_class "*Tree*"              style "button" 
    class "*Tree*"                     style "button" 
    widget_class "*GtkScale*"          style "button" 
    class "*GtkScale*"                 style "button" 
    
    widget_class "*CheckButton*"       style "default"
    class "*CheckButton*"              style "default"
    widget_class "*RadioButton*"       style "default"
    class "*RadioButton*"              style "default"
    
    # This is for the window borders (xfwm4 & metacity)
    # 
    style "titlebar" = "default"
    {
        bg[SELECTED]      = "#8697AB"
        fg[SELECTED]      = "#F0F2E7"
        bg[INSENSITIVE]   = "#6F6F73"
        fg[INSENSITIVE]   = "#8697AB"
    }
    
    widget "xfwm"                      style "titlebar" 
    class "MetaFrames"                 style "titlebar" 
    widget_class "MetaFrames"          style "titlebar"
    My current theme uses the shadows. out, out and etched-in, and few other modifications. I've also changed my grip style to none so that it looks smoother.
    Last edited by crimesaucer; July 8th, 2007 at 02:37 AM.

  4. #64
    Join Date
    Jan 2006
    Beans
    1,352

  5. #65
    Join Date
    Oct 2004
    Beans
    956
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: A Beginner "How To" for gtkrc themes.

    Quote Originally Posted by crimesaucer View Post
    Well I have a seperate button style, just not the Combo so it's default.
    I would have to check but the button should be higher than the combo in hierarchy, so the combo should by default inherit button properties unless a separate combo style is specified. Maybe that doesn't apply to arrows? But I see now, you didn't post your entire gtkrc. I was using the other users gtkrc to fix the problem anyway. Your desktop looks good!

  6. #66
    Join Date
    Jan 2006
    Beans
    1,352

    Re: A Beginner "How To" for gtkrc themes.

    Thank you, I'm still learning. I also need to start learning how to theme for some other engines besides xfce.

  7. #67
    Join Date
    Apr 2007
    Location
    127.0.0.1
    Beans
    25
    Distro
    Xubuntu 7.04 Feisty Fawn

    Re: A Beginner "How To" for gtkrc themes.

    Still no luck on the clock <_< (been a while; I've been busy)

    I even went so far as to create a new style called "clock" with every colour as white and applied it it to widget_class and class "*clock*", to no avail. Does no one know how to change the colour of the panel clock in Xfce? freenode/xfce apparently doesn't :x
    "Following our will and wind, we may just go where no one's been! We'll ride the spiral to the end and may just go where no one's been! Spiral out! Keep going!"

    -Maynard James Keenan

  8. #68
    Join Date
    Mar 2007
    Location
    $HOME (Washington State)
    Beans
    4,590

    Re: A Beginner "How To" for gtkrc themes.

    I wish I had come accross this when I stated editing my gtkrc theme. Would have saved me time. Oh well, I still like what I did.
    See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
    I'm no longer on here. If you want to talk to me, go to noost.org.
    My DeviantArt | Linux user #461096 | Ubuntu user #15753

  9. #69
    Join Date
    Jan 2006
    Beans
    1,352

    Re: A Beginner "How To" for gtkrc themes.

    Quote Originally Posted by ceil420 View Post
    Still no luck on the clock <_< (been a while; I've been busy)

    I even went so far as to create a new style called "clock" with every colour as white and applied it it to widget_class and class "*clock*", to no avail. Does no one know how to change the colour of the panel clock in Xfce? freenode/xfce apparently doesn't
    Try uninstalling the xfce4 panel "Clock", and then in that same xfce4 panel plug-in list, add the "Orage Clock"...which you can change the colors of in right click properties...plus there are better settings and a Calendar.


    I use the Orage Clock and as you can see in my screenshots, the colors always match....plus, it uses the gtkrc-2.0 file for bg_pixmap[NORMAL] images.

  10. #70
    Join Date
    Jan 2006
    Beans
    1,352

    Re: A Beginner "How To" for gtkrc themes.

    Quote Originally Posted by smartboyathome View Post
    I wish I had come accross this when I stated editing my gtkrc theme. Would have saved me time. Oh well, I still like what I did.

    Feel free to add anything you have learned.

    I haven't really been adding any new info lately, because I finally made a theme that I feel like staying with....maybe in a month or two I'll try some new theme changes and post the results.

Page 7 of 15 FirstFirst ... 56789 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •