Merge pull request #14732 from AbstractQbit/fix-checkbox-nub-artefact

Fix dimmed checked nub artifact
This commit is contained in:
Dean Herbert 2021-09-13 21:54:39 +09:00 committed by GitHub
commit 07936bc88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ public Nub()
},
};
Current.ValueChanged += filled => fill.FadeTo(filled.NewValue ? 1 : 0, 200, Easing.OutQuint);
Current.ValueChanged += filled =>
{
fill.FadeTo(filled.NewValue ? 1 : 0, 200, Easing.OutQuint);
this.TransformTo(nameof(BorderThickness), filled.NewValue ? 8.5f : border_width, 200, Easing.OutQuint);
};
}
[BackgroundDependencyLoader]