func transactions(theme gxui.Theme) gxui.Control { layout := theme.CreateLinearLayout() font := theme.DefaultFont() label := theme.CreateLabel() label.SetFont(font) label.SetText("Transactions") layout.AddChild(label) return layout }
func receive(theme gxui.Theme) gxui.Control { layout := theme.CreateLinearLayout() font := theme.DefaultFont() label := theme.CreateLabel() label.SetFont(font) label.SetText("receive") layout.AddChild(label) return layout }
func overview(theme gxui.Theme) gxui.Control { layout := theme.CreateLinearLayout() layout.SetPadding(math.ZeroSpacing) layout.SetMargin(math.ZeroSpacing) layout.SetSize(math.Size{W: 400, H: 400}) font := theme.DefaultFont() label := theme.CreateLabel() label.SetFont(font) label.SetText("Overview") layout.AddChild(label) textBox := theme.CreateTextBox() textBox.SetFont(font) textBox.SetText("") textBox.SetDesiredWidth(800) button := theme.CreateButton() button.SetHorizontalAlignment(gxui.AlignCenter) button.SetText("Test") button.OnClick(func(gxui.MouseEvent) { test() }) layout.AddChild(button) button2 := theme.CreateButton() button2.SetHorizontalAlignment(gxui.AlignCenter) button2.SetText("GetAddresses") button2.OnClick(func(gxui.MouseEvent) { balances := getAddressesString() textBox.SetText(balances) }) layout.AddChild(button2) button3 := theme.CreateButton() button3.SetHorizontalAlignment(gxui.AlignCenter) button3.SetText("GetBalances") button3.OnClick(func(gxui.MouseEvent) { balances := getBalancesString() textBox.SetText(balances) }) layout.AddChild(button3) layout.AddChild(textBox) return layout }