ltk/widget/date_picker/
theme.rs

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

use crate::types::Color;
pub fn surface()        -> Color { crate::theme::palette().surface }
pub fn surface_alt()    -> Color { crate::theme::palette().surface_alt }
pub fn text()           -> Color { crate::theme::palette().text_primary }
pub fn text_muted()     -> Color { crate::theme::palette().text_secondary }
pub fn accent()         -> Color { crate::theme::palette().accent }
pub const PADDING:    f32 = 16.0;
pub const RADIUS:     f32 = 16.0;
pub const HEADER_FS:  f32 = 16.0;
pub const DOW_FS:     f32 = 12.0;
pub const DAY_FS:     f32 = 14.0;
pub const CELL_SIZE:  f32 = 36.0;
pub const SPACING:    f32 = 4.0;