Browse Source

Faster effect in bcmaterialdesignbutton.pas

lainz 9 years ago
parent
commit
aa8202dc50
1 changed files with 4 additions and 1 deletions
  1. 4 1
      bcmaterialdesignbutton.pas

+ 4 - 1
bcmaterialdesignbutton.pas

@@ -321,7 +321,10 @@ end;
 procedure TBCMaterialDesignButton.OnTimer(Sender: TObject);
 begin
   FCircleSize := FCircleSize + 8;
-  FCircleAlpha := FCircleAlpha - 5;
+  if FCircleAlpha - 10 > 0 then
+    FCircleAlpha := FCircleAlpha - 10
+  else
+    FCircleAlpha := 0;
   if FCircleAlpha <= 0 then
     FTimer.Enabled := False;
   Invalidate;