Got rid of the "Invalid" state parameter
It was a bit too niche to be a state parameter
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.5 KiB |
@@ -199,12 +199,10 @@ func (Default) Pattern (id tomo.Pattern, state tomo.State, c tomo.Case) artist.P
|
||||
offset := 0; switch {
|
||||
case state.Disabled: offset = 1
|
||||
case state.Pressed && state.On: offset = 4
|
||||
case state.Focused && state.On: offset = 7
|
||||
case state.Invalid && state.On: offset = 8
|
||||
case state.Focused && state.On: offset = 6
|
||||
case state.On: offset = 2
|
||||
case state.Pressed: offset = 3
|
||||
case state.Focused: offset = 5
|
||||
case state.Invalid: offset = 6
|
||||
}
|
||||
|
||||
switch id {
|
||||
|
||||
Reference in New Issue
Block a user