mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Support svg buttons
In the theme directory add close-{active,inactive}.svg instead of
close.xbm - and similarly for iconify, menu and max.
This commit is contained in:
parent
a386133068
commit
c62df26c2a
10 changed files with 137 additions and 5 deletions
|
|
@ -70,6 +70,7 @@ pangocairo = dependency('pangocairo')
|
|||
input = dependency('libinput', version: '>=1.14')
|
||||
math = cc.find_library('m')
|
||||
png = dependency('libpng')
|
||||
svg = dependency('librsvg-2.0', version: '>=2.46', required: false)
|
||||
|
||||
if get_option('xwayland').enabled() and not wlroots_has_xwayland
|
||||
error('no wlroots Xwayland support')
|
||||
|
|
@ -78,6 +79,8 @@ have_xwayland = xcb.found() and wlroots_has_xwayland
|
|||
conf_data = configuration_data()
|
||||
conf_data.set10('HAVE_XWAYLAND', have_xwayland)
|
||||
|
||||
conf_data.set10('HAVE_RSVG', svg.found())
|
||||
|
||||
msgfmt = find_program('msgfmt', required: get_option('nls'))
|
||||
if msgfmt.found()
|
||||
source_root = meson.current_source_dir()
|
||||
|
|
@ -106,6 +109,11 @@ labwc_deps = [
|
|||
math,
|
||||
png,
|
||||
]
|
||||
if svg.found()
|
||||
labwc_deps += [
|
||||
svg,
|
||||
]
|
||||
endif
|
||||
|
||||
subdir('include')
|
||||
subdir('src')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue