Lock module splits to fixed 60-40 layout
This commit is contained in:
parent
8bc621b583
commit
7bf03dec9f
14
main.go
14
main.go
|
|
@ -3041,8 +3041,7 @@ func (s *appState) showMergeView() {
|
||||||
container.NewHBox(addQueueBtn, runNowBtn),
|
container.NewHBox(addQueueBtn, runNowBtn),
|
||||||
)
|
)
|
||||||
|
|
||||||
content := container.NewHSplit(left, right)
|
content := container.New(&fixedHSplitLayout{ratio: 0.6}, left, right)
|
||||||
content.Offset = 0.55
|
|
||||||
s.setContent(container.NewBorder(topBar, bottomBar, nil, nil, container.NewPadded(content)))
|
s.setContent(container.NewBorder(topBar, bottomBar, nil, nil, container.NewPadded(content)))
|
||||||
|
|
||||||
buildList()
|
buildList()
|
||||||
|
|
@ -7715,9 +7714,8 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
// Stack video and metadata directly so metadata sits immediately under the player.
|
// Stack video and metadata directly so metadata sits immediately under the player.
|
||||||
leftColumn := container.NewVBox(videoPanel, metaPanel)
|
leftColumn := container.NewVBox(videoPanel, metaPanel)
|
||||||
|
|
||||||
// Split: left side (video + metadata VSplit) takes 55% | right side (options) takes 45%
|
// Split: left side (video + metadata) takes 60% | right side (options) takes 40%
|
||||||
mainSplit := container.NewHSplit(leftColumn, optionsPanel)
|
mainSplit := container.New(&fixedHSplitLayout{ratio: 0.6}, leftColumn, optionsPanel)
|
||||||
mainSplit.Offset = 0.55 // Video/metadata column gets 55%, options gets 45%
|
|
||||||
|
|
||||||
// Core content now just the split; ancillary controls stack in bottomSection.
|
// Core content now just the split; ancillary controls stack in bottomSection.
|
||||||
mainContent := container.NewMax(mainSplit)
|
mainContent := container.NewMax(mainSplit)
|
||||||
|
|
@ -12885,8 +12883,7 @@ func buildThumbView(state *appState) fyne.CanvasObject {
|
||||||
settingsPanel,
|
settingsPanel,
|
||||||
)
|
)
|
||||||
|
|
||||||
mainContent := container.NewHSplit(leftColumn, rightColumn)
|
mainContent := container.New(&fixedHSplitLayout{ratio: 0.6}, leftColumn, rightColumn)
|
||||||
mainContent.Offset = 0.55 // Give more space to preview
|
|
||||||
|
|
||||||
content := container.NewBorder(
|
content := container.NewBorder(
|
||||||
container.NewVBox(instructions, widget.NewSeparator(), fileLabel, container.NewHBox(loadBtn, clearBtn)),
|
container.NewVBox(instructions, widget.NewSeparator(), fileLabel, container.NewHBox(loadBtn, clearBtn)),
|
||||||
|
|
@ -13836,11 +13833,10 @@ func buildUpscaleView(state *appState) fyne.CanvasObject {
|
||||||
// Adaptive height for small screens
|
// Adaptive height for small screens
|
||||||
settingsScroll.SetMinSize(fyne.NewSize(400, 400))
|
settingsScroll.SetMinSize(fyne.NewSize(400, 400))
|
||||||
|
|
||||||
mainContent := container.NewHSplit(
|
mainContent := container.New(&fixedHSplitLayout{ratio: 0.6},
|
||||||
container.NewVBox(leftPanel, videoContainer),
|
container.NewVBox(leftPanel, videoContainer),
|
||||||
settingsScroll,
|
settingsScroll,
|
||||||
)
|
)
|
||||||
mainContent.SetOffset(0.55) // 55% for video preview, 45% for settings
|
|
||||||
|
|
||||||
content := container.NewPadded(mainContent)
|
content := container.NewPadded(mainContent)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user