1
0
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:
Erlend Walstad
2022-05-16 16:38:14 +02:00
committed by GitHub
parent b8a5924295
commit f27f67b76b
6 changed files with 11 additions and 4 deletions

View File

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

View File

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