Author Topic: (Solved) Question about layout and 'new line'  (Read 3564 times)

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
(Solved) Question about layout and 'new line'
« on: January 02, 2012, 06:02:06 »
Is it possible to create a new line outside of a container..  In the image you see the time bar and where it is placed..

I would like to have it underneath the entire layout expanded across below.  I have tried several options but cannot seem to move just that line below the entire field



Here is the code

Code: [Select]
[VastOne Thin Layout]
Type=D
Author=VastOne

Window =  transparent=1
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) -PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
HBButtons = 7Prev(size=small-toolbar) 45Filler2 Play(size=small-toolbar) -Next(size=small-toolbar)
HBTitle = LockSong _Title
HBArtist = LockArtist _Artist -HBSettings
HBSettings = ExtraButtons(size=menu) BMSettings
 BMSettings = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 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")
HBAlbum = LockAlbum _Album -VolumeIcon
VBText = HBTitle HBArtist HBAlbum
VBmain = _VBText -HBTime HBButtons
HBmain = _VBmain Filler1 -Cover(forceratio=1,maxsize=0)
# VBBottom = HBTime
VolumeScroll = VolumeIcon
« Last Edit: January 04, 2012, 00:32:31 by VastOne »

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: Question about layout and 'new line'
« Reply #1 on: January 03, 2012, 19:13:56 »
You just have to remove HBTime, add a VB container, put the previous top container in it and HBTime.
I renamed the old VBmain and HBmain for clarity, the new top container is VBmain :

Code: [Select]
[VastOne Thin Layout]
Type=D
Author=VastOne

Window =  transparent=1
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) -PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
HBButtons = 7Prev(size=small-toolbar) 45Filler2 Play(size=small-toolbar) -Next(size=small-toolbar)
HBTitle = LockSong _Title
HBArtist = LockArtist _Artist -HBSettings
HBSettings = ExtraButtons(size=menu) BMSettings
 BMSettings = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 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")
HBAlbum = LockAlbum _Album -VolumeIcon
VBText = HBTitle HBArtist HBAlbum
VBleft = _VBText HBButtons
HBtop = _VBleft Filler1 -Cover(forceratio=1,maxsize=0)
VBmain = _HBtop HBTime
VolumeScroll = VolumeIcon

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: Question about layout and 'new line'
« Reply #2 on: January 04, 2012, 00:31:48 »
Thanks squentin..

That was perfect and obvious... I missed it badly!  :-[

Happy New Year

VastOne

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Re: (Solved) Question about layout and 'new line'
« Reply #3 on: January 04, 2012, 00:44:05 »
For anyone who wants it, here is the finished product



vastone-thin4.layout

Code: [Select]
[VastOne Thin Layout IV]
Type=D
Author=VastOne

Window =  transparent=1
HBTime = 6Filler1 Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
HBButtons = 7Prev(size=small-toolbar) 7Play(size=small-toolbar) 7Next(size=small-toolbar) 7VolumeIcon HBSettings
HBTitle = LockSong _Title
HBArtist = LockArtist _Artist
HBSettings = ExtraButtons(size=menu) BMSettings
 BMSettings = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 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")
HBAlbum = LockAlbum _Album
VBText = HBArtist HBAlbum HBTitle
VBmain = _VBText -HBTime HBButtons
VBleft = _VBText HBButtons
HBtop = _VBleft Filler1 -Cover(forceratio=1,maxsize=0)
VBmain = _HBtop HBTime
VolumeScroll = VolumeIcon

And here is another version of it with a different setup



vastone-thin3.layout

Code: [Select]
[VastOne Thin Layout III]
Type=D
Author=VastOne

Window =  transparent=1
HBButtons    = 7Prev(size=small-toolbar) 7Play(size=small-toolbar) 7Next(size=small-toolbar) 7VolumeIcon HBSettings
HBTitle        = LockSong _Title
HBArtist    = LockArtist _Artist
HBSettings    = ExtraButtons(size=menu) BMSettings
 BMSettings    = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 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")
HBAlbum        = LockAlbum _Album
VBText        = HBArtist HBAlbum HBButtons
# VBmain        = _VBText
VBleft        = _VBText HBButtons
HBtop        = _VBleft Filler1 -Cover(forceratio=1,maxsize=0)
HBTime        = 6Filler1 Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
VBmain        = _HBTitle  _HBtop HBTime
VolumeScroll    = VolumeIcon

Thanks again squentin!
« Last Edit: January 04, 2012, 06:12:55 by VastOne »