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:
Yu Sun 2024-05-08 22:31:17 +08:00 committed by GitHub
parent 18658044c2
commit 30fe3f72bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {