September 02, 2011, 17:15:51 Last Edit: September 16, 2011, 14:54:19 by mgrubert
I base my layout on Shimmerdesktop layout (to get all garages layout, take the file under and put it in ~/.config/gmusicbrowser/layouts/). Tab is visible in the second filter to let you add others tabs. Use button and enjoy.
Only tested with gmusicbrowser 1.1.7.
Note : the Songtree visualisation is include in shimmer.layout, include in gmb 1.1.7 on debian version (debian or LMDE, may be Ubuntu 11.10), but not include on fedora 15 ; ask if you want me to join his layout.

View 1 : Two panels on, large screen



View 2 : All panels off, small screen



[Garage6]
Type=G+
#Title = "gmusicbrowser joue %t dans l'album %l (%Y) de %a" #french
Title = "gmusicbrowser is playing %t from %l (%Y) by %a" #english
Category = "Garage"
DefaultFocus = SimpleSearch1
VolumeScroll = HBVolume
Default = Window(size=1000x750)
Window = hidden=VBCover|Context|VBQueue|ABSearchBox2|HBSongPlaylist
Author = Major Grubert (Shimmer adaptation and Shimmer is [email protected])

### main window containers : top bar and main ###
VBMain = VBTop HSeparator _HBMain

### top bar from left to right ###
VBTop = HBTop
HBTop = HBButtons VSeparator1 HBVolume VSeparator2 _15VBPlayer VSeparator3 -HBSettings

HBButtons = Prev Play Stop Next(click2=NextAlbum)

HBVolume = (yalign=0,yscale=0.0) VolumeIcon(button=1,click2=mute,tip=_"Left-clic or scrollwheel to change, right-click to mute")

VBPlayer = 1Filler0 HBTitle HBTimeSlider
HBTitle = \
Title(expand_max=300,minsize=0,markup="<big><b>%t</b></big> ",click1="",tip=_"Title: %t (Track No. %n)",yalign=0.5) \
LockAlbum(stock="on:gmb-lock gmb-lockopen off:gmb-breadcrumb gmb-locklight") \
AlbumBreadcrumb(tip=_"Album: %l (%Y)",minsize=1,expand_max=200,yalign=0.5,minsize=1,markup="<big> </big>%l ",showcover=0) \
LockArtist(stock="on:gmb-lock gmb-lockopen off:gmb-breadcrumb gmb-locklight") \
ArtistBreadcrumb(tip=_"Artist: %a",expand_max=200,yalign=0.5,minsize=0,markup="<big> </big>%a") \
-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)

HBSettings = \
ToggleButton11(relief=none,size=menu,icon=gmb-library,widget=VBLeft,tip=_"Library") \
ToggleButton12(relief=none,size=menu,icon=gmb-artist,widget=VBArtist,tip=_"Artists") \
ToggleButton13(icon=gmb-queue,relief=none,size=menu,widget=VBQueue,tip=_"Queue") \
ToggleButton14(icon=gtk-about,relief=none,size=menu,widget=Context,tip=_"Context") \
VSeparator4 \
ExtraButtons(size=large-toolbar) \
BMSettings \
Quit2(size=large-toolbar,minwidth=34,maxwidth=34,tip=_"Quit")
BMSettings = (icon=gtk-preferences,size="large-toolbar") \
SMLibrary \
LayoutItem \
PlayItem \
SeparatorMenuItem01 \
MenuItem34(click1=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(0,1))",label=_"Add Music",icon="gtk-add") \
MenuItem32(command="RunPerlCode(::IdleScan)",label=_"Scan Collection",icon="gtk-refresh") \
MenuItem33(command="RunPerlCode(::IdleCheck)",label=_"Check Collection",icon="gtk-zoom-in")

### main : Filter1, Artist, Songlist, Queue, Context ###
HBMain = VBLeft VBArtist _VBSongStatus VBQueue Context

### Filter1
VBLeft = \
ABSearchBox \
_VPFilterCover \
HBStatus
ABSearchBox = (yalign=0) SimpleSearch1(suggest=1)
VPFilterCover = _NBFilter1 VBCover
NBFilter1 = (tabpos="bottom") VBFilter10 VBFilter11 VBFilter12 VBFilter13 VBFilter14
VBFilter10 = (tabtitle=_"Filter") _FilterPane10(nb=2,hidebb=1,pages=filter,page_filter)
VBFilter11 = (tabtitle=_"List") _FilterPane11(nb=2,hidebb=1,pages=list)
VBFilter12 = (tabtitle=_"Folder") _FilterPane12(nb=2,hidebb=1,pages=folder,page_folder)
VBFilter13 = (tabtitle=_"Genre")  _FilterPane13(nb=2,hidebb=1,pages=genre,page_genre/mode=cloud,page_genre/cloud_max=30,page_genre/cloud_min=12)
VBFilter14 = (tabtitle=_"Artists")  _FilterPane14(nb=2,hidebb=1,pages=artists,page_artists/lmarkup=1,hidetabs=1,lmarkup="<b>%a</b>%Y\x0a<small>%x / %s / <small>%l</small></small>")
VBCover = _Filler1 HBCover _Filler2
HBCover = _Filler3 Cover(overlay=6x6:350x350:elementary/overlay.png,default=elementary/no-cover.svg,showcover=0) _Filler4
HBStatus = \
ToggleButton2(icon=gmb-picture,relief=none,size=menu,widget=VBCover,tip=_"Show/Hide Cover") \
-3Total(format=short,relief=none,button=1,mode=library,size="small")

### Artist
VBArtist = _FilterPane1(nb=3,hidebb=1,pages=artist,page_artist/lmarkup=1,hidetabs=0,lmarkup="<b>%a</b>%Y\x0a<small>%x / %s / <small>%l</small></small>",page=artists,page=genre,page=year,page=rating)

### Songlist
VBSongStatus = (tabtitle=_"Playlist") ABToggle _VBMosaicSongList HBTotal
ABToggle = (yalign=0,yscale=0.0) HBToggle
HBToggle = \
ToggleButton31(relief=none,size=menu,icon=gmb-album,widget=VPMosaic,tip=_"Albums") \
VSeparator5 \
ToggleButton32(relief=none,size=menu,icon=gmb-view-list,widget=HBSongPlaylist,togglegroup=1,tip=_"Simple List View") \
ToggleButton33(relief=none,size=menu,icon=gmb-view-tree,widget=SongTree,togglegroup=1,tip=_"Songtree View") \
VSeparator6 \
ToggleButton34(relief=none,size=menu,icon=gtk-find,widget=ABSearchBox2,tip=_"Search") \
_ABSearchBox2 \
-Sort(button=1,size=menu,tip=_"Right-click to toggle shuffle/random") \
-2Filter35(button=1,,size=menu,tip=_"Right-click to remove filters") \
-VSeparator7
ABSearchBox2 = (yalign=0) SimpleSearch2(suggest=1)
VBMosaicSongList = VPMosaic _HBSongListtree
VPMosaic = _FilterPane3(nb=4,hidebb=1,pages=album,page_album/mode=mosaic,page_album/mmarkup=1,page_album/mpicsize=96,hidetabs=1)
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") \
_HBSongPlaylist
HBSongPlaylist = _SongList(cols="playandqueueandtrack title artist album year length playcount",sort=artist,colwidth="album 200 artist 200 file 400 lastplay 100 length 41 path 413 playandqueueandtrack 24 playcount 96 rating 80 title 270 track 21 year 31",follow=1,sort="year album disc track")
HBTotal = -Total2(size=small)


### Queue
VBQueue = \
EditListButtons(group=3,small=1,relief=none) \
_QueueList(group=3,songtree=1,tabicon="",cols="queuenumber titleaa",colwidth="queuenumber 20 titleaa 248",showbb=1) \
HBQueueActions
HBQueueActions = -Total3(size="small",group=3)

### positioning and sizing ###
HSize0 = 300 VBLeft VBArtist VBQueue
HSize1 = 400 Context
VSize0 = 300 HBCover
VSize1 = 144 VPMosaic



#################################################################################


Update (small tweak and better presentation)

Quite nice, perhaps a bit too crowded for my taste though :P

I especially like how albums are presented horizontally over playlist. Is it possible to scroll them left to right (if there's more than fits the screen), or only up-down as a list?


Quote from: laite on September 03, 2011, 14:37:13
Quite nice, perhaps a bit too crowded for my taste though :P

I especially like how albums are presented horizontally over playlist. Is it possible to scroll them left to right (if there's more than fits the screen), or only up-down as a list?

What do you want me to enlarge ? It's easy : the size parameters are at the end of the code.
I don't know if horizontal scrolling is possible. Quentin ?


Quote from: VastOne on September 03, 2011, 16:15:22
Very nice work mgrubert!

Thx VastOne. A big part of the code and a lot of ideas came from Shimmerdesktop.layout  ;)

Quote from: mgrubert on September 03, 2011, 16:55:01

What do you want me to enlarge ? It's easy : the size parameters are at the end of the code.


Oh, it's all good if you like to have much information on the screen. I have just recently been more and more keen on minimalism/simplicity :)

Just for the reference, my current player which I'm quite happy about:

Update (Left filter is toggle-able and one another search field possible over songtree for the one who just have songtree panel visible, see under)

Quote from: laite on September 03, 2011, 17:08:33
I have just recently been more and more keen on minimalism/simplicity :)

I'm not mature enough  ;D Soon may be.

But take a look to the screenshot under : with close to all panels off


Update (few tweaks, volume button, clear filter button uppon songtree)