mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-17 23:38:47 +08:00
[NOT READY]: unnecessary list style combo scrollbar / radio list becomes check list
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
|
||||
void GuiMain()
|
||||
{
|
||||
GuiWindow* window = g::NewWindow();
|
||||
auto window = new GuiWindow(theme::ThemeName::Window);
|
||||
window->SetText(L"Hello, world!");
|
||||
window->SetClientSize(Size(480, 320));
|
||||
window->GetBoundsComposition()->SetPreferredMinSize(Size(480, 320));
|
||||
window->MoveToScreenCenter();
|
||||
|
||||
GuiControl* label = g::NewLabel();
|
||||
auto label = new GuiLabel(theme::ThemeName::Label);
|
||||
label->SetText(L"Welcome to GacUI Library!");
|
||||
{
|
||||
FontProperties font;
|
||||
|
||||
Binary file not shown.
@@ -17,15 +17,13 @@ using presentation::theme::*;
|
||||
|
||||
func CreateMainWindow() : Window*
|
||||
{
|
||||
var theme = ITheme::GetCurrentTheme();
|
||||
|
||||
var window = new Window*(theme.CreateWindowStyle());
|
||||
var window = new Window*(ThemeName::Window);
|
||||
window.Text = "Hello, world!";
|
||||
window.ClientSize = {x:480 y:320};
|
||||
window.BoundsComposition.PreferredMinSize = {x:480 y:320};
|
||||
window.MoveToScreenCenter();
|
||||
|
||||
var label = new Label*(theme.CreateLabelStyle());
|
||||
var label = new Label*(ThemeName::Label);
|
||||
label.Text = "Welcom to GacUI Library!";
|
||||
label.Font = {fontFamily:"Segoe UI" size:32};
|
||||
window.AddChild(label);
|
||||
|
||||
Reference in New Issue
Block a user