mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Make color-hex optional (#1632)
This commit is contained in:
@@ -46,6 +46,8 @@ persistence = ["serde", "epaint/serde", "ron"]
|
||||
# implement serde on most types.
|
||||
serde = ["dep:serde", "epaint/serde"]
|
||||
|
||||
# Ease of use hex to Color32 macro
|
||||
color-hex = ["epaint/color-hex"]
|
||||
|
||||
[dependencies]
|
||||
epaint = { version = "0.18.1", path = "../epaint", default-features = false }
|
||||
|
||||
@@ -322,8 +322,10 @@ pub use epaint;
|
||||
pub use epaint::emath;
|
||||
|
||||
pub use emath::{lerp, pos2, remap, remap_clamp, vec2, Align, Align2, NumExt, Pos2, Rect, Vec2};
|
||||
#[cfg(feature = "color-hex")]
|
||||
pub use epaint::hex_color;
|
||||
pub use epaint::{
|
||||
color, hex_color, mutex,
|
||||
color, mutex,
|
||||
text::{FontData, FontDefinitions, FontFamily, FontId, FontTweak},
|
||||
textures::TexturesDelta,
|
||||
ClippedPrimitive, Color32, ColorImage, FontImage, ImageData, Mesh, PaintCallback,
|
||||
|
||||
Reference in New Issue
Block a user