Banner = full-bleed BG (light blue) canvas with the FG slate on the right.
(slate_fg: Image.Image, size: tuple[int, int])
| 229 | |
| 230 | |
| 231 | def _compose_banner(slate_fg: Image.Image, size: tuple[int, int]) -> Image.Image: |
| 232 | """Banner = full-bleed BG (light blue) canvas with the FG slate on the right.""" |
| 233 | width, height = size |
| 234 | canvas = Image.new("RGBA", size, BG) |
| 235 | pad = max(2, round(height * 0.10)) |
| 236 | icon_x = width - slate_fg.width - pad |
| 237 | icon_y = (height - slate_fg.height) // 2 |
| 238 | canvas.paste(slate_fg, (icon_x, icon_y), slate_fg) |
| 239 | return canvas |
| 240 | |
| 241 | |
| 242 | def _compose_dialog(slate_bg: Image.Image, size: tuple[int, int]) -> Image.Image: |
no outgoing calls
no test coverage detected