feat(ui): Display codec badges inline with dropdowns
- Changed badge layout from vertical stacking to horizontal inline display - Badges now appear next to dropdowns using HBox containers - Applied to format, video codec, and audio codec selections - Added assets/mockup/ to .gitignore for design references 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
1934ed0d5e
commit
15537ba73a
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -5,6 +5,9 @@ logs/
|
||||||
.cache/
|
.cache/
|
||||||
VideoTools
|
VideoTools
|
||||||
|
|
||||||
|
# Design mockups and assets
|
||||||
|
assets/mockup/
|
||||||
|
|
||||||
# Windows build artifacts
|
# Windows build artifacts
|
||||||
VideoTools.exe
|
VideoTools.exe
|
||||||
ffmpeg.exe
|
ffmpeg.exe
|
||||||
|
|
|
||||||
12
main.go
12
main.go
|
|
@ -8240,8 +8240,7 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
simpleOptions := container.NewVBox(
|
simpleOptions := container.NewVBox(
|
||||||
widget.NewLabelWithStyle("═══ OUTPUT ═══", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("═══ OUTPUT ═══", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
|
||||||
widget.NewLabelWithStyle("Format", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("Format", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
||||||
formatSelect,
|
container.NewHBox(formatSelect, formatBadgeContainer),
|
||||||
formatBadgeContainer,
|
|
||||||
chapterWarningLabel, // Warning when converting chapters to DVD
|
chapterWarningLabel, // Warning when converting chapters to DVD
|
||||||
preserveChaptersCheck,
|
preserveChaptersCheck,
|
||||||
dvdAspectBox, // DVD options appear here when DVD format selected
|
dvdAspectBox, // DVD options appear here when DVD format selected
|
||||||
|
|
@ -8265,8 +8264,7 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
advancedVideoEncodingBlock = container.NewVBox(
|
advancedVideoEncodingBlock = container.NewVBox(
|
||||||
widget.NewLabelWithStyle("═══ VIDEO ENCODING ═══", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("═══ VIDEO ENCODING ═══", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
|
||||||
widget.NewLabelWithStyle("Video Codec", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("Video Codec", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
||||||
videoCodecSelect,
|
container.NewHBox(videoCodecSelect, videoCodecBadgeContainer),
|
||||||
videoCodecBadgeContainer,
|
|
||||||
widget.NewLabelWithStyle("Encoder Preset (speed vs quality)", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("Encoder Preset (speed vs quality)", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
||||||
encoderPresetSelect,
|
encoderPresetSelect,
|
||||||
encoderPresetHintContainer,
|
encoderPresetHintContainer,
|
||||||
|
|
@ -8294,8 +8292,7 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
audioEncodingSection = container.NewVBox(
|
audioEncodingSection = container.NewVBox(
|
||||||
widget.NewLabelWithStyle("═══ AUDIO ENCODING ═══", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("═══ AUDIO ENCODING ═══", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
|
||||||
widget.NewLabelWithStyle("Audio Codec", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("Audio Codec", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
||||||
audioCodecSelect,
|
container.NewHBox(audioCodecSelect, audioCodecBadgeContainer),
|
||||||
audioCodecBadgeContainer,
|
|
||||||
widget.NewLabelWithStyle("Audio Bitrate", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("Audio Bitrate", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
||||||
audioBitrateSelect,
|
audioBitrateSelect,
|
||||||
widget.NewLabelWithStyle("Audio Channels", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("Audio Channels", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
||||||
|
|
@ -8305,8 +8302,7 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
advancedOptions := container.NewVBox(
|
advancedOptions := container.NewVBox(
|
||||||
widget.NewLabelWithStyle("═══ OUTPUT ═══", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("═══ OUTPUT ═══", fyne.TextAlignCenter, fyne.TextStyle{Bold: true}),
|
||||||
widget.NewLabelWithStyle("Format", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
widget.NewLabelWithStyle("Format", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
|
||||||
formatSelect,
|
container.NewHBox(formatSelect, formatBadgeContainer),
|
||||||
formatBadgeContainer,
|
|
||||||
chapterWarningLabel, // Warning when converting chapters to DVD
|
chapterWarningLabel, // Warning when converting chapters to DVD
|
||||||
preserveChaptersCheck,
|
preserveChaptersCheck,
|
||||||
dvdAspectBox, // DVD options appear here when DVD format selected
|
dvdAspectBox, // DVD options appear here when DVD format selected
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user