List relies more on the bounds insetting from theme

This commit is contained in:
2023-01-29 12:51:43 -05:00
parent 92aeb48a1f
commit 44b9a1e717
3 changed files with 14 additions and 18 deletions

View File

@@ -119,18 +119,18 @@ func InputPattern (state PatternState) (pattern artist.Pattern, inset Inset) {
// ListPattern returns a background pattern for a list of things.
func ListPattern (state PatternState) (pattern artist.Pattern, inset Inset) {
if state.Selected {
return selectedListPattern, Inset { }
return selectedListPattern, Inset { 4, 0, 4, 0 }
} else {
return listPattern, Inset { }
return listPattern, Inset { 4, 0, 4, 0 }
}
}
// ItemPattern returns a background pattern for a list item.
func ItemPattern (state PatternState) (pattern artist.Pattern, inset Inset) {
if state.On {
return selectedListEntryPattern, Inset { 1, 1, 1, 1 }
return selectedListEntryPattern, Inset { 4, 8, 4, 8 }
} else {
return listEntryPattern, Inset { 1, 1, 1, 1 }
return listEntryPattern, Inset { 4, 8, 4, 8 }
}
}