[Shimmer Desktop]
Type=G+
Title		= "gmusicbrowser"
DefaultFocus	= SimpleSearch
Default		= Window(size=1000x750)
Window		= hidden=VPSongPlaylist|FilterPane2
Author		= simon@shimmerproject.org
### main window containers: top bar, main and statusbar ###
VBMain		= HBTop _HPMain
HPMain		= VBLeft _VBRight
HBTop		= ABButtons _15VBPlayer 10ABToggle -5ABSettings
### top bar from left to right ###
ABButtons	= (yalign=0,yscale=0.0) HBButtons
HBButtons	= Prev Play Next(click2=NextAlbum)
VBPlayer	= 1Filler0 HBTitle HBTimeSlider
HBTitle		= _Title(expand_max=500,markup="<big><b>%t</b></big> ",tip=_"Title: %t (Track No. %n)",yalign=0.5,ellipsize=end) LockAlbum(stock="on:gmb-lock gmb-lockopen off:gmb-breadcrumb gmb-locklight") Album(tip=_"Album: %l (%Y)",expand_max=200,yalign=0.5,markup="<big> </big>%l ",showcover=0,ellipsize=end) LockArtist(stock="on:gmb-lock gmb-lockopen off:gmb-breadcrumb gmb-locklight") Artist(tip=_"Artist: %a",expand_max=300,yalign=0.5,markup="<big> </big>%a",ellipsize=end) -Stars(yalign=0.5)
HBTimeSlider	= PlayingTime(markup="%s",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) -Length(markup="$length",initsize="XX:XX",xalign=1)
ABToggle	= (yalign=0,yscale=0.0) HBToggle
HBToggle	= ToggleButton0(relief=none,size=large-toolbar,icon=gmb-view-list,widget=VPSongPlaylist,togglegroup=1,tip=_"Simple List View") ToggleButton1(relief=none,size=large-toolbar,icon=gmb-view-tree,widget=SongTree,togglegroup=1,tip=_"Songtree View") ToggleButton2(relief=none,size=large-toolbar,icon=gmb-view-mosaic,widget=FilterPane2,togglegroup=1,tip=_"Mosaic View") Fullscreen(stock=gmb-view-fullscreen,size=large-toolbar) 10Filler2 ABSearchBox
ABSearchBox	= (yalign=0) SimpleSearch(suggest=1)
ABSettings	= (yalign=0,yscale=0.0) HBSettings
HBSettings	= ExtraButtons(size=large-toolbar) BMSettings
BMSettings	= (icon=gtk-preferences,size="large-toolbar") SMLibrary LayoutItem PlayItem SeparatorMenuItem01 MenuItem34(command=OpenCustom(Equalizer),label=_"Equalizer",icon=gmb-equalizer) SeparatorMenuItem20 MenuItem14(command=OpenPref,label=_"Settings",icon="gtk-preferences") MenuItem05(command=Quit,label=_"Quit",icon="gtk-quit")
SMLibrary	= (label=_"Library") MenuItem00(command="RunPerlCode(::ChooseAddPath(1,1))",label=_"Add Music",icon="gtk-add") MenuItem32(command="RunPerlCode(::IdleScan)",label=_"Rescan Collection",icon="gtk-refresh")
### main left: artist pane and album-cover ###
VBLeft		= _VBListCover HBStatus
#VBListCover	= _NBList Cover(overlay=6x6:350x350:elementary/overlay.png,default=elementary/no-cover.svg,showcover=0) # uncomment this line to add overlay shadow
VBListCover	= _NBList 1Cover(default=elementary/no-cover.svg,showcover=0)
NBList		= (tabpos="bottom") QueueList(songtree=1,tabtitle=_"Queue (%n)",tabicon="",cols="queuenumber titleaa",colwidth="queuenumber 20 titleaa 248",showbb=1,hscrollbar=0) HBLyrics VBAlbuminfo VBArtistinfo
HBLyrics	= (tabtitle=_"Lyrics") _PluginLyrics
VBArtistinfo	= (tabtitle=_"Artist") _PluginArtistinfo
VBAlbuminfo	= (tabtitle=_"Album") _PluginAlbuminfo
HBStatus	= 3Total(noheader=1,format=short,relief=none,button=1,mode=library) -2Sort(button=1,tip=_"Right-click to toggle shuffle/random") -2Filter(button=1,tip=_"Right-click to remove filters") -2ToggleButton3(icon=gmb-picture,relief=none,size=menu,widget=Cover,tip=_"Show/Hide Cover")
### main right: list/tree/mosaic widgets ###
VBRight		= _HBSongListtree Progress
HBSongListtree	= _SongTree(cols="playandqueueandtrack title length ratingpic",colwidth="artist 124 lastplay 107 length 49 playandqueue 19 playandqueueandtrack 20 playcount 22 ratingpic 100 title 390 titleaa 397 track 21",grouping="album|artistalbum_breadcrumbs(picsize=100)|disc|discleft(width=15)",follow=1,sort="year album disc track") _VPSongPlaylist _FilterPane2(nb=3,hidebb=1,pages=album,page_album/mode=mosaic,page_album/mmarkup=1,page_album/mpicsize=96,hidetabs=1)
VPSongPlaylist	= HBFilters _HBSonglist
HBFilters	= _FilterPane3(nb=2,hidebb=1,page=genre,hidetabs=1) _FilterPane10(nb=3,hidebb=1,page=artists,page_artists/lmarkup="<b>%a</b>%Y\n<small>%x « %s</small>",hidetabs=1) _FilterPane5(nb=4,hidebb=1,page=album,page_album/lpicsize=32,page_album/lmarkup="<b>%a</b>%Y\n<small>%s « %l</small>",hidetabs=1)
HBSonglist	= _SongList(cols="playandqueue track title artist album year length playcount",sort=artist,colwidth="album 200 artist 200 file 400 lastplay 100 length 41 path 413 playandqueue 24 playcount 96 rating 80 title 270 track 21 year 31",follow=1,sort="year album disc track")
#VBMosaic	= FRToggleMosaic _VPMosaicAlbum _VPMosaicArtist
#FRToggleMosaic	= (shadow=in) HBToggleMosaicClose
#HBToggleMosaicClose = ABToggleMosaic -ToggleButton6(widget=FRToggleMosaic,label="",icon="gtk-close",tip=_"Hide Artist/Album bar")
#ABToggleMosaic	= (xalign=0.5,xscale=0.0) HBToggleMosaic
#HBToggleMosaic	= 3ToggleButton4(widget=VPMosaicAlbum,togglegroup=2,label=" Album ",relief=none) 3ToggleButton5(widget=VPMosaicArtist,togglegroup=2,label=" Artist ",relief=none)
#VPMosaicAlbum	= _FilterPane2(nb=3,hidebb=1,pages=album,page_album/mode=mosaic,page_album/mmarkup=1,page_album/mpicsize=96,hidetabs=1)
#VPMosaicArtist	= _FilterPane3(nb=3,hidebb=1,pages=artist,page_artist/mode=mosaic,page_artist/mmarkup=1,page_artist/mpicsize=96,hidetabs=1)
### bottom: statusbar ### Pref(size=small-toolbar,button=0)
### positioning and sizing ###
DefaultFocus	= SimpleSearch
KeyBindings	= c-l SetFocusOn(SimpleSearch)

[Shimmer Netbook]
Type=G+
Title		= "gmusicbrowser"
DefaultFocus	= SimpleSearch
Default		= Window(size=1000x750)
Author		= simon@shimmerproject.org
Window		= hidden=SimpleSearch
### main window containers: top bar, main and statusbar ###
VBMain		= VBTop _NBList
VBTop		= 3Filler8 HBTop
HBTop		= VBButtons _15VBPlayer -5VBSettings
VBButtons	= HBButtons 3Filler4
HBButtons	= Prev Play Next(click2=NextAlbum)
VBPlayer	= HBTitle VBTime
HBTitle		= Title(expand_max=300,markup="<big><b>%t</b></big> ",tip=_"Title: %t (Track No. %n)".if($track,pesc($track)),yalign=0.5,ellipsize=end) LockAlbum(stock="on:gmb-lock gmb-lockopen off:gmb-breadcrumb gmb-locklight") Album(tip=_"Album: %l (%Y)",expand_max=200,yalign=0.5,markup="<big> </big>%l ",showcover=0,ellipsize=end) LockArtist(stock="on:gmb-lock gmb-lockopen off:gmb-breadcrumb gmb-locklight") Artist(tip=_"Artist: %a",expand_max=200,yalign=0.5,markup="<big> </big>%a",ellipsize=end) -Stars(yalign=0.5)
VBTime		= _HBTimeSlider _SimpleSearch(suggest=1)
HBTimeSlider	= PlayingTime(markup="%s",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) -Length(markup="$length",initsize="XX:XX",xalign=1)
VBSettings	= HBPrefSearch 5Filler5
HBPrefSearch	= ToggleButton0(size=large-toolbar,relief=none,icon=gtk-find,widget=SimpleSearch) ExtraButtons BMSettings
BMSettings	= (icon=gtk-preferences,size="large-toolbar") SMLibrary LayoutItem PlayItem SeparatorMenuItem01 MenuItem34(command=OpenCustom(Equalizer),label=_"Equalizer") SeparatorMenuItem20 MenuItem14(command=OpenPref,label=_"Settings",icon="gtk-preferences") MenuItem05(command=Quit,label=_"Quit",icon="gtk-quit")
SMLibrary	= (label=_"Library") MenuItem00(command="RunPerlCode(::ChooseAddPath(1,1))",label=_"Add Music",icon="gtk-add") MenuItem32(command="RunPerlCode(::IdleScan)",label=_"Rescan Collection",icon="gtk-refresh")
NBList		= (tabpos="bottom") HBSongListtree QueueList(songtree=1,tabtitle=_"Queue (%n)",tabicon="",cols="queuenumber titleaa",colwidth="queuenumber 20 titleaa 248",showbb=1) HBLyrics VBAbout
HBLyrics	= (tabtitle=_"Lyrics") _PluginLyrics
VBAbout		= (tabtitle=_"Info") _PluginArtistinfo
HBSongListtree	= (tabtitle=_"Playlist") _SongTree(cols="playandqueueandtrack title length ratingpic",colwidth="artist 124 lastplay 107 length 49 playandqueue 19 playandqueueandtrack 20 playcount 22 ratingpic 100 title 390 titleaa 397 track 21",grouping="album|Compact(picsize=50)|disc|discleft(width=15)",follow=1,sort="year album disc track")
DefaultFocus	= Play
KeyBindings	= c-l SetFocusOn(SimpleSearch)

# Trayicon-Layouts
#####################################

[Shimmer Traytip]
Type=T
VBMain		= HBTime Filler0 VBMain1
VBMain1		= HBLeft _HBRight
HBLeft		= Cover(forceratio=1,default=elementary/no-cover.svg,maxsize=80) _VBText
VBText		= _2HBArtist _HBAlbum _2HBTitle
HBButtons	= Prev(size=small-toolbar) Play(size=small-toolbar) Next(size=small-toolbar)
HBTitle		= LockSong _Title(font=12,tip=_"Title: %t",ellipsize=end,minwidth=200)
HBArtist	= LockArtist _Artist(font=9,tip=_"Artist: %a",ellipsize=end,minwidth=200)
HBAlbum		= LockAlbum _Album(font=9,tip=_"Album: %l",ellipsize=end,minwidth=200) Date(font=8,markup=" <b>»</b> %y")
HBRating	= Filler1  -Stars
HBTime		= _TimeBar(minheight=7)
HBRight		= HBButtons _2HBRating
VSize0		= 3 Filler0
HSize0		= Filler1 LockArtist LockAlbum LockSong
HSize1		= Cover HBButtons

# Fullscreen Layouts
#####################################

[Shimmer Party]
Type=F
Window		= fullscreen=1,sticky=0,hidden=VBSidebar
VBMain		= _HPMain HBNowPlaying
HPMain		= _FilterPane2(nb=3,hidebb=1,pages=album,page_album/mode=mosaic,page_album/mmarkup=1,page_album/mpicsize=128,hidetabs=1) VBSidebar
HBNowPlaying	= HBButtons 15Filler0 _HBTitle
HBButtons	= Prev Play Next
HBTitle		= Title(expand_max=300,ellipsize=end,markup="<big><b>%t</b></big> ",tip=_"Title: %t (Track No. %n)".if($track,pesc($track)),yalign=0.5) \
		  LockAlbum(stock="on:gmb-lock gmb-lockopen off:gmb-breadcrumb gmb-locklight") \
		  Album(tip=_"Album: %l (%Y)",ellipsize=end,expand_max=200,yalign=0.5,markup="<big> </big>%l ",showcover=0) \
		  LockArtist(stock="on:gmb-lock gmb-lockopen off:gmb-breadcrumb gmb-locklight") \
		  Artist(tip=_"Artist: %a",expand_max=200,yalign=0.5,ellipsize=end,markup="<big> </big>%a") \
		  -ToggleButton1(size=button,relief=none,icon=gtk-find,widget=VBSidebar) \
		  -20Stars(yalign=0.5)
VBSidebar	= 4Filler1 7HBSearch _7HBQueue 4Filler2
HBQueue		= 14_QueueList(group=1,songtree=1,cols="queuenumber titleaa",colwidth="queuenumber 20 titleaa 248",showbb=1)
HBSearch	= 4Filler3 6Label0(markup='<span size="xx-large" weight="ultrabold">«</span>') _SimpleSearch(suggest=1) 7Filler4
KeyBindings	= Escape CloseWindow

# Groups and Columns for Songtree
#####################################

{Group discleft}
title=disc on the left side
head=3
left=width
vcollapse=head+title:h+line:h+2
title:	text(markup='<b><big>'.pesc($title).'</big></b>'.if(!$_expanded,'<big><b>»</b></big>'),pad=2,w=left))
width:	OptionNumber(default=15,min=10,max=100,step=1)
line: line(x1=1,y1=1,x2=$_w,y2=1,color='#ccc',width=1)

{Group artistalbum_breadcrumbs}
title=album and artist breadcrumbs
head=title:h
tail=25
vcollapse=head
vmin=pic:y+pic:h+25
left=pic:w+2
title:	text(markup='<b><big>'.pesc($album).'</big></b>'. if($year,'  <big><b>«</b></big>  '.pesc($year)) . '  <big><b>«</b></big>  '.pesc($artist),pad=2)
pic:	+aapic(y=title:h+title:y,picsize=picsize,ypad=2,xpad=1,aa='album')
picsize : OptionNumber(default=100,min=20,max=1000,step=10)
picstars : picture(file=ratingpic($rating_avrg),x=(picsize/2)-(picstars:w/2),y=pic:y+pic:h,hide=$rating_avrg==50 || picsize < 80)

{Group Compact}
title=Compact
head=pic:h
tail=25
vcollapse=head
vmin=pic:y+pic:h+25
title:	text(markup='<b><big>'.pesc($album).'</big></b>'. if($year,'\n'.pesc($year)) . '\n'.pesc($artist),pad=2,x=pic:w)
pic:	aapic(y=title:y,picsize=picsize,ypad=2,xpad=1,aa='album')
picsize : OptionNumber(default=50,min=20,max=1000,step=10)

{Column queuenumber}
menutitle = _"Row number"
title = #
width = 20
text: text(markup=$_row+1, x=-text:w)

{Column playandqueueandtrack}
menutitle = _"Playing/Queue Icon or Track"
title = #
width = 20
sort = track
ico:	icon(pad=2,icon=$playicon, hide= !$playing && !$queued)
text:	text(markup=pesc($track.' '.$queued), hide= $playing || $queued)
