mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Color brush - Fixed gradient picker not appearing
Gradient picker - Use dialog instead of a popup window
This commit is contained in:
1 parent
e863652b08
commit
45baa6ab85
21 files changed
+206
-101
No files matched your search
@@ -24,7 +24,7 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MaterialDesignThemes" Version="3.0.1" />
|
||||
<PackageReference Include="MaterialDesignThemes" Version="3.1.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Artemis.Core\Artemis.Core.csproj">
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MaterialDesignThemes" Version="3.0.1" />
|
||||
<PackageReference Include="MaterialDesignThemes" Version="3.1.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Artemis.Core\Artemis.Core.csproj">
|
||||
|
||||
@@ -28,9 +28,9 @@ namespace Artemis.Plugins.LayerBrushes.Color
|
||||
|
||||
private void UpdateColorProperties()
|
||||
{
|
||||
Layer.Properties.RemoveLayerProperty(ColorProperty);
|
||||
UnRegisterLayerProperty(ColorProperty);
|
||||
ColorProperty = null;
|
||||
Layer.Properties.RemoveLayerProperty(GradientProperty);
|
||||
UnRegisterLayerProperty(GradientProperty);
|
||||
GradientProperty = null;
|
||||
|
||||
if (GradientTypeProperty.Value == GradientType.Solid)
|
||||
|
||||
@@ -180,9 +180,11 @@ namespace Artemis.Plugins.LayerBrushes.Noise
|
||||
|
||||
private void CreateColorMap(object sender, EventArgs e)
|
||||
{
|
||||
_colorMap = new SKColor[101];
|
||||
var colorMap = new SKColor[101];
|
||||
for (var i = 0; i < 101; i++)
|
||||
_colorMap[i] = GradientColorProperty.Value.GetColor(i / 100f);
|
||||
colorMap[i] = GradientColorProperty.Value.GetColor(i / 100f);
|
||||
|
||||
_colorMap = colorMap;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user