Restructure convert layout columns
This commit is contained in:
parent
282fbaaad8
commit
e81cc27ea8
25
main.go
25
main.go
|
|
@ -9910,23 +9910,14 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
snippetRow = container.NewHBox(snippetBtn, snippetOptionsBtn, layout.NewSpacer(), snippetHint)
|
snippetRow = container.NewHBox(snippetBtn, snippetOptionsBtn, layout.NewSpacer(), snippetHint)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stack options and metadata with a small gap on the right.
|
// Split left column vertically: player (top) + metadata (bottom).
|
||||||
spacerRect := canvas.NewRectangle(color.Transparent)
|
leftSplit := container.NewVSplit(videoPanel, metaPanel)
|
||||||
spacerRect.SetMinSize(fyne.NewSize(1, 10))
|
leftSplit.SetOffset(0.65)
|
||||||
spacer := container.NewMax(spacerRect)
|
|
||||||
spacer.Resize(fyne.NewSize(1, 10))
|
|
||||||
|
|
||||||
leftColumn := container.NewVBox(videoPanel)
|
// Split: left side (player + metadata) takes priority | right side (settings).
|
||||||
rightColumn := container.NewVBox(optionsPanel, spacer, metaPanel)
|
|
||||||
|
|
||||||
// Add minimal spacing (10px) between left and right panels
|
|
||||||
horizontalSpacer := canvas.NewRectangle(color.Transparent)
|
|
||||||
horizontalSpacer.SetMinSize(fyne.NewSize(10, 1))
|
|
||||||
|
|
||||||
// Split: left side (player) takes priority | right side (controls + metadata).
|
|
||||||
mainSplit := container.NewHSplit(
|
mainSplit := container.NewHSplit(
|
||||||
leftColumn,
|
leftSplit,
|
||||||
rightColumn)
|
optionsPanel)
|
||||||
mainSplit.SetOffset(0.65) // 65/35 split
|
mainSplit.SetOffset(0.65) // 65/35 split
|
||||||
|
|
||||||
// Add horizontal padding around the split (10px on each side)
|
// Add horizontal padding around the split (10px on each side)
|
||||||
|
|
@ -10657,7 +10648,9 @@ Metadata: %s`,
|
||||||
contentArea,
|
contentArea,
|
||||||
interlaceSection,
|
interlaceSection,
|
||||||
)
|
)
|
||||||
return container.NewMax(outer, container.NewPadded(body)), updateCoverDisplay
|
scroll := container.NewVScroll(body)
|
||||||
|
scroll.SetMinSize(fyne.NewSize(0, 180))
|
||||||
|
return container.NewMax(outer, container.NewPadded(scroll)), updateCoverDisplay
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildVideoPane(state *appState, min fyne.Size, src *videoSource, onCover func(string)) fyne.CanvasObject {
|
func buildVideoPane(state *appState, min fyne.Size, src *videoSource, onCover func(string)) fyne.CanvasObject {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user