Skip to content

jeremie2/icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Adding mimetype icon for Nim-lang to Ubuntu

Clone/fork Yaru repo

  • Clone Yaru repo, if you just would like to test experiments:

     git clone https://github.com/ubuntu/yaru.git
    
  • Fork Yaru repo, if you want to make a pull request:

    1. Click on the Fork button at the top right corner of Yaru repo.
    2. Clone your fork running the command:
      git clone https://github.com/YOUR_USERNAME/yaru.git
      

Create Nim template icons

  1. Open wit Inkscape an .svg template from ~/yaru/icons/src/fullcolor/mimetypes and name it text-x-nim.svg.
  2. Select Layers → Layers and click the eye next to the layer called Baseplate to make it visible.
  3. Change the mimetypes so that will show text-x-nim.
  4. Click again the eye next to the layer called Baseplate to make it NOT visible.
  5. After you have finished to edit the template, save it and close Inkscape.

Generating png files

  1. Move to ~/yaru/icons/src/fullcolor/ directory and run the render-bitmaps.py script:
    cd ~/yaru/icons/src/fullcolor/
    ./render-bitmaps.py text-x-nim
    
  2. Initialize build system:
    cd ~/yaru
    meson build
    
  3. Build and install:
    cd ~/yaru/build
    sudo ninja install
    

All Nim .png icons will now appear into the following forlders:

  • system folder: /usr/share/icons/Yaru;
  • local repo folder: ~/yaru/icons/Suru.

Pull request

  1. Run the following commands:
    cd ~/yaru
    git add .
    git commit -a -m "write_a_message"
    
  2. On GitHub select you Yaru-fork page
  3. Click on Pull requestes link (top left corner).
  4. Click on the Create pull request green button.

About

Mimetype icons for Nim-lang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published