Skip to content

Commit

Permalink
Updated to egui 0.23 && derived Default
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsEthra committed Sep 28, 2023
1 parent b2cb28c commit 7b4e869
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "egui-notify"
version = "0.9.0"
version = "0.10.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/ItsEthra/egui-notify"
Expand All @@ -12,10 +12,10 @@ readme = "README.md"
path = "src/lib.rs"

[dependencies]
egui = { version = "0.22", default-features = false }
egui = { version = "0.23", default-features = false }

[dev-dependencies]
eframe = { version = "0.22", default-features = false, features = [
eframe = { version = "0.23", default-features = false, features = [
"default_fonts",
"glow",
] }
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 ItsEthra
Copyright (c) 2022-2023 ItsEthra

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ toasts.show(ctx);
# Installation
```toml
[dependencies]
egui-notify = "0.8"
egui-notify = "0.10"
```

# Difference to [`egui-toast`](https://github.com/urholaukkarinen/egui-toast)
Expand Down
9 changes: 2 additions & 7 deletions src/toast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ use egui::{pos2, vec2, FontId, Pos2, Rect};
use std::{fmt::Debug, time::Duration};

/// Level of importance
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Default, Clone, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum ToastLevel {
#[default]
Info,
Warning,
Error,
Expand All @@ -14,12 +15,6 @@ pub enum ToastLevel {
Custom(String, egui::Color32),
}

impl Default for ToastLevel {
fn default() -> Self {
ToastLevel::Info
}
}

#[derive(Debug)]
pub(crate) enum ToastState {
Appear,
Expand Down

0 comments on commit 7b4e869

Please sign in to comment.