ltk/widget/radio/
theme.rs

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

use crate::types::Color;
pub fn ring_color()  -> Color { crate::theme::palette().divider }
pub fn selected()    -> Color { crate::theme::palette().accent }
/// Inner dot — uses the page-background colour so it reads as
/// the inverse of the accent fill regardless of mode.
pub fn dot_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 OUTER_SIZE: f32 = 24.0;
pub const DOT_SIZE:   f32 = 12.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 FONT_SIZE:  f32 = 16.0;