June 16, 2012, 20:18:37 Last Edit: June 19, 2012, 05:41:08 by VastOne
I am working on a layout and almost have it. 


1 - Show Artist / Album / Track  instead of just the Artist is showing now

like this

Artist
   |----Album
            |----Tracks

2 - The Search bar to be at the top of the Library tab (when clicked) and not a tab that I have it as now, and linked to the entire Library for the search.  - Already done.

3 - If possible, a line separator of each change in alphabetical sequence where

A---------------

and all the A artists

B --------------

and all the B artists

Etc...

I appreciate any help


[Clementine III]
Author = VastOne
Type = G+
# Category = "Make it look like"
Title = %t by %a
Default = Window(size=80%x80%)

KeyBindings = c-J GoToCurrentSong

VolumeScroll = HBVolume

# Window = hidden=FilterPane2|FilterPane3|FilterPane4|FilterPane5|FilterPane6|FilterPane7

VBMain = HBMenubar _HPSidebarCenter HBStatusbar

    HBStatusbar = 10Total(mode=filter)

    HBMenubar = _MBEdit -BMSettings
        MBEdit = MainMenuItem PSortItem PFilterItem QueueItem SMHelp4
    BMSettings = (icon=gtk-preferences,size="menu") 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=_"Rescan Collection",icon="gtk-refresh")
           
            SMHelp4 = (label=_"Help") \
                MenuItem41(command="RunPerlCode(::AboutDialog)",label=_"About",icon="gtk-about")

    HPSidebarCenter = VBSidebar VBCenter

        VBSidebar = ABSearchBox _NBSidebar

  ABSearchBox = (yalign=0) SimpleSearch1(suggest=1)
   

            NBSidebar = (tabpos=left90,typesubmenu='PC') \
                NBSidebar1 \
                FilterPane0(tabtitle=_"Files",nb=1,hidebb=1,page=folder,pages=folder)
        Context(tabtitle=_"Context") \

                NBSidebar1 = FilterPane1(tabtitle=_"Library",tabpos=left90 \
                        group=2,\
                        nb=2,\
                        hidebb=1,\
                        pages=artist,\
                        page=artist,\
                        page_artist/depth=3,\
                        page_artist/lmarkup="0|<b>%a</b>%Y <small>%s <small>%l</small></small>",\
                        page_artist/lpicsize='0|32',\
                        page_artist/noall=1,\
                        page_artist/sort=default|default,\
                        page_artist/type=artist|album\
                    )

        VBCenter = 10HBPlayer _HBSongLists 5HBSearchAndToolbar HBControls

            HBSongLists = _NBSongLists \
                3Filler7

                NBSongLists = (typesubmenu='L') SongList(tabtitle=_"Library",mode=library,tabicon="gmb-list",cols="track artist title album length") VBQueue

VBQueue     = (tabtitle=_"Queue                  ") HBQueueButtons _QueueList(group=1)

HBQueueButtons = EditListButtons(group=1,small=1) 4QueueActions  -Total2(group=1)

            HBPlayer = (maxheight=100,minheight=100) \
                HBCover \
                5VBSongInfo \
                _VBVolume \
                5Filler5

                HBCover = (maxheight=100,minheight=100,minwidth=100,maxwidth=100) \
                    Cover(default=elementary/no-cover.svg,showcover=0,minsize=100,maxsize=100)

                VBVolume = 100Filler3 HBVolume
                    HBVolume = \
                        -VolumeIcon(click1=TogMute,size=button,button=1)

                VBSongInfo =  \
                    _Title(yalign=0.5,minsize=0,markup="<big><big><b>%t</b></big></big>",click1="") \
                    _Artist(yalign=1,minsize=0,markup="by %a") \
                    _Album(yalign=1,minsize=0,markup="from %l")\
                    100Filler2


            HBSearchAndToolbar = _HBToolbar \
                Text1(text=_"Search:") \
                10_SimpleSearch

            HBControls = Prev(size=small-toolbar) \
                Play(size=small-toolbar) \
                Stop(size=small-toolbar) \
                Next(size=small-toolbar) \
                _VBTimeBar \
               
       
                VBTimeBar = 2Filler0 Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1) 1Filler1

1) showing tracks is not possible currently in FilterPanes
to set the default to artist/album for the artist tab you can use this option : page_artist/type=artist|album

3) not possible currently

Sorry, both features are more or less planned, but I really don't know when it will be done. The FilterPane widget evolved a lot since its creation, the code is a bit messy, I'm not sure I want to add these features to it. So it will probably come with a redesign of FilterPanes or in a new widget.

Thanks Quentin..  I appreciate it.   :)