summaryrefslogtreecommitdiff
path: root/src/tag_layer.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag_layer.zig')
-rw-r--r--src/tag_layer.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tag_layer.zig b/src/tag_layer.zig
index f8cc6eca..52da297d 100644
--- a/src/tag_layer.zig
+++ b/src/tag_layer.zig
@@ -30,6 +30,10 @@ pub const Layer = struct {
/// that is moving into place. A pixel shell draws it offset and clipped
/// to the rows below the viewport's top; the grid has no such thing.
slide: f32 = 0,
+ /// How present a notice band is (1 = fully) while it fades up or
+ /// dissolves. `bg` and the cells are already blended by it; a pixel
+ /// shell uses it for what it draws around the band, like its rule.
+ fade: f32 = 1,
pub fn capacity(layer: *const Layer, metrics: pardes.RowMetrics) u16 {
return @intCast(@min(std.math.maxInt(u16), @max(1, @as(u32, layer.viewport.w) * @max(1, metrics.body_w) / @max(1, metrics.tagline_w))));