mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-22 22:09:22 -05:00
fix(Message): interchange the icons of MessageVariant::Success
and MessageVariant::Error
(#188)
It should be the ✓ for success and the ✗ for error to make more intuitive sense.
This commit is contained in:
parent
18658044c2
commit
30fe3f72bf
1 changed files with 2 additions and 2 deletions
|
@ -20,9 +20,9 @@ pub enum MessageVariant {
|
|||
impl MessageVariant {
|
||||
fn icon(&self) -> icondata_core::Icon {
|
||||
match self {
|
||||
MessageVariant::Success => icondata_ai::AiCloseCircleFilled,
|
||||
MessageVariant::Success => icondata_ai::AiCheckCircleFilled,
|
||||
MessageVariant::Warning => icondata_ai::AiExclamationCircleFilled,
|
||||
MessageVariant::Error => icondata_ai::AiCheckCircleFilled,
|
||||
MessageVariant::Error => icondata_ai::AiCloseCircleFilled,
|
||||
}
|
||||
}
|
||||
fn theme_color(&self, theme: &Theme) -> String {
|
||||
|
|
Loading…
Add table
Reference in a new issue