mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
make sequencer use up all space available
This commit is contained in:
parent
bb43bf61a8
commit
de402eaece
@ -15,12 +15,9 @@ import (
|
|||||||
|
|
||||||
const patternCellHeight = 16
|
const patternCellHeight = 16
|
||||||
const patternCellWidth = 16
|
const patternCellWidth = 16
|
||||||
const patternVisibleTracks = 8
|
|
||||||
const patternRowMarkerWidth = 30
|
const patternRowMarkerWidth = 30
|
||||||
|
|
||||||
func (t *Tracker) layoutPatterns(gtx C) D {
|
func (t *Tracker) layoutPatterns(gtx C) D {
|
||||||
gtx.Constraints.Min.X = patternCellWidth*patternVisibleTracks + patternRowMarkerWidth
|
|
||||||
gtx.Constraints.Max.X = patternCellWidth*patternVisibleTracks + patternRowMarkerWidth
|
|
||||||
defer op.Save(gtx.Ops).Load()
|
defer op.Save(gtx.Ops).Load()
|
||||||
clip.Rect{Max: gtx.Constraints.Max}.Add(gtx.Ops)
|
clip.Rect{Max: gtx.Constraints.Max}.Add(gtx.Ops)
|
||||||
paint.FillShape(gtx.Ops, patternSurfaceColor, clip.Rect{Max: image.Pt(gtx.Constraints.Max.X, gtx.Constraints.Max.Y)}.Op())
|
paint.FillShape(gtx.Ops, patternSurfaceColor, clip.Rect{Max: image.Pt(gtx.Constraints.Max.X, gtx.Constraints.Max.Y)}.Op())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user