mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
Cleanup icon theme code
Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>
This commit is contained in:
parent
93b60f799b
commit
59d245cf5b
4 changed files with 5 additions and 10 deletions
|
|
@ -758,18 +758,13 @@ uint32_t render_focused_window_icon(cairo_t *cairo,
|
|||
cairo_surface_t *icon = NULL;
|
||||
if (icon_name) {
|
||||
char *icon_theme = output->bar->config->icon_theme;
|
||||
list_t *basedirs = get_basedirs();
|
||||
int min_size = 0;
|
||||
int max_size = 0;
|
||||
|
||||
list_t *themes = create_list();
|
||||
// TODO: Load correct theme
|
||||
list_add(themes, "Adwaita");
|
||||
|
||||
assert(output->bar);
|
||||
assert(output->bar->themes);
|
||||
char *icon_path = find_icon(output->bar->themes,
|
||||
basedirs,
|
||||
output->bar->basedirs,
|
||||
icon_name,
|
||||
target_size,
|
||||
icon_theme,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue