Bug 398445 - eliminate jitter when selecting new item in Applications prefpane. patch from Florian Queze <florian@mozilla.com>, r=me.

This commit is contained in:
mozilla.mano@sent.com 2007-12-03 17:45:52 -08:00
Родитель 40b7908269
Коммит e842b085b4
9 изменённых файлов: 231 добавлений и 17 удалений

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

@ -43,24 +43,11 @@ richlistitem[selected="true"] {
}
/**
* Somewhat line up the actions menu with action labels above and below it.
* FIXME: to really line this up, equalize the distance from the left side
* of the action box to the left side of the icon for both the menu and the
* non-menu versions of the action box. Also make sure the labels are the
* same distance away from the icons.
*/
.actionsMenu {
margin-left: 0;
}
/**
* Make the icons appear and pad them a bit.
* Make the icons appear.
* Note: we display the icon box for every item whether or not it has an icon
* so the labels of all the items align vertically.
*/
.actionsMenu > menupopup > menuitem > .menu-iconic-left {
display: -moz-box;
min-width: 16px;
-moz-padding-start: 2px;
-moz-padding-end: 2px;
}

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

@ -62,12 +62,12 @@
<content>
<xul:hbox flex="1" equalsize="always">
<xul:hbox flex="1" align="center">
<xul:image src="moz-icon://goat?size=16"
<xul:image src="moz-icon://goat?size=16" class="typeIcon"
xbl:inherits="src=typeIcon" height="16" width="16"/>
<xul:label flex="1" crop="end" xbl:inherits="value=typeDescription"/>
</xul:hbox>
<xul:hbox flex="1" align="center">
<xul:image xbl:inherits="src=actionIcon" height="16" width="16"/>
<xul:image xbl:inherits="src=actionIcon" height="16" width="16" class="actionIcon"/>
<xul:label flex="1" crop="end" xbl:inherits="value=actionDescription"/>
</xul:hbox>
</xul:hbox>
@ -78,7 +78,7 @@
<content>
<xul:hbox flex="1" equalsize="always">
<xul:hbox flex="1" align="center">
<xul:image src="moz-icon://goat?size=16"
<xul:image src="moz-icon://goat?size=16" class="typeIcon"
xbl:inherits="src=typeIcon" height="16" width="16"/>
<xul:label flex="1" crop="end" xbl:inherits="value=typeDescription"/>
</xul:hbox>

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

@ -49,6 +49,7 @@
- by putting it here instead.
-->
<?xml-stylesheet href="chrome://browser/content/preferences/handlers.css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/applications.css"?>
<!DOCTYPE prefwindow [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">

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

@ -48,6 +48,7 @@ classic.jar:
skin/classic/browser/preferences/Options.png (preferences/Options.png)
skin/classic/browser/preferences/plugin.png (preferences/plugin.png)
* skin/classic/browser/preferences/preferences.css (preferences/preferences.css)
skin/classic/browser/preferences/applications.css (preferences/applications.css)
#ifdef MOZ_SAFE_BROWSING
skin/classic/browser/safebrowsing/browser-protection.css (safebrowsing/browser-protection.css)
skin/classic/browser/safebrowsing/close16x16.png (safebrowsing/close16x16.png)

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

@ -0,0 +1,76 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Firefox Preferences System.
*
* The Initial Developer of the Original Code is Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2005
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Florian Queze <florian@mozilla.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/**
* Line up the actions menu with action labels above and below it.
* Equalize the distance from the left side of the action box to the left side
* of the icon for both the menu and the non-menu versions of the action box.
* Also make sure the labels are the same distance away from the icons.
*/
.actionsMenu {
margin-top: -1px;
margin-bottom: -1px;
-moz-margin-start: -1px;
-moz-margin-end: 0;
}
.typeIcon,
.actionIcon {
-moz-margin-start: 3px;
-moz-margin-end: 3px;
}
richlistitem label {
-moz-margin-start: 1px;
margin-top: 2px;
}
richlistitem {
min-height: 25px;
}
.actionsMenu .menulist-icon {
-moz-margin-end: 1px;
}
.actionsMenu > menupopup > menuitem > .menu-iconic-left {
-moz-padding-start: 0;
-moz-padding-end: 4px;
}
.actionsMenu > menupopup > menuitem {
-moz-padding-start: 3px;
}

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

@ -73,6 +73,7 @@ classic.jar:
skin/classic/browser/preferences/Options.png (preferences/Options.png)
skin/classic/browser/preferences/plugin.png (preferences/plugin.png)
skin/classic/browser/preferences/preferences.css (preferences/preferences.css)
skin/classic/browser/preferences/applications.css (preferences/applications.css)
skin/classic/browser/tabbrowser/alltabs-box-bkgnd.png (tabbrowser/alltabs-box-bkgnd.png)
skin/classic/browser/tabbrowser/alltabs-box-overflow-bkgnd.png (tabbrowser/alltabs-box-overflow-bkgnd.png)
skin/classic/browser/tabbrowser/alltabs-box-overflow-bkgnd-animate.png (tabbrowser/alltabs-box-overflow-bkgnd-animate.png)

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

@ -0,0 +1,71 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Firefox Preferences System.
*
* The Initial Developer of the Original Code is Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2005
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Florian Queze <florian@mozilla.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/**
* Line up the actions menu with action labels above and below it.
* Equalize the distance from the left side of the action box to the left side
* of the icon for both the menu and the non-menu versions of the action box.
* Also make sure the labels are the same distance away from the icons.
*/
.actionsMenu {
-moz-margin-start: -2px;
margin-top: 0;
margin-bottom: -1px;
}
.typeIcon,
.actionIcon {
-moz-margin-start: 3px;
-moz-margin-end: 3px;
}
richlistitem label {
-moz-margin-start: 1px;
margin-top: 2px;
}
richlistitem {
min-height: 22px;
}
.actionsMenu .menulist-icon {
-moz-margin-end: 1px;
}
.actionsMenu > menupopup > menuitem > .menu-iconic-left {
-moz-padding-start: 3px;
-moz-padding-end: 1px;
}

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

@ -58,6 +58,7 @@ classic.jar:
skin/classic/browser/preferences/Options.png (preferences/Options.png)
skin/classic/browser/preferences/plugin.png (preferences/plugin.png)
skin/classic/browser/preferences/preferences.css (preferences/preferences.css)
skin/classic/browser/preferences/applications.css (preferences/applications.css)
skin/classic/browser/tabbrowser/alltabs-box-overflow-end-bkgnd.png (tabbrowser/alltabs-box-overflow-end-bkgnd.png)
skin/classic/browser/tabbrowser/alltabs-box-overflow-end-bkgnd-animate.png (tabbrowser/alltabs-box-overflow-end-bkgnd-animate.png)
skin/classic/browser/tabbrowser/alltabs-box-overflow-end-bkgnd-hover.png (tabbrowser/alltabs-box-overflow-end-bkgnd-hover.png)

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

@ -0,0 +1,76 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is the Firefox Preferences System.
*
* The Initial Developer of the Original Code is Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2005
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Florian Queze <florian@mozilla.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
/**
* Line up the actions menu with action labels above and below it.
* Equalize the distance from the left side of the action box to the left side
* of the icon for both the menu and the non-menu versions of the action box.
* Also make sure the labels are the same distance away from the icons.
*/
.actionsMenu {
margin-top: 0;
margin-bottom: 0;
-moz-margin-start: -2px;
-moz-margin-end: 0;
}
.typeIcon,
.actionIcon {
-moz-margin-start: 3px;
-moz-margin-end: 3px;
}
richlistitem label {
-moz-margin-start: 1px;
margin-top: 2px;
}
richlistitem {
min-height: 22px;
}
.actionsMenu .menulist-icon {
-moz-margin-end: 3px;
}
.actionsMenu > menupopup > menuitem > .menu-iconic-left {
-moz-padding-start: 0px;
-moz-padding-end: 2px;
}
.actionsMenu > menupopup > menuitem {
-moz-padding-start: 4px;
}