DrewNaylor / UXL-Launcher

An app launcher meant to launch Microsoft Office 2010, 2013, 2016, 2019 desktop software/apps, including ones from Office 365. Not associated with Microsoft.
Apache License 2.0
7 stars 1 forks source link

Themed controls on demand #204

Closed DrewNaylor closed 3 years ago

DrewNaylor commented 3 years ago

Very basic themed controls on demand. For now this only covers buttons. To use this, simply create a new button and assign it to the return value of the themed button function, like so:

Dim AddedButton As Button = libportablethemeengine.PreThemedControls.ThemedButton

There might be a lot of work involved to make pre-themed controls as usable as the rest of the theme engine, so that'll take time. Not really in the mood to work on that right now. You can see the pre-themed controls by using the portable theme engine debugger project and clicking the "new pre-themed button" button. Changing themes then clicking this button again will add a new button with the current theme properties to the flowlayoutpanel below the button. When a theme isn't applied, the default theme properties will be applied instead.

Will have to make sure to test this against purposefully-bad themes to make sure it doesn't break. Checking the OuterXml length to see if it's 0 might not be the best way to guard against stuff not being there.

Updated copyright years for the project files involved in this pull request as well.

Fixes #203.