Corrected a bug in the album name fetching and centered the UI
parent
4d27e9dea0
commit
02e8785a20
|
@ -18,7 +18,7 @@ Public Sub Timer1_Timer()
|
|||
songArtist = Replace$(songArtist, "\n", "")
|
||||
|
||||
'Getting the album name
|
||||
Shell "dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | sed -n '/album/{n;p}' | cut -d '\"' -f 2" To songAlbum
|
||||
Shell "dbus-send --print-reply --session --dest=org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata' | sed -n '/album/{n;p}' | cut -d '\"' -f 2 | sed '2d'" To songAlbum
|
||||
songAlbum = Replace$(songAlbum, "\n", "")
|
||||
|
||||
'Getting the year
|
||||
|
|
|
@ -1,31 +1,33 @@
|
|||
# Gambas Form File 3.0
|
||||
|
||||
{ Form Form
|
||||
MoveScaled(0,0,148,89)
|
||||
MoveScaled(0,0,177,89)
|
||||
Background = Color.Black
|
||||
FullScreen = True
|
||||
Arrangement = Arrange.Fill
|
||||
Centered = True
|
||||
{ MainPanel Panel
|
||||
MoveScaled(17.5714,15.5714,112.8571,57.8571)
|
||||
{ ArtistLabel Label
|
||||
MoveScaled(0.4286,51,112,6)
|
||||
Font = Font["+2"]
|
||||
Alignment = Align.Center
|
||||
Text = ("No artist · No album (No year)")
|
||||
MoveScaled(0,16,177,58)
|
||||
{ CoverPic PictureBox
|
||||
MoveScaled(70.7143,0,36.5714,36.5714)
|
||||
Picture = Picture.Load("icon:/256/audio")
|
||||
Stretch = True
|
||||
}
|
||||
{ TitleLabel Label
|
||||
MoveScaled(3.4286,40,106,10)
|
||||
MoveScaled(0,40,178,10)
|
||||
Font = Font["Bold,+6"]
|
||||
Alignment = Align.Center
|
||||
Text = ("No title")
|
||||
}
|
||||
{ CoverPic PictureBox
|
||||
MoveScaled(38.1429,0,36.5714,36.5714)
|
||||
Picture = Picture.Load("icon:/256/audio")
|
||||
Stretch = True
|
||||
{ ArtistLabel Label
|
||||
MoveScaled(-3,51,184,6)
|
||||
Font = Font["+2"]
|
||||
Alignment = Align.Center
|
||||
Text = ("No artist · No album (No year)")
|
||||
}
|
||||
}
|
||||
{ Timer1 #Timer
|
||||
#MoveScaled(139,2)
|
||||
#MoveScaled(1,1)
|
||||
Delay = 1
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue