From ba3c654472ee0dd9fb5d39dd24063c07a44c6752 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 12:20:17 -0300 Subject: effects out, the lapis decor and Parallax: a theme's ornament (colors.Decor and Theme.decor: the page's dot grid, the scroll track's checker, the tag plaques with their frames, shadows and the focused one's stripes, the file name's shadow) goes with the Chrome's decor_* fields, name_ink and fx, the window's cell decor (CellDecor, the cells a plaque showed through and the blended pipeline they needed, the plaques drawn under the cells, addPattern, addDecorExcept, plaqueBox), ui.frag's dots and shadow, decor.frag's checker (flat fills alone now), the cell instance's second effect word (76 bytes an instance) and the Parallax word and setting; lapis keeps its colours, and lapis_plain, lapis on flat grounds, is lapis now and goes (theme.snap's lapis-plain frames and themesel's row of it, the window monkey's theme list, the site gallery's entry and shot) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/draw.zig | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/draw.zig') diff --git a/src/draw.zig b/src/draw.zig index 015d2def..d299b03f 100644 --- a/src/draw.zig +++ b/src/draw.zig @@ -373,25 +373,7 @@ pub fn render(p: *Pardes, arena: std.mem.Allocator) !*Surface { .grip_dirty = boxDirty(p), .tag_rule = p.theme().tag_rule, .rail_px = @intCast(@min(255, @as(u32, p.theme().rail_px orelse 12) * p.settings.grip_width / 100)), - .name_ink = chrome.tag_name_fg, - .active_name_ink = if (p.settings.focus_tint) chrome.tag_active_name_fg else chrome.tag_name_fg, - .fx = @as(u8, @intFromBool(p.settings.parallax)) << 3, }; - if (p.theme().decor) |decor| { - s.chrome.decor_dots = decor.page_dots; - s.chrome.decor_dot_alpha = decor.page_dot_alpha; - s.chrome.decor_dot_px = decor.page_dot_px; - s.chrome.decor_checker = decor.rail_checker; - s.chrome.decor_checker_px = decor.rail_checker_px; - s.chrome.decor_box_border = decor.tag_border; - s.chrome.decor_box_border_px = decor.tag_border_px; - s.chrome.decor_box_shadow = decor.tag_shadow; - s.chrome.decor_box_shadow_px = decor.tag_shadow_px; - s.chrome.decor_box_stripe = decor.tag_stripe; - s.chrome.decor_box_stripe_px = decor.tag_stripe_px; - s.chrome.decor_title = decor.title_shadow; - s.chrome.decor_title_px = decor.title_shadow_px; - } place(p, s); // Separators have their own role; a scrollbar need not frame the page. const whole = s.regions[0].rect; -- cgit v1.3