teksilo_widgets/styles/recipe_grid_view_style.rs
1// SPDX-License-Identifier: MPL-2.0
2// SPDX-FileCopyrightText: 2026 FernTech
3
4//! Default [`GridViewStyle`] impl — the stock IntUI grid decoration.
5//!
6//! Every method falls through to the trait's default recipe (focus ring =
7//! `BorderRole::Focused` 1.5 px inset 1 px; marquee = translucent
8//! `Focused`; insertion bar = `BorderRole::Accent` 2 px; pinned header =
9//! `SurfaceRole::Raised`). Apps wanting a different look write their own
10//! `impl GridViewStyle` block and install it per-call (`GridView::style(...)`)
11//! or theme-wide (`theme.style_slots.grid_view = Some(Rc::new(...))`).
12
13use teksilo_core::styles::GridViewStyle;
14
15/// The stock grid decoration style. Unit struct — all chrome comes from the
16/// trait defaults.
17#[derive(Debug, Default, Clone, Copy)]
18pub struct RecipeGridViewStyle;
19
20impl GridViewStyle for RecipeGridViewStyle {}