zu/styles/
severity.rs

1// Copyright (c) 2024 Xu Shaohua <shaohua@biofan.org>. All rights reserved.
2// Use of this source is governed by Lesser General Public License
3// that can be found in the LICENSE file.
4
5use yew::AttrValue;
6
7#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
8pub enum Severity {
9    #[default]
10    Success,
11    Info,
12    Warning,
13    Error,
14}
15
16#[derive(Debug, Default, Clone, PartialEq, Eq)]
17pub enum SeverityColor {
18    #[default]
19    Success,
20    Info,
21    Warning,
22    Error,
23    Custom(AttrValue),
24}