summaryrefslogtreecommitdiffstats
path: root/web/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/color.rs (renamed from web/src/color.rs)3
-rw-r--r--web/src/lib.rs4
2 files changed, 4 insertions, 3 deletions
diff --git a/web/src/color.rs b/src/color.rs
index 2624c3c9..5cc3a084 100644
--- a/web/src/color.rs
+++ b/src/color.rs
@@ -1,4 +1,6 @@
+/// A color in the sRGB color space.
#[derive(Debug, Clone, Copy, PartialEq)]
+#[allow(missing_docs)]
pub struct Color {
pub r: f32,
pub g: f32,
@@ -7,6 +9,7 @@ pub struct Color {
}
impl Color {
+ /// The black color.
pub const BLACK: Color = Color {
r: 0.0,
g: 0.0,
diff --git a/web/src/lib.rs b/web/src/lib.rs
index 5a0dd6f2..a6dc2b79 100644
--- a/web/src/lib.rs
+++ b/web/src/lib.rs
@@ -3,14 +3,12 @@ use futures::Future;
use std::cell::RefCell;
mod bus;
-mod color;
mod element;
mod widget;
pub use bus::Bus;
-pub use color::Color;
pub use element::Element;
-pub use iced::Align;
+pub use iced::{Align, Color};
pub use widget::*;
pub trait UserInterface {