Group DVD modules and add responsive menu
This commit is contained in:
parent
ca95f7ffca
commit
3cc2124a10
|
|
@ -57,6 +57,12 @@ func HandleRip(files []string) {
|
||||||
fmt.Println("rip", files)
|
fmt.Println("rip", files)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HandleBluRay handles the Blu-Ray authoring module (placeholder)
|
||||||
|
func HandleBluRay(files []string) {
|
||||||
|
logging.Debug(logging.CatModule, "bluray handler invoked with %v", files)
|
||||||
|
fmt.Println("bluray", files)
|
||||||
|
}
|
||||||
|
|
||||||
// HandleSubtitles handles the subtitles module (placeholder)
|
// HandleSubtitles handles the subtitles module (placeholder)
|
||||||
func HandleSubtitles(files []string) {
|
func HandleSubtitles(files []string) {
|
||||||
logging.Debug(logging.CatModule, "subtitles handler invoked with %v", files)
|
logging.Debug(logging.CatModule, "subtitles handler invoked with %v", files)
|
||||||
|
|
|
||||||
|
|
@ -112,9 +112,10 @@ func BuildMainMenu(modules []ModuleInfo, onModuleClick func(string), onModuleDro
|
||||||
catLabel := canvas.NewText(cat, textColor)
|
catLabel := canvas.NewText(cat, textColor)
|
||||||
catLabel.TextSize = 12
|
catLabel.TextSize = 12
|
||||||
catLabel.TextStyle = fyne.TextStyle{Bold: true}
|
catLabel.TextStyle = fyne.TextStyle{Bold: true}
|
||||||
|
tileSize := fyne.NewSize(170, 75)
|
||||||
sections = append(sections,
|
sections = append(sections,
|
||||||
catLabel,
|
catLabel,
|
||||||
container.NewGridWithColumns(3, categorized[cat]...),
|
container.NewGridWrap(tileSize, categorized[cat]...),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
5
main.go
5
main.go
|
|
@ -86,8 +86,9 @@ var (
|
||||||
{"filters", "Filters", utils.MustHex("#44FF88"), "Convert", modules.HandleFilters}, // Green
|
{"filters", "Filters", utils.MustHex("#44FF88"), "Convert", modules.HandleFilters}, // Green
|
||||||
{"upscale", "Upscale", utils.MustHex("#AAFF44"), "Advanced", modules.HandleUpscale}, // Yellow-Green
|
{"upscale", "Upscale", utils.MustHex("#AAFF44"), "Advanced", modules.HandleUpscale}, // Yellow-Green
|
||||||
{"audio", "Audio", utils.MustHex("#FFD744"), "Convert", modules.HandleAudio}, // Yellow
|
{"audio", "Audio", utils.MustHex("#FFD744"), "Convert", modules.HandleAudio}, // Yellow
|
||||||
{"author", "Author", utils.MustHex("#FFAA44"), "Convert", modules.HandleAuthor}, // Orange
|
{"author", "Author", utils.MustHex("#FFAA44"), "DVD", modules.HandleAuthor}, // Orange
|
||||||
{"rip", "Rip", utils.MustHex("#FF9944"), "Convert", modules.HandleRip}, // Orange
|
{"rip", "Rip", utils.MustHex("#FF9944"), "DVD", modules.HandleRip}, // Orange
|
||||||
|
{"bluray", "Blu-Ray", utils.MustHex("#4D7CFE"), "Blu-Ray", modules.HandleBluRay}, // Blue
|
||||||
{"subtitles", "Subtitles", utils.MustHex("#44A6FF"), "Convert", modules.HandleSubtitles}, // Azure
|
{"subtitles", "Subtitles", utils.MustHex("#44A6FF"), "Convert", modules.HandleSubtitles}, // Azure
|
||||||
{"thumb", "Thumb", utils.MustHex("#FF8844"), "Screenshots", modules.HandleThumb}, // Orange
|
{"thumb", "Thumb", utils.MustHex("#FF8844"), "Screenshots", modules.HandleThumb}, // Orange
|
||||||
{"compare", "Compare", utils.MustHex("#FF44AA"), "Inspect", modules.HandleCompare}, // Pink
|
{"compare", "Compare", utils.MustHex("#FF44AA"), "Inspect", modules.HandleCompare}, // Pink
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user