Add stats bar to filters and upscale views
This commit is contained in:
parent
b04fa5bd5e
commit
7df1246b0b
6
main.go
6
main.go
|
|
@ -10763,6 +10763,7 @@ func buildFiltersView(state *appState) fyne.CanvasObject {
|
||||||
|
|
||||||
// Top bar with module color
|
// Top bar with module color
|
||||||
topBar := ui.TintedBar(filtersColor, container.NewHBox(backBtn, layout.NewSpacer(), queueBtn))
|
topBar := ui.TintedBar(filtersColor, container.NewHBox(backBtn, layout.NewSpacer(), queueBtn))
|
||||||
|
bottomBar := ui.TintedBar(filtersColor, container.NewHBox(state.statsBar, layout.NewSpacer()))
|
||||||
|
|
||||||
// Instructions
|
// Instructions
|
||||||
instructions := widget.NewLabel("Apply filters and color corrections to your video. Preview changes in real-time.")
|
instructions := widget.NewLabel("Apply filters and color corrections to your video. Preview changes in real-time.")
|
||||||
|
|
@ -10910,7 +10911,7 @@ func buildFiltersView(state *appState) fyne.CanvasObject {
|
||||||
|
|
||||||
content := container.NewPadded(mainContent)
|
content := container.NewPadded(mainContent)
|
||||||
|
|
||||||
return container.NewBorder(topBar, nil, nil, nil, content)
|
return container.NewBorder(topBar, bottomBar, nil, nil, content)
|
||||||
}
|
}
|
||||||
|
|
||||||
// buildUpscaleView creates the Upscale module UI
|
// buildUpscaleView creates the Upscale module UI
|
||||||
|
|
@ -10932,6 +10933,7 @@ func buildUpscaleView(state *appState) fyne.CanvasObject {
|
||||||
|
|
||||||
// Top bar with module color
|
// Top bar with module color
|
||||||
topBar := ui.TintedBar(upscaleColor, container.NewHBox(backBtn, layout.NewSpacer(), queueBtn))
|
topBar := ui.TintedBar(upscaleColor, container.NewHBox(backBtn, layout.NewSpacer(), queueBtn))
|
||||||
|
bottomBar := ui.TintedBar(upscaleColor, container.NewHBox(state.statsBar, layout.NewSpacer()))
|
||||||
|
|
||||||
// Instructions
|
// Instructions
|
||||||
instructions := widget.NewLabel("Upscale your video to higher resolution using traditional or AI-powered methods.")
|
instructions := widget.NewLabel("Upscale your video to higher resolution using traditional or AI-powered methods.")
|
||||||
|
|
@ -11224,7 +11226,7 @@ func buildUpscaleView(state *appState) fyne.CanvasObject {
|
||||||
|
|
||||||
content := container.NewPadded(mainContent)
|
content := container.NewPadded(mainContent)
|
||||||
|
|
||||||
return container.NewBorder(topBar, nil, nil, nil, content)
|
return container.NewBorder(topBar, bottomBar, nil, nil, content)
|
||||||
}
|
}
|
||||||
|
|
||||||
// checkAIUpscaleAvailable checks if Real-ESRGAN is available on the system
|
// checkAIUpscaleAvailable checks if Real-ESRGAN is available on the system
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user