Change default aspect ratio from 16:9 to Source
Updated the convert menu to default to source aspect ratio instead of 16:9, which better preserves the original video's aspect ratio by default. Changes: - Initial state default: 16:9 → Source - Empty fallback default: 16:9 → Source - Reset button default: 16:9 → Source - Clear video default: 16:9 → Source - Updated hint label to reflect new default 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
52220e71d1
commit
35b04bfe98
10
main.go
10
main.go
|
|
@ -362,7 +362,7 @@ func runGUI() {
|
||||||
Mode: "Simple",
|
Mode: "Simple",
|
||||||
InverseTelecine: true,
|
InverseTelecine: true,
|
||||||
InverseAutoNotes: "Default smoothing for interlaced footage.",
|
InverseAutoNotes: "Default smoothing for interlaced footage.",
|
||||||
OutputAspect: "16:9",
|
OutputAspect: "Source",
|
||||||
AspectHandling: "Auto",
|
AspectHandling: "Auto",
|
||||||
},
|
},
|
||||||
player: player.New(),
|
player: player.New(),
|
||||||
|
|
@ -628,10 +628,10 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
state.convert.OutputAspect = value
|
state.convert.OutputAspect = value
|
||||||
})
|
})
|
||||||
if state.convert.OutputAspect == "" {
|
if state.convert.OutputAspect == "" {
|
||||||
state.convert.OutputAspect = "16:9"
|
state.convert.OutputAspect = "Source"
|
||||||
}
|
}
|
||||||
targetAspectSelect.SetSelected(state.convert.OutputAspect)
|
targetAspectSelect.SetSelected(state.convert.OutputAspect)
|
||||||
targetAspectHint := widget.NewLabel("Pick desired output aspect (default 16:9).")
|
targetAspectHint := widget.NewLabel("Pick desired output aspect (default Source).")
|
||||||
|
|
||||||
aspectOptions := widget.NewRadioGroup([]string{"Auto", "Letterbox", "Pillarbox", "Blur Fill"}, func(value string) {
|
aspectOptions := widget.NewRadioGroup([]string{"Auto", "Letterbox", "Pillarbox", "Blur Fill"}, func(value string) {
|
||||||
debugLog(logCatUI, "aspect handling set to %s", value)
|
debugLog(logCatUI, "aspect handling set to %s", value)
|
||||||
|
|
@ -734,7 +734,7 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
formatSelect.SetSelected("MP4 (H.264)")
|
formatSelect.SetSelected("MP4 (H.264)")
|
||||||
qualitySelect.SetSelected("Standard (CRF 23)")
|
qualitySelect.SetSelected("Standard (CRF 23)")
|
||||||
aspectOptions.SetSelected("Auto")
|
aspectOptions.SetSelected("Auto")
|
||||||
targetAspectSelect.SetSelected("16:9")
|
targetAspectSelect.SetSelected("Source")
|
||||||
updateAspectBoxVisibility()
|
updateAspectBoxVisibility()
|
||||||
debugLog(logCatUI, "convert settings reset to defaults")
|
debugLog(logCatUI, "convert settings reset to defaults")
|
||||||
})
|
})
|
||||||
|
|
@ -1747,7 +1747,7 @@ func (s *appState) clearVideo() {
|
||||||
s.convert.OutputBase = "converted"
|
s.convert.OutputBase = "converted"
|
||||||
s.convert.CoverArtPath = ""
|
s.convert.CoverArtPath = ""
|
||||||
s.convert.AspectHandling = "Auto"
|
s.convert.AspectHandling = "Auto"
|
||||||
s.convert.OutputAspect = "16:9"
|
s.convert.OutputAspect = "Source"
|
||||||
fyne.CurrentApp().Driver().DoFromGoroutine(func() {
|
fyne.CurrentApp().Driver().DoFromGoroutine(func() {
|
||||||
s.showConvertView(nil)
|
s.showConvertView(nil)
|
||||||
}, false)
|
}, false)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user