solid_color: Fix alpha handling
Browse files at this commit092cf6cfaf9c03303bd04e44df4374b79f550f21Parent: 236f96e1 changed file +1 -1
src/render_helpers/solid_color.rsmodified+1 -1
| @@ -146,7 +146,7 @@ impl Element for SolidColorRenderElement { | ||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | fn alpha(&self) -> f32 { |
| 149 | - 1.0 | |
| 149 | + self.color[3] | |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | fn kind(&self) -> Kind { |