git-svn-id: svn://ultimatepp.org/upp/trunk@12917 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-03-29 12:43:57 +00:00
parent 51557b7384
commit cda623d89c

View file

@ -8,12 +8,12 @@ struct ColorTest : TopWindow {
void Paint(Draw& w) override {
Size sz = GetSize();
w.DrawRect(0, 0, sz.cx, sz.cy / 2, ~color);
w.DrawRect(0, sz.cy / 2, sz.cx, sz.cy / 2 + 1, DarkTheme(~color));
w.DrawRect(0, sz.cy / 2, sz.cx, sz.cy / 2 + 1, DarkTheme((Color)~color));
}
ColorTest() {
Add(color.LeftPosZ(0, 300).TopPosZ(0, 300));
color << [=] { Refresh(); Title(AsString(DarkTheme(~color))); };
color << [=] { Refresh(); Title(AsString(DarkTheme((Color)~color))); };
}
};