Struct libxdgkit::icon_theme::IconTheme [−][src]
pub struct IconTheme { pub name: Option<String>, pub comment: Option<String>, pub inherits: Option<Vec<String>>, pub directories: Option<Vec<Directory>>, pub scaled_directories: Option<Vec<String>>, pub hidden: Option<bool>, pub example: Option<String>, }
Fields
name: Option<String>
[REQUIRED BY SPECS] short name of the icon theme, used in e.g. lists when selecting themes.
comment: Option<String>
[REQUIRED BY SPECS] longer string describing the theme
inherits: Option<Vec<String>>
The name of the theme that this theme inherits from. If an icon name is not found in the current theme, it is searched for in the inherited theme (and recursively in all the inherited themes). If no theme is specified implementations are required to add the “hicolor” theme to the inheritance tree. An implementation may optionally add other default themes in between the last specified theme and the hicolor theme.
directories: Option<Vec<Directory>>
[REQUIRED BY SPECS] list of subdirectories for this theme. For every subdirectory there must be a section in the index.theme
file describing that directory.
scaled_directories: Option<Vec<String>>
Additional list of subdirectories for this theme, in addition to the ones in Directories. These directories should only be read by implementations supporting scaled directories and was added to keep compatibility with old implementations that don’t support these.
Whether to hide the theme in a theme selection user interface. This is used for things such as fallback-themes that are not supposed to be visible to the user.
example: Option<String>
The name of an icon that should be used as an example of how this theme looks.