ltk/widget/toast/
theme.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: LGPL-2.1-only
// Copyright (C) 2026 Liberux Labs, S. L. <info@liberux.net>

use crate::types::Color;
/// Toast pill background — the theme's elevated surface token so
/// the toast reads as a "card" against the page below in both
/// light and dark modes.
pub fn bg()    -> Color { crate::theme::palette().surface_alt }
/// Body text colour — primary text token from the theme.
pub fn text()  -> Color { crate::theme::palette().text_primary }
pub const HEIGHT:        u32 = 56;
pub const BOTTOM_MARGIN: i32 = 32;
pub const PAD_H:         f32 = 24.0;
pub const FONT_SIZE:     f32 = 16.0;
pub const RADIUS:        f32 = 28.0;