Johan Malm
b878db57a7
menu: support submenus
...
Support submenus defined as follows:
<menu id="submenu" label="Submenu">
<item label="item1.1"></item>
<item label="item1.2"></item>
</menu>
<menu id="root-menu" label="">
<menu id="submenu" />
<item label="item0"></item>
</menu>
2021-11-02 18:31:19 +00:00
Johan Malm
b967592289
Fix coding style
2021-09-24 22:14:04 +01:00
Johan Malm
ebb632419b
*.c: add SPDX-License-Identifier
2021-09-24 21:45:48 +01:00
Johan Malm
a668f6f73d
font: font_texture_create() support font size argument
2021-08-20 20:20:49 +01:00
Johan Malm
9a9cd609f6
menu: fix breakage caused by f857aea8
2021-08-09 17:28:39 +01:00
Johan Malm
5ecf0e1e7e
Make font_texture_create() more generic
...
Move font_texture_create() to font.c so it can be used for purposes other
than rendering the menu, for example server side decoration.
Refactor menu.c and menu.h to use this more generic font_texture_create()
2021-08-07 08:35:46 +01:00
Johan Malm
82e47ac1f5
Remove src/common/log.c
...
Use wlr_log() instead
2021-07-23 21:15:55 +01:00
Johan Malm
20fd8f59a7
Remove info() and die()
2021-07-22 21:30:17 +01:00
Johan Malm
6ad8252de9
menu/theme: use wlr_texture_destroy()
2021-07-01 19:21:09 +01:00
Johan Malm
e05a3c5f65
cairo: Replace <cairo/cairo.h> by <cairo.h>
...
See sway@d45623c2
2021-06-26 18:28:27 +01:00
Jan Beich
c9023dd2c6
menu,xbm: chase swaywm/wlroots@27fba3df43
...
$ labwc
[...]
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.063 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
00:00:00.064 [render/gles2/texture.c:162] Unsupported pixel format 0x0
Based on 66343839b1
2021-03-13 23:23:33 +00:00
Johan Malm
de88b69d62
mv theme.c ..
2021-02-21 22:18:34 +00:00
Johan Malm
1b263e1f67
Un-global theme variable
2021-02-21 21:54:40 +00:00
Johan Malm
6cdf3d68f3
menu: minor refactoring
2021-02-19 23:31:30 +00:00
Johan Malm
f0d8eb0a60
menu: reload on SIGHUP
2021-02-19 23:05:14 +00:00
Johan Malm
855f21b1b3
menu.c: parse menu.xml root-menu
2021-02-17 20:38:16 +00:00
Johan Malm
bc04f50d14
Add basic menu theme options
2021-02-16 20:43:20 +00:00
Johan Malm
d39b158cec
menu: add menu_finish()
2020-10-22 19:43:27 +01:00
Johan Malm
266f625306
menu: vertically center-align items
2020-10-21 20:32:08 +01:00
Johan Malm
dc5d1ab976
Support a very simple root-menu
2020-10-19 22:14:17 +01:00