GithubHelp home page GithubHelp logo

isabella232 / adwaita-icon-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gnome/adwaita-icon-theme

0.0 0.0 0.0 154.47 MB

Read-only mirror of https://gitlab.gnome.org/GNOME/adwaita-icon-theme

Home Page: https://gitlab.gnome.org/GNOME/adwaita-icon-theme

License: Other

Shell 11.30% Makefile 26.87% Python 55.63% Ruby 3.57% M4 2.63%

adwaita-icon-theme's Introduction

Adwaita Icon Theme

Adwaita Icons

Bugs and Requests

If you're a core GNOME application maintainer and you have an icon need that bridges multiple components or apps, feel free to file a request in the issue tracker. If you're an application developer, file a request against the Icon Development Kit instead.

Fullcolor vs symbolic

For an up to date guide on how to use and how to design GNOME style icons, see the GNOME User Interface Guidelines.

Building and Contributing to Adwaita

If you have experience designing symbolic icons for 3rd party GNOME apps and would like to help maintaining adwaita-icon-theme, here's a few tips on how to get going and how it differs from the Devkit.

Just like larger assets in the Icon Devkit or apps relying on Symbolic Preview, the set is maintained in a single SVG, src/gnome-stencils.svg. There are many similarities. The icons are grouped in inkscape layes per icon context (apps, actions, mimetypesโ€ฆ). Any group inside that layer is treated as an icon and will be exported into the Adwaita/scalable/<context>/<inkscape:label>-symbolic.svg of the group. Notice the export size is scalable rather than symbolic for legacy reasons.

The best way to assure your icon will be precisely 16x16px, is to include a blank rectangle in the group. This rectangle, as long as it is 16 pixels wide and high, will be removed by the crop script. To name the group, open up the object properties dialog (Ctrl+Shfit+O) and use the label field. This, again, i different to devkit, where every icon needs a title instead. Do not add the -symbolic suffix there, that will be done by the script. Also, don't nest groups too much inside the main one. The script will only convert outlines properly down to two subgroups.

Recoloring

The color of the icon set is defined at runtime by the gtk theme. Every single icon from the set is actually embedded inside an xml container that has a stylesheet overriding the colors.

There is a couple of things the icon author needs to be aware of and a few things s/he can make use of. The stylesheet is setting the color of the fill for all rectangles and paths. DO NOT leave any rectangles or paths with no fill/stroke thinking it's invisible.

While the script is set to convert strokes to paths, you might be safer to do this manually (Path -> Stroke to Path in Inkscape).

gtk doesn't care about the colors you define for the icon. They are recolored at runtime. If you need portions of icons to have a color, you need to include a class attribute to the shape or group and set it to one of the three values below.

  • warning - this maps to gtk @warning_color
  • error - maps to @error_color
  • success - maps to @success_color

adwaita-icon-theme's People

Contributors

aklapper avatar alexlarsson avatar allanday avatar alshopov avatar andreasn avatar arashm avatar benzea avatar cedric31 avatar cgwalters avatar changwoo avatar claudep avatar cosimoc avatar dmytro-bit avatar dobey avatar frandieguez avatar gheyret avatar hadess avatar itsjamil avatar jbicha avatar jimmac avatar jodygoldberg avatar jonmccann avatar kalev avatar kristjanesperanto avatar lapo avatar lrn avatar nilamdyuti avatar pesder avatar snwh avatar sveinki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.