fix for #20906. fix the twitchy button in the select profile dialog.

fix by=rgoodger@ihug.co.nz, r=sspitzer
This commit is contained in:
sspitzer%netscape.com 1999-12-07 09:12:59 +00:00
Родитель 2cf1b6fae4
Коммит 5755e8cdf6
2 изменённых файлов: 26 добавлений и 62 удалений

Просмотреть файл

@ -34,7 +34,7 @@
<window
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog"
class="dialog profile"
title="&windowtitle.label;"
align="vertical"
onload="StartUp();">
@ -42,7 +42,7 @@
<html:script language="javascript" src="chrome://global/content/strres.js" />
<html:script language="javascript" src="chrome://profile/content/profileSelection.js"/>
<box align="horizontal">
<box align="horizontal" id="header">
<box align="vertical" style="width: 245px;">
<html:div id="welcometo">&welcometo.label;</html:div>
<html:div id="mozilla">&mozilla.label;</html:div>
@ -58,7 +58,7 @@
<html:div style="width: 190px; height: 172px;">
<spring style="height: 1px;"/>
<tree
id="profiles" style="width: 190px; height: 150px;"
id="profiles" class="inset" style="width: 190px; height: 150px;"
onclick="return showSelection(event.target.parentNode.parentNode);"
ondblclick="return onStart();"
onkeypress="if (event.which == 13) return onStart();">
@ -91,11 +91,11 @@
</box>
<box align="vertical">
<spring style="width: 15px; height: 58px;"/>
<spring id="makeup" style="width: 15px; height: 100px;"/>
<spring id="makeup"/>
</box>
</box>
<spring style="height: 10px;"/>
<html:div class="rule"/>
<html:div class="separator" align="horizontal"/>
<spring style="height: 5px;"/>
<box class="selection" align="horizontal">
<titledbutton class="dialog push padded" id="manage" value="&manage.label;" onclick="onManageProfiles();"/>

Просмотреть файл

@ -21,33 +21,33 @@
* Ben Goodger (28/10/99)
*/
/* note that I'm defining most of my styles here because I have not figured out
* a reigime under the new skin. I hope to update this soon.
*
* I am respecting user's choice of system colours by using them rather than
* defining my own, with the exception of the header text
*/
window {
/* Notes:
* as this is a highly styled dialog, it is hard to leech much from the skin
* files in global.
*/
window.profile {
padding : 7px;
background : url('chrome://profile/skin/header.gif');
background-repeat : no-repeat;
background-position : 0px -10px;
background-color : threedface;
}
div.label {
margin-left : 10px;
margin-right : 7px;
margin-bottom : 10px;
}
div.rule {
border-bottom : 2px threedface groove;
margin-left : -10px;
width : 100%;
box#prattle {
background-color : threedface;
border-top : 1px outset threedface;
margin-left : -7px;
padding-top : 7px;
}
/* these two will probably break on Mac, as they did in profile wizard. */
/* can we find a font? a nice font? */
/* maybe perpetua *nudgenudge*/
@ -67,16 +67,8 @@ div#mozilla {
margin-left : 25px;
}
hr {
height : 2px;
border : none;
background-color : black;
}
tree#profiles {
border : 1px inset threedface;
/* outline : 1px inset #CCCCDD;*/
background-color : transparent;
background-color : transparent ! important;
}
treecell {
@ -86,7 +78,7 @@ treecell {
}
tree > treechildren {
background-color : window;
background-color : window ! important;
}
tree#profiles > treehead > treerow > treecell {
@ -95,7 +87,7 @@ tree#profiles > treehead > treerow > treecell {
border-top : none;
border-right : none;
border-bottom : 1px solid #61400A;
background-color : transparent;
background-color : transparent ! important;
color : windowtext;
}
@ -107,30 +99,23 @@ treeitem#roamingitem {
margin-top : 5px;
}
treeitem[selected="true"] treecell {
treeitem[selected="true"] > treerow > treecell {
background-color : highlight;
color : highlighttext;
}
treeitem[selected="true"] titledbutton.displaybutton {
treeitem[selected="true"] > treechildren > treeitem > treerow > treecell > titledbutton.displaybutton {
border : none;
padding : 0px;
list-style-image : url('chrome://profile/skin/profileicon-selected.gif');
}
treeitem titledbutton.displaybutton {
treeitem > treerow > treecell > titledbutton.displaybutton {
border : none;
padding : 0px;
list-style-image : url('chrome://profile/skin/profileicon.gif');
}
box#prattle {
background-color : threedface;
border-top : 1px outset threedface;
margin-left : -7px;
padding-top : 7px;
}
box.selection > titledbutton {
-moz-border-radius : 2px;
}
@ -141,30 +126,9 @@ box.selection > titledbutton:active {
-moz-border-radius : 2px;
}
titledbutton.padded {
padding-left : 20px;
padding-right : 20px;
}
spring#makeup {
border-top : 1px outset threedface;
background-color : threedface;
}
input[type="checkbox"] {
background-color : threedface;
border : 1px outset threedface;
/* outline : 1px solid threeddarkshadow;*/
-moz-border-radius : 2px;
}
input[type="checkbox"]:hover {
outline : 1px solid threeddarkshadow;
}
input[type="checkbox"]:active {
background-color : threedface;
border : 1px inset threedface;
/* outline : 1px solid threeddarkshadow;*/
-moz-border-radius : 2px;
width : 15px;
height : 100px;
}