Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
voidZiAD committed May 10, 2024
1 parent 5ff5215 commit 8e786da
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ using static WinBlur.UI;
SetBlurStyle(frm: this, blurType: BlurType.Acrylic, designMode: Mode.DarkMode, showWindowsTitle: true);
```

If **you are** using the `None` FormBorderStyle, then create the `Form_Load` event, or head over to the form constructor and add the following code:

```cs

// cntrl: The form/control you are targetting.
// blurType: The blur type for the form/control.
// designMode: The design mode (or style) for the form/control.
// this.BackColor = Color.Black;
// The code on top is recommended, but is not necessary.
// In case the code below doesn't work by itself, please change the control/form BackColor to Black/White.
SetBlurStyle(frm: this, blurType: BlurType.Acrylic, designMode: Mode.DarkMode, showWindowsTitle: false);
```

- ⚠️**WARNING:** If **you are** using the `None` FormBorderStyle, then create the `Form_Shown` event instead, and add the same code that is shown on top of this text.

- 📝**NOTE:** Using **WinBlur on Controls** is currently most likely not going to work, so this mainly just supports **Forms** right now.
Expand Down

0 comments on commit 8e786da

Please sign in to comment.