summaryrefslogtreecommitdiffstatshomepage
path: root/tabpage.go
diff options
context:
space:
mode:
Diffstat (limited to 'tabpage.go')
-rw-r--r--tabpage.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/tabpage.go b/tabpage.go
index c4e21f21..0b10d35e 100644
--- a/tabpage.go
+++ b/tabpage.go
@@ -24,6 +24,7 @@ func init() {
type TabPage struct {
ContainerBase
+ titleFont *Font
image *Bitmap
title string
tabWidget *TabWidget
@@ -120,6 +121,18 @@ func (tp *TabPage) Font() *Font {
return defaultFont
}
+func (tp *TabPage) TitleFont() *Font {
+ if tp.titleFont == nil {
+ return tp.Font()
+ }
+
+ return tp.titleFont
+}
+
+func (tp *TabPage) SetTitleFont(font *Font) {
+ tp.titleFont = font
+}
+
func (tp *TabPage) Image() *Bitmap {
return tp.image
}