Author Topic: TimeBar skin and Play skin  (Read 1367 times)

aboettger

  • Guest
TimeBar skin and Play skin
« on: February 16, 2011, 16:42:36 »
I have provided a TimeBar with a skin. For the option skin_handle I wanted to use a horizontal scale. The TimeBar is intended to fill. Unfortunately, it does not work. Does anyone have any idea?
Code: [Select]
HBTimeBar1 = 10TimeBar1(minheight=6,maxheight=6,minwidth=80,maxwidth=80,skin=progress_bar_base.png::,handle_skin=progress_bar.png::hs:normal_prelight_active)
The next problem is the button play. This is also skinned. Actually, he should for the different states have different appearance. But that does not work either, unfortunately.
Code: [Select]
Play0(skin=play_pause_text.png:::normal_prelight_active:Play_Paused)
Download: https://github.com/aboettger/gmusicbrowser-layouts/zipball/master
Repository: https://github.com/aboettger/gmusicbrowser-layouts

Here's the complete layout:
Code: [Select]
[D_iPod_nano_4g]
Type = D
Name = _"iPod nano 4g"

SkinPath = skins/ipod_skin

Skin = Ipodnano4g.png::e

Default = Window(size=146x357,hidden=VBView2|VBView3)

VBMainContainer = 8Filler000 HBStatus 4HBMain

    HBStatus = \
        (minheight=6,maxheight=6) \
        26Filler001 \
        Play0(skin=play_pause_text.png:::normal_prelight_active:Play_Paused)


    HBMain = 17VBView1 17VBView2 17VBView3

        ### 1st view

        VBView1 = (minwidth=101,maxwidth=101,minheight=273,,maxheight=273) \
            HBView1 \
            _Filler100 \
            HBTimeBar1 \
28Filler108 \
            6-Filler105 \
            -HBButtonLine13 \
            -1Filler107 \
            8-HBButtonLine12 \
            -1Filler106 \
            -HBButtonLine11

            HBTimeBar1 = \
                10TimeBar1(minheight=6,maxheight=6,minwidth=80,maxwidth=80,skin=progress_bar_base.png::,handle_skin=progress_bar.png::hs:normal_prelight_active)

            HBView1 = \
                Cover1(minsize=50,maxsize=50,overlay=0x0:101x101:skins/ipod_skin/cover_overlay.png) \
                _Filler101

            HBButtonLine11 = \
                21Filler104 \
                Pref1(skin=menu.png:::normal_prelight_active)

            HBButtonLine12 = \
                4Filler102 \
                Prev1(skin=prev.png:::normal_prelight_active) \
                6ToggleButton1(maxheight=49,minheight=49,minwidth=49,maxwidth=49,skin=prev.png::s:normal_prelight_active,togglegroup=1,widget=VBView2) \
                Next1(skin=next.png:::normal_prelight_active)

            HBButtonLine13 = \
                23Filler103 \
                Play1(skin=play_pause.png:::normal_prelight_active)

        ### 2nd view

        VBView2 = (minwidth=101,maxwidth=101,minheight=273,,maxheight=273) \
            15Filler200 \
            HBView2 \
            _Filler210 \
            6-Filler205 \
            -HBButtonLine23 \
            -1Filler207 \
            8-HBButtonLine22 \
            -1Filler206 \
            -HBButtonLine21

            HBView2 = 10Stars

            HBButtonLine21 = \
                21Filler204 \
                Pref2(skin=menu.png:::normal_prelight_active)

            HBButtonLine22 = \
                4Filler202 \
                Prev2(skin=prev.png:::normal_prelight_active) \
                6ToggleButton2(maxheight=49,minheight=49,minwidth=49,maxwidth=49,skin=prev.png::s:normal_prelight_active,togglegroup=1,widget=VBView3) \
                Next2(skin=next.png:::normal_prelight_active)

            HBButtonLine23 = \
                23Filler203 \
                Play2(skin=play_pause.png:::normal_prelight_active)

        ### 3rd view

        VBView3 =  (minwidth=101,maxwidth=101,minheight=273,,maxheight=273) \
            HBView3 \
            _Filler300 \
            6-Filler305 \
            -HBButtonLine33 \
            -1Filler307 \
            8-HBButtonLine32 \
            -1Filler306 \
            -HBButtonLine31

            HBView3 = \
                Cover3(minsize=101,maxsize=101,overlay=0x0:101x101:skins/ipod_skin/cover_overlay.png) \
                _Filler301

            HBButtonLine31 = \
                21Filler304 \
                Pref3(skin=menu.png:::normal_prelight_active)

            HBButtonLine32 = \
                4Filler302 \
                Prev3(skin=prev.png:::normal_prelight_active) \
                6ToggleButton3(maxheight=49,minheight=49,minwidth=49,maxwidth=49,skin=prev.png::s:normal_prelight_active,togglegroup=1,widget=VBView1) \
                Next3(skin=next.png:::normal_prelight_active)

            HBButtonLine33 = \
                23Filler303 \
                Play3(skin=play_pause.png:::normal_prelight_active)