Add a corner to the panel titles.

This commit is contained in:
slamm%netscape.com 1999-08-06 22:55:03 +00:00
parent 7a5f8a0f5b
commit d8924696e7
7 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,7 @@
<html:hr/>
<box align="horizontal" class="sidebartitle">
<html:img src="chrome://sidebar/skin/corner.gif" />
<titledbutton id="paneltitle" class="borderless paneltitle" />
<spring flex="100%" />
</box>

View File

@ -2,6 +2,7 @@ customize-panel.css
customize.css
flash.css
sidebar.css
corner.gif
flames.gif
list-down-dis.gif
list-down.gif

View File

@ -48,6 +48,7 @@ CHROME_SKIN = \
customize.css \
flash.css \
sidebar.css \
corner.gif \
flames.gif \
list-down-dis.gif \
list-down.gif \

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

View File

@ -44,6 +44,7 @@ CHROME_SKIN = \
.\customize.css \
.\flash.css \
.\sidebar.css \
.\corner.gif \
.\flames.gif \
.\list-down-dis.gif \
.\list-down.gif \

View File

@ -40,6 +40,7 @@
<html:hr/>
<box align="horizontal" class="sidebartitle">
<html:img src="chrome://sidebar/skin/corner.gif" />
<titledbutton id="paneltitle" class="borderless paneltitle" />
<spring flex="100%" />
</box>

View File

@ -101,13 +101,16 @@ function createPanelTitle(titletext, id)
var panelbar = document.createElement('box');
var title = document.createElement('titledbutton');
var spring = document.createElement('spring');
var corner = document.createElement('html:img');
title.setAttribute('value', titletext);
title.setAttribute('class', 'borderless paneltitle');
title.setAttribute('onclick', 'resize("'+id+'")');
spring.setAttribute('flex', '100%');
panelbar.setAttribute('class', 'panelbar');
corner.setAttribute('src', 'chrome://sidebar/skin/corner.gif');
panelbar.appendChild(corner);
panelbar.appendChild(title);
panelbar.appendChild(spring);