Can't get the window icon to show

Discussion of features and help with problems encountered while using libRocket

Can't get the window icon to show

Postby tuket on Mon Jan 18, 2016 10:53 pm

Hello.
I have compiled librocket and I am trying to put an icon to a window. I have started from the example that comes with librocket. These are the relevant parts of the files that I am using:

From invader.rcss:
Code: Select all
div#title_bar div#icon
{
   z-index: 2;

   position: absolute;
   left: 0px;
   top: 0px;
   
   width: 51px;
   height: 39px;
   
   icon-decorator: image;
   icon-image: high_scores_alien_3.tga 0px 0px 51px 39px;
   
}


From window.rml:

Code: Select all
<template name="window" content="content">
<head>
   <link type="text/rcss" href="rkt.rcss"/>
   <link type="text/rcss" href="invader.rcss"/>
</head>
<body class="window">
   <div id="title_bar">
      <handle move_target="#document">
         <div id="icon">  </div>
         <span id="title"> Such title </span>
      </handle>
   </div>
   <div id="window">
      <div id="content">
      </div>
   </div>
   <handle size_target="#document" style="position: absolute; width: 16px; height: 16px; bottom: 0px; right: 0px;"></handle>
</body>
</template>



What am I doing wrong?

Also, I have tried this matching istead
Code: Select all
div#icon

of this one
Code: Select all
div#title_bar div#icon

and it doesn't show in the title bar either. But if I put the "icon" div in the contents of the window it does show.

Here I leave the entire files:
demo.rml: http://pastebin.com/xTTK7iXM
invader.rcss: http://pastebin.com/Z3HKAbav
window.rml: http://pastebin.com/udpBBBK1

Why is this happening? What am I doing wrong?

Thanks.
tuket
 
Posts: 2
Joined: Mon Jan 18, 2016 10:40 pm

Re: Can't get the window icon to show

Postby tuket on Tue Feb 09, 2016 10:35 am

I am still stuck with this. This is the example that comes with the library, so I think it should work. Is it a bug?
tuket
 
Posts: 2
Joined: Mon Jan 18, 2016 10:40 pm


Return to Using libRocket


cron