Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for egui version 0.28 #44

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "catppuccin-egui"
version = "5.1.1"
version = "5.1.2"
PPakalns marked this conversation as resolved.
Show resolved Hide resolved
authors = ["Sam Nystrom <[email protected]>"]
edition = "2021"
description = "Soothing pastel theme for egui."
Expand All @@ -16,9 +16,10 @@ exclude = ["assets/", "src/themes.rs.tera"]
[dependencies]
egui26 = { version = "0.26", package = "egui", default-features = false, optional = true }
egui27 = { version = "0.27", package = "egui", default-features = false, optional = true }
egui28 = { version = "0.28", package = "egui", default-features = false, optional = true }

[dev-dependencies]
eframe = "0.26"

[features]
default = [ "egui26" ]
default = ["egui26"]
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
//! ```
//!

#[cfg(not(any(feature = "egui26", feature = "egui27")))]
#[cfg(not(any(feature = "egui26", feature = "egui27", feature = "egui28")))]
compile_error!("at least one egui version must be enabled");

#[cfg(feature = "egui26")]
use egui26 as egui;
#[cfg(feature = "egui27")]
use egui27 as egui;
#[cfg(feature = "egui28")]
use egui28 as egui;

use egui::{epaint, style};

Expand Down