Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f8d18caf5d | |||
| 9b45072814 | |||
| cb2f0f04db | |||
| ca7bb2fe80 | |||
| 84312076d0 | |||
| b256d45a3c |
14 changed files with 35 additions and 35 deletions
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module suruatoel.xyz/mcg
|
||||
module suruatoel.xyz/covergrid
|
||||
|
||||
go 1.25.0
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"suruatoel.xyz/mcg/internal/common"
|
||||
"suruatoel.xyz/covergrid/internal/common"
|
||||
)
|
||||
|
||||
type QueueItem struct {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"suruatoel.xyz/mcg/internal/i18n"
|
||||
"suruatoel.xyz/covergrid/internal/i18n"
|
||||
)
|
||||
|
||||
type Album struct {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import (
|
|||
|
||||
"github.com/diamondburned/gotk4-adwaita/pkg/adw"
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/mcg/internal/common"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
"suruatoel.xyz/covergrid/internal/common"
|
||||
)
|
||||
|
||||
type albumHeaderbar struct {
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ import (
|
|||
"github.com/diamondburned/gotk4/pkg/gio/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/glib/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/mcg/internal/client"
|
||||
"suruatoel.xyz/mcg/internal/i18n"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
"suruatoel.xyz/covergrid/internal/client"
|
||||
"suruatoel.xyz/covergrid/internal/i18n"
|
||||
)
|
||||
|
||||
type Application struct {
|
||||
|
|
@ -24,7 +24,7 @@ type Application struct {
|
|||
|
||||
func NewApplication() *Application {
|
||||
app := Application{
|
||||
Application: gtk.NewApplication("xyz.suruatoel.mcg", gio.ApplicationFlagsNone),
|
||||
Application: gtk.NewApplication("xyz.suruatoel.covergrid", gio.ApplicationFlagsNone),
|
||||
}
|
||||
app.ConnectStartup(app.onStartup)
|
||||
app.ConnectActivate(app.onActivate)
|
||||
|
|
@ -102,13 +102,13 @@ func (a *Application) showAboutDialog() {
|
|||
|
||||
func (a *Application) newAboutDialog() *adw.AboutDialog {
|
||||
dialog := adw.NewAboutDialog()
|
||||
dialog.SetApplicationName("mcg")
|
||||
dialog.SetApplicationName("CoverGrid")
|
||||
dialog.SetApplicationIcon("xyz.suruatoel.mcg")
|
||||
dialog.SetVersion(a.Version())
|
||||
dialog.SetComments(i18n.T("mcg is a client for the Music Player Daemon, focusing on albums instead of single tracks."))
|
||||
dialog.SetWebsite("https://www.suruatoel.xyz/codes/mcg")
|
||||
dialog.SetComments(i18n.T("CoverGrid is a client for the Music Player Daemon, focusing on albums instead of single tracks."))
|
||||
dialog.SetWebsite("https://www.suruatoel.xyz/codes/covergrid")
|
||||
dialog.SetLicenseType(gtk.LicenseGPL30)
|
||||
dialog.SetIssueURL("https://git.suruatoel.xyz/coderkun/mcg")
|
||||
dialog.SetIssueURL("https://git.suruatoel.xyz/coderkun/covergrid")
|
||||
|
||||
return dialog
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package gui
|
|||
import (
|
||||
"github.com/diamondburned/gotk4-adwaita/pkg/adw"
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
)
|
||||
|
||||
type connectionPanel struct {
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import (
|
|||
"github.com/diamondburned/gotk4/pkg/core/gerror"
|
||||
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/glib/v2"
|
||||
"suruatoel.xyz/mcg/internal/client"
|
||||
"suruatoel.xyz/mcg/internal/common"
|
||||
"suruatoel.xyz/covergrid/internal/client"
|
||||
"suruatoel.xyz/covergrid/internal/common"
|
||||
)
|
||||
|
||||
type CoverLoader struct {
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ import (
|
|||
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/glib/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/mcg/internal/client"
|
||||
"suruatoel.xyz/mcg/internal/common"
|
||||
"suruatoel.xyz/mcg/internal/i18n"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
"suruatoel.xyz/covergrid/internal/client"
|
||||
"suruatoel.xyz/covergrid/internal/common"
|
||||
"suruatoel.xyz/covergrid/internal/i18n"
|
||||
)
|
||||
|
||||
type coverPanel struct {
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ import (
|
|||
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/glib/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/mcg/internal/client"
|
||||
"suruatoel.xyz/mcg/internal/common"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
"suruatoel.xyz/covergrid/internal/client"
|
||||
"suruatoel.xyz/covergrid/internal/common"
|
||||
)
|
||||
|
||||
type libraryPanel struct {
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ import (
|
|||
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/glib/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/mcg/internal/client"
|
||||
"suruatoel.xyz/mcg/internal/common"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
"suruatoel.xyz/covergrid/internal/client"
|
||||
"suruatoel.xyz/covergrid/internal/common"
|
||||
)
|
||||
|
||||
type playlistPanel struct {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import (
|
|||
|
||||
"github.com/diamondburned/gotk4-adwaita/pkg/adw"
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/mcg/internal/common"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
"suruatoel.xyz/covergrid/internal/common"
|
||||
)
|
||||
|
||||
type serverPanel struct {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package gui
|
|||
|
||||
import (
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
)
|
||||
|
||||
type shortcutsDialog struct {
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ import (
|
|||
"github.com/diamondburned/gotk4/pkg/gio/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/glib/v2"
|
||||
"github.com/diamondburned/gotk4/pkg/gtk/v4"
|
||||
"suruatoel.xyz/mcg/data"
|
||||
"suruatoel.xyz/mcg/internal/client"
|
||||
"suruatoel.xyz/mcg/internal/common"
|
||||
"suruatoel.xyz/mcg/internal/i18n"
|
||||
"suruatoel.xyz/covergrid/data"
|
||||
"suruatoel.xyz/covergrid/internal/client"
|
||||
"suruatoel.xyz/covergrid/internal/common"
|
||||
"suruatoel.xyz/covergrid/internal/i18n"
|
||||
)
|
||||
|
||||
type Panel interface {
|
||||
|
|
|
|||
4
main.go
4
main.go
|
|
@ -3,8 +3,8 @@ package main
|
|||
import (
|
||||
"os"
|
||||
|
||||
"suruatoel.xyz/mcg/internal/gui"
|
||||
"suruatoel.xyz/mcg/internal/i18n"
|
||||
"suruatoel.xyz/covergrid/internal/gui"
|
||||
"suruatoel.xyz/covergrid/internal/i18n"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue