need help with scripting the logon layout

calling all scripting gurus

Monday, May 17, 2010 by big_cheez | Discussion: Stardock Support General

This section of code was taken from the LogonStudio template standard.uifile
The ares I am attempting to modify is the vertical divider

[code]...
        <element id=atom(rightpanel) sheet=styleref(rightpanelss) layout=borderlayout() layoutpos=left width=384rp>
            <element id=atom(divider) layoutpos=left width=1rp/>
            <scrollviewer id=atom(scroller) sheet=styleref(scroller) layoutpos=client xscrollable=false margin=rect(26rp,0rp,0rp,0rp)>
                <selector id=atom(accountlist) sheet=styleref(accountlistss) layout=verticalflowlayout(0,3,3,2)/>
            </scrollviewer>
        </element>
...[/code]

I would like take the divider element and break into two parts, one stacked on top of the other.
If I am able to do that then I can use a vertical gradient on each to simulate the original divider without an image.
Any suggetstions?

Cavan1
Reply #1 Monday, May 17, 2010 10:34 AM

I would like take the divider element and break into two parts, one stacked on top of the other.
If I am able to do that then I can use a vertical gradient on each to simulate the original divider without an image.

Edit the divider image as it must be used if you want a center divider, you can not modify the code to do what you appear to be thinking. 

Center divider is Bitmap_124.bmp.

 

big_cheez
Reply #2 Monday, May 17, 2010 4:25 PM

Cavan1
Edit the divider image as it must be used if you want a center divider, you can not modify the code to do what you appear to be thinking.
Center divider is Bitmap_124.bmp.
Try making these modifications to the uifile.txt:

<style resid=rightpanelss>
    element
    {
        background: argb(0,0,0,0);
    }
    element [id=atom(divider)]
    {
        background: rcbmp(124,6,#FF00FF,0,0,1,0);
    }

 change the above lines to 

<style resid=rightpanelss>
    element
    {
        background: argb(0,0,0,0);
    }
        element [id=atom(dividertop)]
    {
        background: gradient(rgb(90,126,220),rgb(175,191,255),1);
    }
        element [id=atom(dividerbot)]
    {
        background: gradient(rgb(175,191,255),rgb(90,126,220),1);
    }


AND


<element id=atom(rightpanel) sheet=styleref(rightpanelss) layout=borderlayout() layoutpos=left width=384rp>
   <element id=atom(divider) layoutpos=left width=1rp/>
   <scrollviewer id=atom(scroller) sheet=styleref(scroller) layoutpos=client xscrollable=false margin=rect(26rp,0rp,0rp,0rp)>
       <selector id=atom(accountlist) sheet=styleref(accountlistss) layout=verticalflowlayout(0,3,3,2)/>
   </scrollviewer>
</element>

  change the above lines to 

<element id=atom(rightpanel) sheet=styleref(rightpanelss) layout=borderlayout() layoutpos=left width=384rp>
    <element layout=gridlayout(2,1) layoutpos=left width=1rp>
        <element id=atom(dividertop) width=1rp/>
        <element id=atom(dividerbot) width=1rp/>
    </element>
   <scrollviewer id=atom(scroller) sheet=styleref(scroller) layoutpos=client xscrollable=false margin=rect(26rp,0rp,0rp,0rp)>
      <selector id=atom(accountlist) sheet=styleref(accountlistss) layout=verticalflowlayout(0,3,3,2)/>
   </scrollviewer>
</element>


After those changes are made you can delete the file 'Bitmap_124.bmp' and delete the line 'VerticalDivider=Bitmap_124.bmp' from the Theme.ini file.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01