nuxui / nuxui

NuxUI is Golang GUI SDK for IOS, Android, macOS, Windows, Linux

Home Page:https://nuxui.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transparent text when typing into an Editor widget on macOS

prologic opened this issue · comments

What version of Go are you using (go version)?

$ go version
go version go1.18.2 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/Users/prologic/go/bin"
GOCACHE="/Users/prologic/Library/Caches/go-build"
GOENV="/Users/prologic/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/prologic/go/pkg/mod"
GONOPROXY="github.com/aucloud"
GONOSUMDB="github.com/aucloud"
GOOS="darwin"
GOPATH="/Users/prologic/go"
GOPRIVATE="github.com/aucloud"
GOPROXY="https://goproxy.mills.io/"
GOROOT="/usr/local/Cellar/go/1.18.2/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.18.2/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/prologic/tmp/samples/widgets/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/8h/c9gl4gms3fjb0kyf7nb42ybh0000gn/T/go-build4005998222=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

$ git clone https://github.com/nuxui/samples.git
$ cd samples/widgets
$ go mod tidy
$ go build .
$ ./widgets

Then:

  1. Type some text into the Editor widget at the bottom
  2. See it expand as you type
  3. Notice the text is invisible?

See attached screenshot.

What did you expect to see?

The text I typed!

What did you see instead?

Screen Shot 2022-08-03 at 02 37 25

Similarly none of the follow work as expected:

  • Selection
  • Double tap
  • Right click

All these events seem to do nothing. Is this expected?

The ui.Editor default text color is white, set black you see it.
Basic widgets is in developing, like ui.Column, ui.Row, ui.Editor has much defect.
After supported android, I will complete these widgets

@prologic
I think it's a good idea to open a new issue and close this one.
Or change the title.