mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-02-07 21:22:31 +08:00
29 lines
690 B
C++
29 lines
690 B
C++
#define GAC_HEADER_USE_NAMESPACE
|
|
#include <GacUI.h>
|
|
#include <Skins\DarkSkin\DarkSkin.h>
|
|
#include <Windows.h>
|
|
|
|
class DefaultSkinPlugin : public Object, public IGuiPlugin
|
|
{
|
|
public:
|
|
|
|
GUI_PLUGIN_NAME(Custom_DefaultSkinPlugin)
|
|
{
|
|
GUI_PLUGIN_DEPEND(GacGen_DarkSkinResourceLoader);
|
|
}
|
|
|
|
void Load(bool controllerUnrelatedPlugins, bool controllerRelatedPlugins)override
|
|
{
|
|
RegisterTheme(Ptr(new darkskin::Theme));
|
|
}
|
|
|
|
void Unload(bool controllerUnrelatedPlugins, bool controllerRelatedPlugins)override
|
|
{
|
|
}
|
|
};
|
|
GUI_REGISTER_PLUGIN(DefaultSkinPlugin)
|
|
|
|
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int CmdShow)
|
|
{
|
|
return SetupWindowsDirect2DRenderer();
|
|
} |