We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5827f2 commit 5d5993bCopy full SHA for 5d5993b
node-graph/libraries/vector-types/src/vector/style.rs
@@ -2,6 +2,7 @@
2
3
pub use crate::gradient::*;
4
use core_types::Color;
5
+use core_types::color::Alpha;
6
use core_types::table::Table;
7
use dyn_any::DynAny;
8
use glam::DAffine2;
@@ -123,7 +124,9 @@ impl From<Option<Color>> for Fill {
123
124
125
impl From<Table<Color>> for Fill {
126
fn from(color: Table<Color>) -> Fill {
- Fill::solid_or_none(color.into())
127
+ let alpha = color.get(0).map(|c| c.alpha_blending.opacity).unwrap_or(1.);
128
+ let color: Option<Color> = color.into();
129
+ Fill::solid_or_none(color.map(|c| c.with_alpha(c.alpha() * alpha)))
130
}
131
132
0 commit comments