Python: Add support for assigning colors directly to brushes

This commit is contained in:
Simon Hausmann 2024-03-06 16:20:05 +01:00
parent 3c9b57ecf8
commit 3e66b98121
3 changed files with 12 additions and 2 deletions

View file

@ -32,7 +32,7 @@ enum PyColorInput {
#[pyclass]
#[derive(Clone)]
pub struct PyColor {
color: slint_interpreter::Color,
pub color: slint_interpreter::Color,
}
#[pymethods]