diff --git a/examples/example1/main.d b/examples/example1/main.d index 8d0713f5..81837325 100644 --- a/examples/example1/main.d +++ b/examples/example1/main.d @@ -41,7 +41,7 @@ extern (C) int UIAppMain(string[] args) { // create window Window window = Platform.instance().createWindow("My Window", null); - static if (false) { + static if (true) { LinearLayout layout = new LinearLayout(); layout.addChild((new TextWidget()).textColor(0x00802000).text("Text widget 0")); layout.addChild((new TextWidget()).textColor(0x40FF4000).text("Text widget")); diff --git a/src/dlangui/platforms/windows/winapp.d b/src/dlangui/platforms/windows/winapp.d index 4741d1cf..4e277a5d 100644 --- a/src/dlangui/platforms/windows/winapp.d +++ b/src/dlangui/platforms/windows/winapp.d @@ -599,6 +599,8 @@ int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int FontManager.instance = fontMan; } + currentTheme = createDefaultTheme(); + version (USE_OPENGL) { import derelict.opengl3.gl3; DerelictGL3.load();