diff options
Diffstat (limited to 'tabpage.go')
-rw-r--r-- | tabpage.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 } |