Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Elementary theme and Ubuntu Maverick

  1. #11
    Join Date
    Mar 2007
    Beans
    Hidden!

    Re: Elementary theme and Ubuntu Maverick

    Budoc,

    Thanks for the tip on correcting the outdated elementary icons.

    Instead of removing elementary-icon-theme, I downloaded the version you suggested (http://danrabbit.deviantart.com/art/...Icons-65437279), and simply copied the extracted elementary folder on top of the existing /usr/share/icons/elementary folder. I also copied the elementary-mono-dark folder to /usr/share/icons/.

    This was definitely an improvement for the Indicator Applet Session drop-down.

    However, I noticed that when I selected the elementary dark icons, the Indicator Applet Session drop-down was still using the monochrome icons. It seems that this newer version of the icon set is also missing some icons or links.

    In case anyone else runs into this problem, I was able to resolve it by creating links to the correct "dark" icons.
    Code:
    $ sudo ln -s /usr/share/icons/elementary-mono-dark/panel/22/user-available.svg /usr/share/icons/elementary-mono-dark/panel/22/user-available-panel.svg
    
    $ sudo ln -s /usr/share/icons/elementary-mono-dark/panel/22/user-away.svg /usr/share/icons/elementary-mono-dark/panel/22/user-away-panel.svg
    
    $ sudo ln -s /usr/share/icons/elementary-mono-dark/panel/22/user-busy.svg /usr/share/icons/elementary-mono-dark/panel/22/user-busy-panel.svg
    
    $ sudo ln -s /usr/share/icons/elementary-mono-dark/panel/22/user-idle.svg /usr/share/icons/elementary-mono-dark/panel/22/user-idle-panel.svg
    
    $ sudo ln -s /usr/share/icons/elementary-mono-dark/panel/22/user-offline.svg /usr/share/icons/elementary-mono-dark/panel/22/user-offline-panel.svg
    Here is what it finally looks like...


    (There does not seem to be an elementary-mono-dark icon for the "user invisible" state).

  2. #12
    Join Date
    Aug 2009
    Beans
    20

    Smile Re: Elementary theme and Ubuntu Maverick

    Quote Originally Posted by PJSingh5000 View Post
    Finally, replace the entire scroll bar definition:
    Code:
    style "murrine-scrollbar"
    {
    	.
    	.
    	.
    }
    With:
    Code:
    style "murrine-scrollbar"
    {
    	
    	fg[PRELIGHT]				= @selected_fg_color
    	fg[SELECTED]				= @selected_fg_color
    	fg[ACTIVE]				= @fg_color
    	fg[INSENSITIVE]				= darker (@bg_color)
    
    	bg[SELECTED]				= shade (0.90, @selected_bg_color)
    
    	engine "murrine"
    	{
    		contrast			= 0.5
    		roundness			= 3
    		lightborderstyle		= 1
    	}
    }
    Why this? It works very well without this step. Or am I wrong?
    But thank You for this fix!!!

  3. #13
    Join Date
    Aug 2008
    Beans
    51

    Re: Elementary theme and Ubuntu Maverick

    Quote Originally Posted by PJSingh5000 View Post
    Budoc,

    I can certainly appreciate your dilemma. The Elementary theme is indeed quite nice. Dan Rabbit on Deviantart mentioned that the intention of the thin/small scroll bar and slider in Elementary is to provide a visual queue as to your position in a document, and so it was not intended to be used for navigation.

    Although I'm sure many users appreciate the simplicity of the scroll bar approach the talented folks at Elementary have taken, some of us actually do use the scroll bar. As one person on another forum pointed out, the scroll bar is very useful to grab and quickly slide to a section of a long document, without having to rotate your mouse's scroll wheel numerous times.

    In addition to the scroll bar being very small and thin, the scroll bar is completely missing in OpenOffice.org, while using the Elementary theme. (Dan stipulated that this is an OpenOfffice bug).

    Nevertheless, for those of us who want a more substantial scroll bar, we are free to modify our code to suit our needs-- which is the beauty of OpenSource!

    Here is what I did to remedy both situations...

    Edit the gtkrc file for the elementary theme.
    Code:
    $ gksudo gedit /usr/share/themes/elementary/gtk-2.0/gtkrc
    Replace:
    Code:
    GtkRange		::slider-width				= 8
    With:
    Code:
    GtkRange		::slider-width				= 10
    Replace:
    Code:
    GtkScrollbar		::has-backward-stepper 			= 0
    GtkScrollbar		::has-forward-stepper			= 0
    With:
    Code:
    GtkScrollbar		::has-backward-stepper 			= 1
    GtkScrollbar		::has-forward-stepper			= 1
    Replace:
    Code:
    GtkScrolledWindow	::scrollbars-within-bevel		= 1
    With:
    Code:
    GtkScrolledWindow	::scrollbars-within-bevel		= 0
    Finally, replace the entire scroll bar definition:
    Code:
    style "murrine-scrollbar"
    {
    	.
    	.
    	.
    }
    With:
    Code:
    style "murrine-scrollbar"
    {
    	
    	fg[PRELIGHT]				= @selected_fg_color
    	fg[SELECTED]				= @selected_fg_color
    	fg[ACTIVE]				= @fg_color
    	fg[INSENSITIVE]				= darker (@bg_color)
    
    	bg[SELECTED]				= shade (0.90, @selected_bg_color)
    
    	engine "murrine"
    	{
    		contrast			= 0.5
    		roundness			= 3
    		lightborderstyle		= 1
    	}
    }
    Save gtkrc and exit gedit. Now log out, and log back in. You should have usable scroll bars that match the Elementary color scheme and fit reasonably well with the theme's concept of minimalism and simplicity. Also OpenOffice.org documents will now have working scroll bars.

    I have attached a couple of screen shots so you can see the results.
    thanks very much

  4. #14
    Join Date
    Sep 2009
    Beans
    67

    Re: Elementary theme and Ubuntu Maverick

    Thank you santhust! Your suggestions solved this annoying problem that I have had since converting from ubuntu to pinguy. I just inserted your suggestions into whatever was in the gtkrc file, and the result is perfect!

  5. #15
    Join Date
    Mar 2007
    Beans
    Hidden!

    Re: Elementary theme and Ubuntu Maverick

    Since I had added the elementary PPA (http://ppa.launchpad.net/elementaryart/ppa/ubuntu) to my software sources, I just received an update to elementary which reverted the scroll bar fixes. In the new version of elementary, "GtkScrollbar::slider-width" replaces "GtkRange::slider-width".

    With this in mind, here are updates to my original post to "fix" the scroll bars. Optionally you can make your progress bars and scroll bars match the blue menu item selection style.

    OPEN OFFICE ELEMENTARY SCROLLBAR FIX

    Edit gtkrc...
    Code:
    $ gksudo gedit /usr/share/themes/elementary/gtk-2.0/gtkrc
    Replace the following values as shown. (The default elementary values are shown as commented out)...
    Code:
    GtkScrollbar		::has-backward-stepper              = 1  #0
    GtkScrollbar		::has-forward-stepper               = 1  #0
    GtkScrollbar		::slider-width                      = 10 #6
    MATCH SCROLL BAR WITH MENU ITEM SELECTION STYLE (OPTIONAL)

    Replace contents of "murrine-scrollbar" {...} with...
    Code:
    style "murrine-scrollbar"
    {
    	fg[PRELIGHT]     = @selected_fg_color
    	fg[SELECTED]     = @selected_fg_color
    	fg[ACTIVE]       = @fg_color
    	fg[INSENSITIVE]  = darker (@bg_color)
    
    	bg[SELECTED]     = shade (0.90, @selected_bg_color)
    
    	engine "murrine"
    	{
    		contrast          = 0.8
    		roundness         = 3
    		lightborderstyle  = 1
    	}
    }
    MATCH PROGRESS BAR WITH MENU ITEM SELECTION STYLE (OPTIONAL)

    Replace contents of "murrine-progressbar" {...} with...
    Code:
    style "murrine-progressbar" = "murrine-thin"
    {
    	fg[PRELIGHT]     = @selected_fg_color
    	fg[SELECTED]     = @selected_fg_color
    	fg[ACTIVE]       = @fg_color
    	fg[INSENSITIVE]  = darker (@bg_color)
    
    	bg[SELECTED]     = shade (0.90, @selected_bg_color)
    
    	engine "murrine"
    	{
    		contrast          = 0.8
    		roundness         = 3
    		lightborderstyle  = 1
    	}
    }

Page 2 of 2 FirstFirst 12

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
  •