---
title: XPInstall API Reference
slug: XPInstall_API_Reference
---
@namespace url(http://www.mozilla.org/keymaster/gat...re.is.only.xul);
/* ----------Make toolbars Look ok on Classic---------- */
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox {
-moz-appearance: toolbox !important;
background-color: -moz-Dialog !important;
border-top: 2px solid !important;
-moz-border-top-colors: ThreeDShadow ThreeDHighlight !important;
}
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox toolbar {
-moz-appearance: toolbar !important;
border-top: 2px solid !important;
-moz-border-top-colors: ThreeDShadow ThreeDHighlight !important;
}
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox #toolbar-menubar {
border: none !important;
}
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox #toolbar-menubar,
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox #PersonalToolbar {
-moz-opacity: 1 !important;
}
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox #toolbar-menubar,
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox #toolbar-menubar menubar,
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox #nav-bar {
-moz-appearance: toolbar !important;
}
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox #toolbar-menubar {
background: none !important;
}
- main-window:not(:-moz-system-metric(windows-default-theme)) #navigator-toolbox {
background-color: -moz-Dialog !important;
}
/* ----------Fix Address Bar---------- */
- urlbar {
padding-left: 1px !important;
}
/* code from kliu0x52 */
- urlbar:not(:-moz-system-metric(windows-default-theme)) {
-moz-appearance: TextField ! important;
}
- urlbar{{ mediawiki.external('chromedir=\"ltr\"') }}:not(:-moz-system-metric(windows-default-theme)) {
-moz-margin-start: 4px ! important;
}
- urlbar{{ mediawiki.external('chromedir=\"ltr\"') }}:not(:-moz-system-metric(windows-default-theme)) > #identity-box {
-moz-margin-start: 0px ! important;
}
- urlbar{{ mediawiki.external('chromedir=\"ltr\"') }}:not(:-moz-system-metric(windows-default-theme)) > #identity-box > hbox {
border-left-style: none ! important;
padding-left: 2px ! important;
-moz-border-radius: 0px ! important;
}
.searchbar-textbox:not(:-moz-system-metric(windows-default-theme)) {
-moz-appearance: TextField ! important;
}
/* end of code from kliu0x52 */
/* ----------Remove withe background from menubar---------- */
- toolbar-menubar {
background: none !important;
}
- main-window{{ mediawiki.external('sizemode=\"maximized\"') }} #file-menu,
- main-window{{ mediawiki.external('sizemode=\"maximized\"') }} #edit-menu,
- main-window{{ mediawiki.external('sizemode=\"maximized\"') }} #view-menu,
- main-window{{ mediawiki.external('sizemode=\"maximized\"') }} #history-menu,
- main-window{{ mediawiki.external('sizemode=\"maximized\"') }} #bookmarksMenu,
- main-window{{ mediawiki.external('sizemode=\"maximized\"') }} #tools-menu,
- main-window{{ mediawiki.external('sizemode=\"maximized\"') }} #helpMenu {
color: #ffffff !important;
}
/* ----------Make bookmarks toolbar blue---------- */
- PersonalToolbar:-moz-system-metric(windows-default-theme) {
-moz-appearance: communications-toolbox !important;
padding: 2px 2px 3px 2px !important;
}
- PersonalToolbar .toolbarbutton-text:-moz-system-metric(windows-default-theme) {
color: #fff !important;
margin-bottom: 1px !important;
}
toolbarbutton.bookmark-item:-moz-system-metric(windows-default-theme) {
padding: 2px 6px !important;