icon.h
This file
Path
icon.h
39 lines · 871 bytes · C
Last changed by
icon: in application mode (not dmenu), filter out non-application icon theme dirsDaniel Eklöfbefore adoption40964b5
History of this fileTake it
The walk stopped after 200 commits: lines older than 6a4c416 point at it.
changelog: add missing refDaniel Eklöfbefore adoption6a4c416
lines 1–30why, one step back1#pragma once23#include <stdbool.h>45#include "application.h"6#include "tllist.h"78enum icon_dir_type {9 ICON_DIR_FIXED,10 ICON_DIR_SCALABLE,11 ICON_DIR_THRESHOLD,12};1314struct icon_dir {15 char *path; /* Relative to theme's base path */16 int size;17 int min_size;18 int max_size;19 int scale;20 int threshold;21 enum icon_dir_type type;22};2324struct icon_theme {25 char *name;26 tll(struct icon_dir) dirs;27};2829typedef tll(struct icon_theme) icon_theme_list_t;30icon: in application mode (not dmenu), filter out non-application icon theme dirsDaniel Eklöfbefore adoption40964b5
line 31why, one step back31icon_theme_list_t icon_load_theme(const char *name, bool filter_context);changelog: add missing refDaniel Eklöfbefore adoption6a4c416
lines 32–37why, one step back32void icon_themes_destroy(icon_theme_list_t themes);3334bool icon_lookup_application_icons(35 icon_theme_list_t themes, int icon_size,36 struct application_list *applications);37Implement gamma-correct blendingDaniel Eklöfbefore adoption2d19826
line 38why, one step back38bool icon_from_png(struct icon *icon, const char *name, bool gamma_correct);changelog: add missing refDaniel Eklöfbefore adoption6a4c416
line 39why, one step back39bool icon_from_svg(struct icon *icon, const char *name);