We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get an error when trying to make a style.css Style
Error Message
panic: error marshaling CSS file: line 2: expected style before semicolon goroutine 1 [running]: main.main() C:/Users/Administrator/GolandProjects/BugReport/main.go:33 +0xa8 exit status 2
main.go
package main import ( _ "embed" g "github.com/AllenDang/giu" ) //go:embed style.css var cssStyle []byte func loop() { Window := g.SingleWindow() Window.Layout( g.PopupModal("Popup Modal").Layout( g.Label("This is a popup modal"), g.Button("Close").OnClick(func() { g.CloseCurrentPopup() }), ), g.Row( g.Button("Open Popup Modal").OnClick(func() { g.OpenPopup("Popup Modal") }), ), ) } func main() { wnd := g.NewMasterWindow("Cloud - Universal", 750, 500, g.MasterWindowFlagsNotResizable) if err := g.ParseCSSStyleSheet(cssStyle); err != nil { panic(err) } wnd.Run(loop) }
style.css
main { background-color: black; }
master
Windows 11
The text was updated successfully, but these errors were encountered:
re-run go generate
edcb9e7
this fixes AllenDang#842
Successfully merging a pull request may close this issue.
What happend?
I get an error when trying to make a style.css Style
Error Message
Code example
main.go
style.css
To Reproduce
Version
master
OS
Windows 11
The text was updated successfully, but these errors were encountered: