Add colors in Rust (#78)

* 🎨 Add colors in Rust

* 🌿 Use an option for the properties and #[repr(C)]

* ❌ Remove WASM dependency on document.

* 😎 Wrap Fill and stroke in a style struct.

* 📦 Use crate::Color

* Merge Add transactions for temporary modifications to the document

* Run cargo fmt

* Color without a 'U'
This commit is contained in:
0HyperCube
2021-04-21 22:25:06 +01:00
committed by Keavon Chambers
parent 2849b99b59
commit 46c9ef02ca
26 changed files with 689 additions and 407 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
#[macro_use]
mod macros;
mod color;
mod dispatcher;
mod error;
pub mod hint;
@@ -12,7 +11,7 @@ pub mod workspace;
pub use error::EditorError;
#[doc(inline)]
pub use color::Color;
pub use document_core::color::Color;
#[doc(inline)]
pub use dispatcher::events;
@@ -21,7 +20,7 @@ pub use dispatcher::events;
pub use dispatcher::Callback;
use dispatcher::Dispatcher;
use document_core::Document;
use document_core::document::Document;
use tools::ToolFsmState;
use workspace::Workspace;