Skip to content

Commit

Permalink
Add ui element to show player has custom notes set.
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Mar 7, 2023
1 parent 21f8a4a commit 0c4ce79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions internal/ui/players.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ func newPlayerWindow(app fyne.App, settings *model.Settings, showChatWindowFunc
vacLabel.Segments = []widget.RichTextSegment{
&widget.TextSegment{Text: vacMsgFull, Style: vacStyle},
}
if ps.Notes != "" {
notesStyle := stlOk
notesStyle.ColorName = theme.ColorNameWarning
vacLabel.Segments = append(vacLabel.Segments, &widget.TextSegment{Text: " [note] ", Style: notesStyle})
}
lc.Refresh()
vacLabel.Refresh()
rootContainer.Refresh()
Expand Down
8 changes: 4 additions & 4 deletions internal/ui/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ func (bdTheme) Icon(n fyne.ThemeIconName) fyne.Resource {
func (bdTheme) Size(s fyne.ThemeSizeName) float32 {
switch s {
case theme.SizeNameCaptionText:
return 11
return 10
case theme.SizeNameInlineIcon:
return 20
return 16
case theme.SizeNamePadding:
return 2
return 0
case theme.SizeNameScrollBar:
return 16
case theme.SizeNameScrollBarSmall:
return 3
case theme.SizeNameSeparatorThickness:
return 1
case theme.SizeNameText:
return 12
return 10
case theme.SizeNameInputBorder:
return 2
default:
Expand Down

0 comments on commit 0c4ce79

Please sign in to comment.