Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 27 Aug 2014, 17:05
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Where are the shared icons located?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [56 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
eden6000

Joined: 08 Apr 2007
Posts: 259

PostPosted: Wed 03 Jun 2009, 08:51    Post subject:  Where are the shared icons located?  

Hi everybody,
originally I was looking for a way to customize rox's toolbar icons (home, up and so on...). Then I started searching, and discovered that those icons are a part of a shared stock, that also abiword, gnumeric, geany and others do use in their toolbar (ok, you already knew that, I didn't! Smile
The question is: where are located those icons?? I'm using Pizzapup, but have searched also in the latest 4.2 with non success...
thanks
eden6000
Back to top
View user's profile Send private message 
Oakems

Joined: 21 Mar 2009
Posts: 325

PostPosted: Wed 03 Jun 2009, 09:10    Post subject:  

Hi, there are quite a few places where icons are kept and I'm not familiar with Pizzapup, but if you use Pfind and search for icon it will give you a list of where all the icons are kept, then you can follow the path to the directory.

I know there are some icons in your root folder, the folder is called .icons and is hidden, so you'll have to Ctrl+h within ROX to reveal it. In there it has a symlink to ROX's icons, which for Puppy 4.2 are kept in /usr/local/apps/ROX-Filer/

Happy editing.
Back to top
View user's profile Send private message 
eden6000

Joined: 08 Apr 2007
Posts: 259

PostPosted: Wed 03 Jun 2009, 09:41    Post subject:  

Thanks Oakems for your kind reply...I already knew the locations you gave me, and I also already did a Pfind search for "gtk icons" or "gtk-stock", with no result.
Furthrtmore, in /usr/local/apps/ROX-Filer/Images there are some icons, those that are rox specific, like rox-select.png, or rox-show.details.png...but I'm missing the other ones, which should be the shared ones, like home, or up one level, or reload...
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 03 Jun 2009, 15:12    Post subject:  

Stock icons are part of your current Gtk icontheme.

In Puppy, this is usually /usr/share/icons/gnome or
/usr/share/icons/hicolor

There, they have different folders, for different sizes, like
/usr/share/icons/hicolor/24x24/stock
or
/usr/share/icons/hicolor/48x48/stock

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
eden6000

Joined: 08 Apr 2007
Posts: 259

PostPosted: Wed 03 Jun 2009, 15:29    Post subject:  

Thanks MU.
So, in my Pizzapup I have only /usr/share/icons/hicolor (no gnome); inside it there are 5 directories all with a /stock/media dirs. Each of these /media dirs contains the same six icons (in different sizes) that are related to xfburn (once I tried to install it....).
BTW I discovered that some dirs inside /usr/share/themes contain some icons that can be related to what I'm looking for...for example changing GTK theme sometimes the refresh icon in rox changes too....but NEVER changes the home icon for ex. (in rox's toolbar).
So I'm still wondering where rox reads those default icons....
Back to top
View user's profile Send private message 
Oakems

Joined: 21 Mar 2009
Posts: 325

PostPosted: Wed 03 Jun 2009, 15:43    Post subject:  

You miss understood me slightly, I meant search for just "icon" because all icons will have a parent directory named icons. So Pfind will show you every location there is that has icons, its just a case of being methodical and working through the list, admittedly not a very fast way, but it works well and if its all you got.
Back to top
View user's profile Send private message 
eden6000

Joined: 08 Apr 2007
Posts: 259

PostPosted: Thu 04 Jun 2009, 02:42    Post subject:  

Yes Oakems, I did the search you suggested, but, believe me, I haven't found what I'm looking for....one above all: the "home" icon in rox' toolbar, I've searched with "icon", "stock", "home", with no result...
Apart from this I have also discovered that it's also very important the "gtkrc" file inside the gtk themes directory, so it's not just a matter of where the icons are, but also the way you tell programs to show them.
still searching......
Smile
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Thu 04 Jun 2009, 03:40    Post subject:  

I believe these icons can be located in /usr/share/themes{theme name}/gtk2.0/icons directory (if one exists) and can be changed from theme to theme. They are called from the /usr/share/themes/{theme name}/index.theme file, so you would need to make an entry in there to point to the location of the icons you wanted to use for each theme.

Some of the default ROX icons live in /usr/local/apps/ROX-Filer/images directory. You'll need to right-click on the ROX-Filer icon in /usr/local/apps directory and choose "Look inside" to find that sub-directory. These icons can be individually replaced if you are so inclined.

Hope that helps

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
eden6000

Joined: 08 Apr 2007
Posts: 259

PostPosted: Thu 04 Jun 2009, 04:00    Post subject:  

Thanks WhoDo, any help is always appreciable. I already have searched into those directories, but there isn't what I'm searching...For ex. I'm using a theme called Smooth-Okaysh; inside the gtk2.0 directory there is no icon, only a gtkrc file, I post the content:

Code:

# Theme Name  : Smooth-Okayish
# Author(s)   : Andrew Johnson <ajgenius@ajgenius.us>
# Description : A simple Smooth variant of Tigert's
#       Pretty-Okayish
#

style "default" {
   ######  GTK Style Flags  ######
   GtkWidget::interior_focus = 1
   GtkWidget::focus-line-pattern = "\2\1\2\1"
   GtkWidget::focus_padding = 1

   GtkButton::default_spacing = 8
   GtkButton::default_border = {0, 0, 0, 0}
   GtkButton::default_outside_border = {0, 0, 0, 0}
   
   GtkCheckButton::indicator_size = 13
   GtkRadioButton::indicator_size = 12

   GtkPaned::handle_size = 8

   GtkRange::trough_border = 2
   GtkRange::slider_width = 13
   GtkRange::stepper_size = 13
   GtkRange::stepper_spacing = 0

   GtkScrollbar::min_slider_length = 30

   GtkMenuBar::internal-padding = 0
   ###### GTK Style Colours ######
   fg[ACTIVE]      = "#000000"
   fg[SELECTED]      = "#FFFFFF"
   fg[NORMAL]      = "#000000"
   fg[PRELIGHT]      = "#FFFFFF"
   fg[INSENSITIVE]      = "#999989"

   bg[ACTIVE]      = "#DDDDCF"
   bg[SELECTED]      = "#928DA2"
   bg[NORMAL]      = "#EEEEE0"
   bg[PRELIGHT]      = "#928DA2"
   bg[INSENSITIVE]      = "#EEEEE0"

   base[ACTIVE]      = "#D3C996"
   base[SELECTED]      = "#928DA2"
   base[NORMAL]      = "#FFFFFF"
   base[PRELIGHT]      = "#E5E5F7"
   base[INSENSITIVE]   = "#DDDDCF"
 
   text[ACTIVE]      = "#000000"
   text[SELECTED]      = "#FFFFFF"
   text[NORMAL]      = "#000000"
   text[PRELIGHT]      = "#000000"
   text[INSENSITIVE]   = "#747474"

   ###### Theme Engine Style ######
   engine "smooth" {
      fill {
         style   = solid
      }

      line {
         style      = smooth
         thickness   = 1
      }
   
      focus {
         foreground[ACTIVE]   = "#928DA2"
         foreground[SELECTED]   = "#928DA2"
         foreground[NORMAL]   = "#928DA2"
         foreground[PRELIGHT]   = "#928DA2"
      }

      grip {
         style   = midlines
         count   = 4
         spacing   = 0
      }

      check {
         style   = fast
      }

      arrow {
         style   = xfce
         solid   = TRUE
         etched   = FALSE
      }

      tabs {
         style = square
      }
   }
} widget_class "*" style "default"

style "menu" {
   ###### Theme Engine Style ######
   engine "smooth" {
      fill {
         style   = solid
      }

      line {
         style      = smooth
         thickness   = 2
      }

      edge {
         line {
            style      = flat
            thickness   = 1
         }
      }

      check {
         style      = fast

         xpadding   =1
         ypadding   = 1

         line {
            style      = none
            thickness   = 1
         }
      }

      option {
         style   = circle

         line {
            style      = none
            thickness   = 1
         }
      }

      arrow {
         style   = xfce
         solid   = TRUE
         etched   = FALSE
      }
   }
}
class "*MenuItem*" style "menu"
widget_class "*MenuItem*" style "menu"

Then, inside /usr/local/apps/ROX-Filer/images there are 10 icons, but only 3 are related to rox's taskbar; for ex. none of them is the "home" icon...
BTW I don't want to make you all spend too much time on this, there are surely more important topics....
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 04 Jun 2009, 04:06    Post subject:  

please go to the rox options (rightclick).
choose:
Types - Themes
There set the icontheme.
Here you can choose hicolor or your Smooth-Okayish

Then the ones from that theme (in /usr/share/icons/) should be used.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Thu 04 Jun 2009, 04:20    Post subject:  

eden6000 wrote:
Thanks WhoDo, any help is always appreciable. I already have searched into those directories, but there isn't what I'm searching...For ex. I'm using a theme called Smooth-Okaysh; inside the gtk2.0 directory there is no icon, only a gtkrc file, I post the content:...[snip]...
Then, inside /usr/local/apps/ROX-Filer/images there are 10 icons, but only 3 are related to rox's taskbar; for ex. none of them is the "home" icon...
BTW I don't want to make you all spend too much time on this, there are surely more important topics....

In the theme directory itself there should be an index.theme file. That contains the details of which icon set is being used by the theme. The Home, Up, Bookmarks, Rescan, Sort and Help icons are all set by the Gtk theme. To override the defaults you need to create the icons directory, add the icons you intend to use and then edit the index.theme file to point to that location.

You can also customise other parts of the Gtk themes using the advice provided in the attached text file.

Hope that helps
CustomizeGTKtheme.txt.gz
Description  Click to open
gz

 Download 
Filename  CustomizeGTKtheme.txt.gz 
Filesize  514 Bytes 
Downloaded  278 Time(s) 

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Thu 04 Jun 2009, 04:22    Post subject:  

MU wrote:
please go to the rox options (rightclick).
choose:
Types - Themes
There set the icontheme.
Here you can choose hicolor or your Smooth-Okayish

Then the ones from that theme (in /usr/share/icons/) should be used.
Mark

Mark I think he means the Home icon in the Gtk window toolbar, not the one on the desktop or in the application space of the ROX window.

I could be wrong.

_________________
Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
Back to top
View user's profile Send private message 
eden6000

Joined: 08 Apr 2007
Posts: 259

PostPosted: Thu 04 Jun 2009, 04:31    Post subject:  

No Mark, the theme you choose from inside Rox points to /root/.icons; inside there I have 7 tango-based themes (Pizzapup made it like this Very Happy ), but they all contain only mime icons, so switching them changes only file and directories icons...The theme I mentioned before is a GTK theme, which is correctly located in /usr/share/themes
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 04 Jun 2009, 04:35    Post subject:  

Whodo, yes, and these are set by /usr/share/icons/, if you deactivate the internal rox icontheme.
See screenshots Smile

Mark
rox2.jpg
 Description   
 Filesize   13.02 KB
 Viewed   1110 Time(s)

rox2.jpg

rox1.jpg
 Description   
 Filesize   13.01 KB
 Viewed   1060 Time(s)

rox1.jpg


_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10747
Location: Ontario Canada,Sydney Australia

PostPosted: Thu 04 Jun 2009, 04:40    Post subject:  

If you open /root/.gtkrc-2.0
You can over-ride the default gtkrc-2.0 theme By adding these lines, like I did below. First you can specify the path to the new freedesktop theme.
Then you can add any changes like I did below.

# ttuuxxx: the following is for the newer gtk2 icon theme Smile
pixmap_path "/usr/local/lib/X11/mini-icons/"

style "normal" {
stock["gtk-close"] = {{"close-icon.png"}}
stock["gtk-go-up"] = {{"up-icon.png"}}
stock["gtk-home"] = {{"home-icon.png"}}
stock["gtk-refresh"] = {{"refresh-icon.png"}}
stock["gtk-zoom-in"] = {{"zoom-in-icon.png"}}
stock["gtk-zoom-fit"] = {{"zoom-fit-icon.png"}}
stock["gtk-jump-to"] = {{"jump-to-icon.png"}}
stock["gtk-sort-ascending"] = {{"sort-icon.png"}}
stock["gtk-help"] = {{"help-icon.png"}}
stock["rox-show-hidden"] = {{"hidden-icon.png"}}
stock["rox-show-details"] = {{"details-icon.png"}}
stock["rox-select"] = {{"select-icon.png"}}
}

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 4 [56 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1033s ][ Queries: 12 (0.0053s) ][ GZIP on ]