Bug 200127 Standardize on <tree class="focusring"> r=varga sr=jag r=rginda (venkman)

This commit is contained in:
neil%parkwaycc.co.uk 2003-04-16 10:01:07 +00:00
parent 13a42d51d1
commit 91727ef506
15 changed files with 43 additions and 70 deletions

View File

@ -1504,9 +1504,6 @@ function xtv_pactcell (action)
XULTreeView.prototype.onRouteFocus =
function xtv_rfocus (event)
{
if (this.tree && this.tree.treeBody)
this.tree.treeBody.setAttribute("focused", true)
if ("onFocus" in this)
this.onFocus(event);
}
@ -1514,9 +1511,6 @@ function xtv_rfocus (event)
XULTreeView.prototype.onRouteBlur =
function xtv_rblur (event)
{
if (this.tree && this.tree.treeBody)
this.tree.treeBody.removeAttribute("focused");
if ("onBlur" in this)
this.onBlur(event);
}

View File

@ -49,6 +49,7 @@
<floatingview id="breaks" title="&Break.label;" flex="1">
<vbox id="break-view-content" flex="1">
<tree flex="1" id="break-tree" persist="height" hidecolumnpicker="true"
class="focusring"
context="context:breaks">
<treecols>
@ -71,6 +72,7 @@
<floatingview id="locals" title="&Locals.label;" flex="1">
<vbox id="locals-view-content" flex="1">
<tree flex="1" id="locals-tree" persist="height"
class="focusring"
context="context:locals">
<treecols>
@ -117,6 +119,7 @@
oninput="console.views.scripts.onSearchInput(event);"/>
</hbox>
<tree flex="1" id="scripts-tree" persist="height"
class="focusring"
context="context:scripts">
<treecols>
@ -163,6 +166,7 @@
</toolbar>
</toolbox>
<tree id="source-tree" flex="1" persist="width"
class="focusring"
onclick="console.views.source.onClick(event);"
onselect="console.views.source.onSelect(event);"
context="context:source">
@ -189,7 +193,9 @@
<floatingview id="stack" title="&Stack.label;" flex="1"
grippytooltiptext="&Stack.label;">
<vbox id="stack-view-content" flex="1">
<tree flex="2" id="stack-tree" persist="width" context="context:stack">
<tree flex="2" id="stack-tree" persist="width"
class="focusring"
context="context:stack">
<treecols>
<treecol id="stack:col-0" flex="1" persist="hidden width"
@ -211,6 +217,7 @@
<floatingview id="watches" title="&Watch.label;" flex="1">
<vbox id="watch-view-content" flex="1">
<tree flex="1" id="watch-tree" persist="height"
class="focusring"
context="context:watches">
<treecols>
@ -238,6 +245,7 @@
<floatingview id="windows" title="&Windows.label;" flex="1">
<vbox id="windows-view-content" flex="1">
<tree flex="1" id="windows-tree" persist="height"
class="focusring"
context="context:windows"
hidecolumnpicker="true">

View File

@ -68,14 +68,6 @@ tree {
margin: 0px;
}
treechildren {
border: 1px white solid;
}
treechildren[focused] {
border: 1px black solid;
}
tabpanels {
background: none;
padding: 2px;

View File

@ -33,7 +33,7 @@
<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tree id="folderTree" class="plain" flex="1" seltype="single"
<tree id="folderTree" class="plain focusring" flex="1" seltype="single"
disableKeyNavigation="true"
datasources="rdf:null"
statedatasource="rdf:mailnewsfolders"

View File

@ -35,7 +35,7 @@ Contributors:
<script src="chrome://messenger/content/threadPane.js"/>
<tree id="threadTree" flex="1" enableColumnDrag="true" _selectDelay="500" class="plain" disableKeyNavigation="true"
<tree id="threadTree" flex="1" enableColumnDrag="true" _selectDelay="500" class="plain focusring" disableKeyNavigation="true"
onkeypress="ThreadPaneKeyPress(event);"
onselect="ThreadPaneSelectionChanged();">
<treecols pickertooltiptext="&columnChooser.tooltip;">

View File

@ -41,6 +41,16 @@ tree {
color: -moz-DialogText;
}
/* ::::: tree focusring ::::: */
.focusring > .tree-rows > .tree-bodybox {
border: 2px solid transparent;
}
.focusring:focus > .tree-rows > .tree-bodybox {
border: 2px solid -moz-mac-focusring;
}
/* ::::: tree rows ::::: */
tree[selstyle="primary"] > treechildren:-moz-tree-row,

View File

@ -48,16 +48,6 @@ treechildren:-moz-tree-image(FilenameColumn, file) {
list-style-image: url("chrome://global/skin/filepicker/blank.gif");
}
/* ::::: focus rules ::::: */
#directoryTree > treerows > .tree-bodybox {
border: 1px solid transparent;
}
#directoryTree:focus > treerows > .tree-bodybox {
border-color: #000000;
}
/* ::::: button items ::::: */
.up-button {

View File

@ -42,6 +42,16 @@ tree {
-moz-appearance: listbox;
}
/* ::::: tree focusring ::::: */
.focusring > .tree-rows > .tree-bodybox {
border: 1px solid transparent;
}
.focusring:focus > .tree-rows > .tree-bodybox {
border: 1px solid #000000;
}
/* ::::: tree rows ::::: */
tree[selstyle="primary"] > treechildren:-moz-tree-row,

View File

@ -87,16 +87,6 @@
border-bottom: 1px solid ThreeDShadow;
}
#folderTree > .tree-rows > .tree-bodybox,
#threadTree > .tree-rows > .tree-bodybox {
border: 1px solid transparent;
}
#folderTree:focus > .tree-rows > .tree-bodybox,
#threadTree:focus > .tree-rows > .tree-bodybox {
border: 1px solid #000000;
}
/* ..... message pane adjustments ..... */
#messagepanebox {

View File

@ -66,17 +66,6 @@ treechildren:-moz-tree-image(FilenameColumn, file) {
list-style-image: url("chrome://global/skin/filepicker/blank.gif");
}
/* ::::: focus rules ::::: */
#directoryTree > treerows > .tree-bodybox {
border: 1px solid transparent;
}
#directoryTree:focus > treerows > .tree-bodybox {
border-color: #000000;
}
/* ::::: button items ::::: */
.up-button {

View File

@ -54,6 +54,16 @@ tree {
color: #000000;
}
/* ::::: tree focusring ::::: */
.focusring > .tree-rows > .tree-bodybox {
border: 1px solid transparent;
}
.focusring:focus > .tree-rows > .tree-bodybox {
border: 1px solid #000000;
}
/* ::::: tree rows ::::: */
tree[selstyle="primary"] > treechildren:-moz-tree-row,

View File

@ -102,16 +102,6 @@
-moz-border-bottom-colors: #5D616E #BEC3D3;
}
#folderTree > .tree-rows > .tree-bodybox,
#threadTree > .tree-rows > .tree-bodybox {
border: 1px solid transparent;
}
#folderTree:focus > .tree-rows > .tree-bodybox,
#threadTree:focus > .tree-rows > .tree-bodybox {
border: 1px solid #000000;
}
/* ..... message pane adjustments ..... */
#messagepanebox {

View File

@ -55,7 +55,7 @@
<hbox flex="1">
<deck id="errorShower" flex="1">
<tree id="directoryTree" flex="1" seltype="single"
<tree id="directoryTree" flex="1" class="focusring" seltype="single"
onclick="onClick(event);"
ondblclick="onDblClick(event);"
onkeypress="onKeypress(event);"

View File

@ -30,16 +30,6 @@
/* ::::: tree rows ::::: */
tree:focus > .tree-bodybox
{
border: 1px solid black;
}
tree > .tree-bodybox
{
border: 1px solid transparent;
}
treechildren:-moz-tree-cell-text(user)
{
font-weight: bold;

View File

@ -54,7 +54,7 @@ Neil Rashbrook <neil@parkwaycc.co.uk>
<menuitem label="&reset.label;" accesskey="&reset.accesskey;" oncommand="ResetSelected();"/>
</popup>
<tree id="configTree" flex="1" class="plain" seltype="single"
<tree id="configTree" flex="1" class="plain focusring" seltype="single"
enableColumnDrag="true" context="configContext">
<treecols>
<treecol id="prefCol" label="&prefColumn.label;" flex="7"