diff options
| author | Jeff Carr <[email protected]> | 2023-12-16 06:57:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-16 06:57:39 -0600 |
| commit | 87ab9a958d9eb9f4db35d5c9f9ce923df3132dad (patch) | |
| tree | fd3ee29d828e9e69175a6ca04fec6ae0fe60fcc0 /examples/cloudflare | |
| parent | dcce32583387be7fc4f6cd8c8dea62fd7dc42ecf (diff) | |
correct line hight
dump non-working size rectangle code
somehow works better
better dropdown menu debugging
minor fixes to common.go
more common code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'examples/cloudflare')
| -rw-r--r-- | examples/cloudflare/main.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/cloudflare/main.go b/examples/cloudflare/main.go index badf97a..4e72668 100644 --- a/examples/cloudflare/main.go +++ b/examples/cloudflare/main.go @@ -88,11 +88,11 @@ func makeConfigTab(window *gui.Node) { grid := g1.NewGrid("credsGrid", 2, 4) // width = 2 grid.NewLabel("Auth Key") - aw := grid.NewEntryLine(os.Getenv("CLOUDFLARE_AUTHKEY")) + aw := grid.NewEntryLine("CLOUDFLARE_AUTHKEY") aw.SetText(os.Getenv("CLOUDFLARE_AUTHKEY")) grid.NewLabel("Email") - ew := grid.NewEntryLine(os.Getenv("CLOUDFLARE_EMAIL")) + ew := grid.NewEntryLine("CLOUDFLARE_EMAIL") ew.SetText(os.Getenv("CLOUDFLARE_EMAIL")) var url string = "https://api.cloudflare.com/client/v4/zones/" @@ -144,16 +144,16 @@ func showCloudflareCredentials(box *gui.Node) { grid := box.NewGrid("credsGrid", 2, 4) // width = 2 grid.NewLabel("Domain") - domainWidget = grid.NewEntryLine(os.Getenv("CLOUDFLARE_DOMAIN")) + domainWidget = grid.NewEntryLine("CLOUDFLARE_DOMAIN") grid.NewLabel("Zone ID") - zoneWidget = grid.NewEntryLine(os.Getenv("CLOUDFLARE_ZONEID")) + zoneWidget = grid.NewEntryLine("CLOUDFLARE_ZONEID") grid.NewLabel("Auth Key") - authWidget = grid.NewEntryLine(os.Getenv("CLOUDFLARE_AUTHKEY")) + authWidget = grid.NewEntryLine("CLOUDFLARE_AUTHKEY") grid.NewLabel("Email") - emailWidget = grid.NewEntryLine(os.Getenv("CLOUDFLARE_EMAIL")) + emailWidget = grid.NewEntryLine("CLOUDFLARE_EMAIL") var url string = "https://api.cloudflare.com/client/v4/zones/" grid.NewLabel("Cloudflare API") |
