Skip to content

arshx86/Themer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Themer

A WinForm framework to style your background design with various blur/glass effects.

Themes

Take a look at background themes you can apply with Themer.

Video for All
Showcase.mp4
Acrylic

Acrylic

Aero Glass

Aero Glass

Transparent

Transparent

Applying to your Form

Grab release build, add DLL to your project.

private ThemerApplier _themer;

protected override void OnLoad(EventArgs e)
{
	_themer = new ThemerApplier(this.Handle); // create new instance
	_themer.Apply(Themes.Acrylic); // apply theme
	_themer.Apply(Themes.Disabled); // remove theme
}

Note: you can change/delete this theme any time you want. But before setting first time make sure you're setting in the OnLoad or OnPaint events of the form. Don't try to inject in constructor. You should have the form handle of form you want to theme it.

Multiple Forms

Themer supports more than one form, you can inject like above, with handle of form.

How?

We using Desktop Window Manager to interact with form's window. We don't use pen or graphics to brush form's window. With native ways, WindowCompositionAttributeData attribute are helps to interact and getting in to window. Brushing made with AccentPolicy.

Notes

The background effect of aero glass - acrylic will be changed dynamically when you change Back Color of the form. Themer won't effect your form components. It just interacts with window, so you don't need to do anything.

Contributing

Feel free to add new themes (despite this is the all themes as far as i know) and creating PR's.