ltk/widget/checkbox/
theme.rs

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

use crate::types::Color;
pub fn box_border()  -> Color { crate::theme::palette().divider }
pub fn box_checked() -> Color { crate::theme::palette().accent }
/// Tick mark — uses the page-background colour so it reads as
/// the inverse of the accent fill regardless of mode.
pub fn check_color() -> Color { crate::theme::palette().bg }
pub fn focus_color() -> Color { crate::theme::palette().accent }
pub fn label_color() -> Color { crate::theme::palette().text_primary }
pub const BOX_SIZE:     f32 = 24.0;
pub const RADIUS:       f32 = 4.0;
pub const BORDER_W:     f32 = 2.0;
pub const GAP:          f32 = 12.0;
pub const HEIGHT:       f32 = 48.0;
pub const FOCUS_W:      f32 = 3.0;
pub const CHECK_W:      f32 = 2.5;
pub const FONT_SIZE:    f32 = 16.0;