mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 05:38:12 +08:00
Implement update_colors (#43)
Co-authored-by: RustyNixieTube <RustyNixieTube@users.noreply.github.com>
This commit is contained in:
committed by
Keavon Chambers
co-authored by
RustyNixieTube
parent
f9308a6d5a
commit
0156813dec
@@ -22,6 +22,12 @@ impl ToolState {
|
||||
pub fn select_tool(&mut self, tool: ToolType) {
|
||||
self.active_tool = tool
|
||||
}
|
||||
pub fn set_primary_color<T: Into<Color>>(&mut self, primary_color: T) {
|
||||
self.primary_color = primary_color.into();
|
||||
}
|
||||
pub fn set_secondary_color<T: Into<Color>>(&mut self, secondary_color: T) {
|
||||
self.secondary_color = secondary_color.into();
|
||||
}
|
||||
}
|
||||
|
||||
#[repr(usize)]
|
||||
|
||||
Reference in New Issue
Block a user