summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-29 18:48:59 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-29 18:48:59 (GMT)
commit598eab514316ed4269a9970baabe307034ffd659 (patch)
tree59d437f940bea89a782929d43b749c0d11603dca /src
parent2aa88ac7b233cf56a7c5a807152259b9193370af (diff)
make notebook look a little nicer
Diffstat (limited to 'src')
-rw-r--r--src/rhlibrary/selector_widget.go18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/rhlibrary/selector_widget.go b/src/rhlibrary/selector_widget.go
index d0aab71..c24b452 100644
--- a/src/rhlibrary/selector_widget.go
+++ b/src/rhlibrary/selector_widget.go
@@ -120,7 +120,7 @@ func addSelectorPage(nb *gtk.Notebook, page gtk.IWidget, title string) (err erro
if label, err = gtk.LabelNew(title); err != nil {
return
}
- label.SetSizeRequest(150, 15)
+ label.SetSizeRequest(150, 15) // workaround until expanding tabs works...
nb.AppendPage(page, label)
return
}
@@ -149,7 +149,7 @@ func getSelectorWidget(db *rddb.DBChan, p *player.PlayerChan) (gtk.IWidget, erro
if page, err = getPoolsSelector(p); err != nil {
return nil, err
}
- if err = addSelectorPage(nb, page, "Musicpools"); err != nil {
+ if err = addSelectorPage(nb, page, "Musikpools"); err != nil {
return nil, err
}
@@ -160,6 +160,20 @@ func getSelectorWidget(db *rddb.DBChan, p *player.PlayerChan) (gtk.IWidget, erro
return nil, err
}
+ var cp *gtk.CssProvider
+ if cp, err = gtk.CssProviderNew(); err != nil {
+ return nil, err
+ }
+ if err = cp.LoadFromData(".notebook.header { background-color: unset; }"); err != nil {
+ return nil, err
+ }
+ var sc *gtk.StyleContext
+ if sc, err = nb.GetStyleContext(); err != nil {
+ return nil, err
+ }
+ sc.AddProvider(cp, 600) // TOOD: hardcoded value
+
+ nb.SetProperty("show-border", false)
nb.SetHExpand(true)
nb.SetVExpand(true)