mirror of
https://github.com/labwc/labwc.git
synced 2026-02-09 10:07:31 -05:00
ssd: support window icons
The default `titleLayout` is updated to `icon:iconify,max,close` which replaces the window menu button with the window icon. When the icon file is not found or could not be loaded, the window menu icon as before is shown. The icon theme can be selected with `<theme><icon>`. This commit adds libsfdo as an optional dependency. `-Dicon=disabled` can be passsed to `meson setup` command in order to disable window icon, in which case the window icon is always replaced with a window menu button.
This commit is contained in:
parent
b9414d8b8d
commit
a745f91169
32 changed files with 452 additions and 142 deletions
12
include/icon-loader.h
Normal file
12
include/icon-loader.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef LABWC_ICON_LOADER_H
|
||||
#define LABWC_ICON_LOADER_H
|
||||
|
||||
struct server;
|
||||
|
||||
void icon_loader_init(struct server *server);
|
||||
void icon_loader_finish(struct server *server);
|
||||
struct lab_data_buffer *icon_loader_lookup(struct server *server,
|
||||
const char *app_id, int size, int scale);
|
||||
|
||||
#endif /* LABWC_ICON_LOADER_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue