KavyBodarya.GlassMorphism
1.0.1
dotnet add package KavyBodarya.GlassMorphism --version 1.0.1
NuGet\Install-Package KavyBodarya.GlassMorphism -Version 1.0.1
<PackageReference Include="KavyBodarya.GlassMorphism" Version="1.0.1" />
<PackageVersion Include="KavyBodarya.GlassMorphism" Version="1.0.1" />
<PackageReference Include="KavyBodarya.GlassMorphism" />
paket add KavyBodarya.GlassMorphism --version 1.0.1
#r "nuget: KavyBodarya.GlassMorphism, 1.0.1"
#:package KavyBodarya.GlassMorphism@1.0.1
#addin nuget:?package=KavyBodarya.GlassMorphism&version=1.0.1
#tool nuget:?package=KavyBodarya.GlassMorphism&version=1.0.1
π Welcome to the Magic Dragon Glass Library! π Hey there, friend! Do you want to turn your boring, flat buttons into shiny, magical pieces of glass? You've come to the right place! With this library, you can make your app look like it was made by the wizards at Apple.
Follow this guide to start your dragon-glass adventure!
π How to Set Up Your Magic Before we can use the glass, we have to tell our app where the dragon lives. Put this "secret spell" at the very top of your MainWindow.xaml file:
xmlns:glass="clr-namespace:GlassMorphism;assembly=GlassMorphism"
β¨ The Magic Words (Syntax) To make a button turn into glass, you only need to add one special tag inside your button code!
Turn on the Glass πͺ Add glass:GlassTheme.Enable="True". Poof! Your button is now a shiny glass pill!
Change the Color π¨ Want blue glass? Red glass? Just use the Background tag.
Note: Use "8 numbers" to keep it see-through. The first two (like 80) are the "ghost power" (transparency).
- Make it "Vintage" (Old & Dusty) π°οΈ Want your glass to look like it's from a dragon's cave? Use glass:GlassTheme.Vintage="0.5".
0.1 is a little dusty.
0.8 is very old and dark on the edges!
π Fun Examples to Try! Here are some cool buttons you can copy and paste into your app to see the magic:
π§ The Classic Apple Look This is the standard, beautiful white glass.
<Button glass:GlassTheme.Enable="True"
Content="Classic Glass"
Width="200" Height="40" />
π΄ The "Danger" Red Glass This one uses a red tint but stays shiny!
<Button glass:GlassTheme.Enable="True"
Background="#80FF0000"
Content="Don't Touch!"
Width="200" Height="40" />
π The Ancient Dragon Glass This uses the "Vintage" power to make the edges look dark and intense.
<Button glass:GlassTheme.Enable="True"
glass:GlassTheme.Vintage="0.7"
Background="#40FFFFFF"
Content="Old Magic"
Width="200" Height="40" />
=== π Important Dragon Rules Pill Shape: Your buttons will always be "pill-shaped" (very round) because that's how dragons like them!
Text Shadow: Don't worry if your background is whiteβwe added a tiny "shadow cape" to your text so you can always read it.
Clicky Feel: When you press the button, it actually "sinks" down into the screen. Try it!
Now go build something magical! π
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.17763 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows10.0.17763
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.