Skip to content

Commit

Permalink
add CSS ID to math result label #134
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Oct 25, 2024
1 parent e7fafeb commit b4b7d34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uicomponents.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,10 +617,11 @@ func setUpOperationResultWindow(operation string, result string) {
vBox, _ := gtk.BoxNew(gtk.ORIENTATION_HORIZONTAL, 5)
outerVBox.PackStart(vBox, true, true, 6)
lbl, _ := gtk.LabelNew(fmt.Sprintf("%s = %s", operation, result))
lbl.SetProperty("name", "math-label")
vBox.PackStart(lbl, true, true, 12)

mRefProvider, _ := gtk.CssProviderNew()
css := "window { background-color: rgba (0, 0, 0, 255); color: #fff; font-weight: bold; border: solid 1px grey; border-radius: 5px}"
css := "window { background-color: rgba (0, 0, 0, 255); color: #fff; border: solid 1px grey; border-radius: 5px}"
err = mRefProvider.LoadFromData(css)
if err != nil {
log.Warn(err)
Expand Down

0 comments on commit b4b7d34

Please sign in to comment.