Announcement

Collapse
No announcement yet.

How do I add a custom Icon theme in Kubuntu 15.10?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I add a custom Icon theme in Kubuntu 15.10?

    Hello Everyone,

    I'm trying to load a custom trash can based on the breeze icon set in Kubuntu 15.10 and I'm getting the following error:

    "The file its not a valid icon theme archive"

    I've created a custom theme at the following location:

    ~/.kde/share/icons

    I've then added the following to the icons directory:

    myBreezeExtensions/places/32
    myBreezeExtensions/places/64

    In myBreezeExtensions I added index.theme coded as UTF8 with the following:

    Code:
    [Icon Theme]
    Name=myBreezeExtensions
    Comment=My extension to the Breeze Icon Theme
    Inherits=breeze
    Directories=places/32,places/64
    
    [places/32]
    Size=32
    Type=Threshold
    Context=FileSystem
    
    [places/64]
    Size=64
    Type=Threshold
    Context=FileSystem
    Then in the directories 32 and 64 I added user-trash.png and user-trash-full.png.

    What am I missing?

    Thanks,
    Joe

    #2
    Based on what I've reviewed online I suspect the path, ~/.kde/share/icons, is incorrect. Perhaps someone knows the appropriate route?

    Comment


      #3
      Ok, so I installed Papirus as a theme and found that icons are loaded at the following location:

      ~/.local/share/icons

      I entered the following theme file to my icon directory:

      Code:
      [Icon Theme]
      Name=myBreezeExtensions
      Comment=My extension to the Breeze Icon Theme
      
      
      DisplayDepth=32
      
      
      Inherits=Breeze
      
      
      Example=folder
      
      
      DesktopDefault=48
      DesktopSizes=16,22,32,48,64,128,256
      ToolbarDefault=22
      ToolbarSizes=16,22,32,48
      MainToolbarDefault=22
      MainToolbarSizes=16,22,32,48
      SmallDefault=16
      SmallSizes=16,22,32,48
      PanelDefault=32
      PanelSizes=16,22,32,48,64,128,256
      DialogDefault=32
      DialogSizes=16,22,32,48,64,128,256
      
      
      Directories=places/32,places/64
      
      
      [places/32]
      Size=32
      Context=Places
      Type=Fixed
      
      
      [places/64]
      Size=64
      Context=Places
      Type=Fixed
      However, I'm still getting the following error: "The file its not a valid icon theme archive"

      How can make this a valid archive?

      Thank you!

      Comment


        #4
        Never mind, it's working!

        Now I have a custom trash can for Breeze!

        Comment


          #5
          For future reference I wanted to leave the following in case someone needs it at a later date. I downloaded Kubuntu 15.10 and I'm using the default Icon theme, Breeze. I like the theme except for the trash can widget in the panel which is a folder. I wanted to keep all the icons except for the trash can so I basically extended the theme and overwrote the desired icon.


          In order to do this I created a custom theme in my home directory at the following location:


          ~/.local/share/icons


          I then created a subdirectory under the icons directory named My-Breeze-Extensions, the path now looked as follows:


          ~/.local/share/icons/My-Breeze-Extensions


          The first item I entered into the directory is the index.theme file to which I entered the following:


          Code:
          [Icon Theme]
          Name=My-Breeze-Extensions
          Comment=My extension to the Breeze Icon Theme
          
          DisplayDepth=32
          
          Inherits=breeze
          
          Example=folder
          
          DesktopDefault=48
          DesktopSizes=16,22,32,48,64,128,256
          ToolbarDefault=22
          ToolbarSizes=16,22,32,48
          MainToolbarDefault=22
          MainToolbarSizes=16,22,32,48
          SmallDefault=16
          SmallSizes=16,22,32,48
          PanelDefault=32
          PanelSizes=16,22,32,48,64,128,256
          DialogDefault=32
          DialogSizes=16,22,32,48,64,128,256
          
          Directories=places/32,places/64
          
          [places/32]
          Size=32
          Context=Places
          Type=Fixed
          MinSize=32
          MaxSize=48
          
          [places/64]
          Size=64
          Context=Places
          Type=Scalable
          MinSize=64
          MaxSize=256

          This file is required for the system to index your custom theme and it describes the paths to your icons. It is important the name matches the name of the directory, in my case My-Breeze-Extensions, and that it inherits an icon theme to provide icons not provided in your custom theme, in my case Breeze. For more information on writing an index.theme file please follow the following link:


          http://standards.freedesktop.org/ico...ec-latest.html


          Since I only wanted to overwrite the Trash Can icon I only included two subdirectories in the places directory... I did this to mirror and overwrite the trash can paths in the Breeze theme. So at this point the paths to my icons is as follows:


          ~/.local/share/icons/My-Breeze-Extensions/places/32
          ~/.local/share/icons/My-Breeze-Extensions/places/64


          I then placed two replacement icons, user-trash.png and user-trash-full.png, in the 32 and 64 subdirectories.


          ...and that was pretty much it. Once the configuration was set the new theme appeared at the following path in the Settings app:


          Settings > Icons


          The only item I want to mention is that I wanted to keep the 16px trash can icon in Dolphin but this was overwritten to. To address this I increased the left panel navigation items, i.e. Home, Network, Root, etc., to 32 pixels so my custom trash can doesn't look out of place. I'm now happy with the Breeze theme.


          Hope this helps someone down the line...
          Last edited by Joseph-Anthony-King; Nov 17, 2015, 10:22 AM. Reason: formatting

          Comment


            #6
            Originally posted by Joseph-Anthony-King View Post
            Hope this helps someone down the line...
            Yes, thank you, I've often wanted to do that, fix one or two dud icons in an otherwise acceptable theme.

            Regards, John Little
            Regards, John Little

            Comment


              #7
              You're welcome, let me know if you have any questions!

              Comment


                #8
                yes ,,,nice work , and well laid out for the person trying to follow along .

                Bookmarking for future reference

                VINNY
                i7 4core HT 8MB L3 2.9GHz
                16GB RAM
                Nvidia GTX 860M 4GB RAM 1152 cuda cores

                Comment

                Working...
                X