Group DVD modules and add responsive menu
This commit is contained in:
parent
01af1b8cf2
commit
a7bffb63ee
|
|
@ -57,6 +57,12 @@ func HandleRip(files []string) {
|
|||
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)
|
||||
func HandleSubtitles(files []string) {
|
||||
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.TextSize = 12
|
||||
catLabel.TextStyle = fyne.TextStyle{Bold: true}
|
||||
tileSize := fyne.NewSize(170, 75)
|
||||
sections = append(sections,
|
||||
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
|
||||
{"upscale", "Upscale", utils.MustHex("#AAFF44"), "Advanced", modules.HandleUpscale}, // Yellow-Green
|
||||
{"audio", "Audio", utils.MustHex("#FFD744"), "Convert", modules.HandleAudio}, // Yellow
|
||||
{"author", "Author", utils.MustHex("#FFAA44"), "Convert", modules.HandleAuthor}, // Orange
|
||||
{"rip", "Rip", utils.MustHex("#FF9944"), "Convert", modules.HandleRip}, // Orange
|
||||
{"author", "Author", utils.MustHex("#FFAA44"), "DVD", modules.HandleAuthor}, // 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
|
||||
{"thumb", "Thumb", utils.MustHex("#FF8844"), "Screenshots", modules.HandleThumb}, // Orange
|
||||
{"compare", "Compare", utils.MustHex("#FF44AA"), "Inspect", modules.HandleCompare}, // Pink
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user