Icon

The Icon component displays an icon from the icon theme. More...

Properties

Detailed Description

The icon theme contains a set of standard icons referred to by their name. Using icons whenever possible enhances consistency accross applications. Each icon has a name and can have different visual representations depending on the size requested.

Icons can also be colorized. Setting the color property will make all pixels with the keyColor (by default #808080) colored.

Example:

Icon {
    width: 64
    height: 64
    name: "search"
}

Example of colorization:

Icon {
    width: 64
    height: 64
    name: "search"
    color: "red"
}

Icon themes are created following the Freedesktop Icon Theme Specification.

Property Documentation

color : color

The color that all pixels that originally are of color keyColor should take.


keyColor : color

The color of the pixels that should be colorized. By default it is set to #808080.


name : string

The name of the icon to display.