Johan Malm
ea3ea49783
Fix more coding style violations
2021-08-25 20:45:39 +01:00
Johan Malm
8c96c65018
ssd: refactor in preparation for making ssd_visible_box() private
...
Prepare to move code from output/render functions to ssd. We want
rendering functions to just render, not calculate decoration geometry
and such like.
2021-08-22 14:12:05 +01:00
Johan Malm
5f01c49b72
ssd: refactor and position title nearer left hand edge
...
Put title deco at the end of linked list to render it on top of corner
edges.
2021-08-22 14:06:11 +01:00
Johan Malm
c13a520673
ssd: handle font texture creation when view->width not yet set
2021-08-21 11:16:15 +01:00
Johan Malm
a668f6f73d
font: font_texture_create() support font size argument
2021-08-20 20:20:49 +01:00
Johan Malm
f857aea8f4
ssd: add application title to title bar
2021-08-07 09:35:53 +01:00
Johan Malm
1dc3059707
ssd: add support for interacting with bottom corners
2021-07-26 20:37:36 +01:00
Johan Malm
399322052b
ssd: add ssd_interactive_box()
...
...which is used by desktop_view_at() and ssd_at() to determine which
decoration part is under the cursor.
ssd_interactive_box() allows deocoration parts to extend outside the
visible regions, and therefore supports a wider 'resize-edges' area than
the border itself.
2021-07-26 20:06:52 +01:00
Johan Malm
e50bb45890
Move corner textures from ssd.c to theme.c
...
It makes more sense to just keep one set of corner textures for server
side view decorations, rather than storing a set for each view. This also
keeps the code simpler when when changing theme parameters.
2021-07-16 17:07:00 +01:00
Johan Malm
e05a3c5f65
cairo: Replace <cairo/cairo.h> by <cairo.h>
...
See sway@d45623c2
2021-06-26 18:28:27 +01:00
Johan Malm
2f5a44d34d
theme: move title_height to theme struct
...
title_height is a derived variable which needs both config and theme
variables (font height and title padding). The code is tidier calling
post_processing() for this from theme_init()
2021-04-15 20:13:49 +01:00
Johan Malm
8f8a6dfea1
theme: add window.inactive.border.color
2021-04-10 19:11:29 +01:00
Johan Malm
31d3a53e46
theme: add window.active.border.color
...
This replaces window.active.handle.bg.color which will no longer be
supported.
2021-04-10 18:40:43 +01:00
Johan Malm
a5139815d6
config: add <theme><cornerRadius>
2021-03-30 22:39:52 +01:00
Johan Malm
b3a73a9fdc
theme: support border.width
2021-03-27 21:09:45 +00:00
Johan Malm
fdfb12b2ce
Added support for rounded corners
2021-03-27 21:04:12 +00:00
Johan Malm
2a48f2801b
Create a linked list of SSD for each view
2021-03-21 21:46:16 +00:00
Johan Malm
fc76100fd5
Add ssd.h
2021-03-21 20:54:55 +00:00
Johan Malm
a262b729df
Rename deco.c ssd.c
2021-03-20 14:41:39 +00:00