// SPDX-FileCopyrightText: 2024 vivi developers // SPDX-License-Identifier: MIT import { Border, BorderStyle, TextStyle, VerticalLayoutBase, LayoutStyle, TextInputStyle, ButtonStyle } from "../foundation.slint"; import { MagicText } from "./magic_text.slint"; import { Icons } from "./icons.slint"; import { MagicBorderSettings, MagicPalette, MagicFontSettings, MagicLayoutSettings, MagicSizeSettings } from "./styling.slint"; import { CircularProgressSlider } from "./circular_progress_slider.slint"; import { TextButton } from "./text_button.slint"; import { ButtonAction } from "./magic_button_base.slint"; import { TextField } from "./text_field.slint"; import { MagicText } from "./magic_text.slint"; import { Switch } from "./switch.slint"; export struct TimePickerStyle { border_style: BorderStyle, layout_style: LayoutStyle, text_style: TextStyle, text_input_style: TextInputStyle, } export struct Time { hour: int, minute: int, second: int } export component TimePickerPopup inherits PopupWindow { in property title: @tr("Select time"); in property use_24_time_format: true; in property