git-svn-id: svn://ultimatepp.org/upp/trunk@12634 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-12-21 07:43:52 +00:00
parent e001f2d140
commit ee532178e2
5 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,17 @@
#ifndef _DarkTheme_DarkTheme_h
#define _DarkTheme_DarkTheme_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <DarkTheme/DarkTheme.lay>
#include <CtrlCore/lay.h>
class DarkTheme : public WithDarkThemeLayout<TopWindow> {
public:
typedef DarkTheme CLASSNAME;
DarkTheme();
};
#endif

View file

@ -0,0 +1,3 @@
LAYOUT(DarkThemeLayout, 200, 100)
END_LAYOUT

View file

@ -0,0 +1,11 @@
uses
CtrlLib;
file
DarkTheme.h,
main.cpp,
DarkTheme.lay;
mainconfig
"" = "GUI";

11
upptst/DarkTheme/main.cpp Normal file
View file

@ -0,0 +1,11 @@
#include "DarkTheme.h"
DarkTheme::DarkTheme()
{
CtrlLayout(*this, "Window title");
}
GUI_APP_MAIN
{
PromptOK("{{@Y Just a test}}");
}

View file

@ -13,7 +13,7 @@ struct ColorTest : TopWindow {
ColorTest() {
Add(color.LeftPosZ(0, 300).TopPosZ(0, 300));
color << [=] { Refresh(); };
color << [=] { Refresh(); Title(AsString(DarkTheme(~color))); };
}
};