- <a href="#entry8054">Adding icons to context menus without CuteMenus</a> (<a href="#entry11365">code examples)</a>
- <a href="#entry8177">menus</a>
- <a href="#entry8799">urlbar</a>
userChrome.css - Skins skinning the interface
#2 *Guest_LouCypher_*
Posted 30 December 2004 - 04:43 PM
First, create 14x14 image (size depends on the theme you are using or if you have changed the context menu size, but for the default theme and default menu size, use 14x14)
then add the following code to userChrome.css:
#context-menu-id { background: url(image_url) 2px 0px no-repeat; }For the context-menu-id, see the post by mai9 above
Example:
If you have Web Developer extension installed, try this code:
#webdeveloper-context { background:url(chrome://webdeveloper/skin/buttons/button_small.png) 2px 0px no-repeat; }Preview:

[scrn]adding%20icon2.png[/scrn]
This post has been edited by Seamaiden: 06 June 2007 - 04:55 PM
#3 *Guest_LouCypher_*
Posted 03 January 2005 - 01:38 PM
Assume you are using the default theme
First, download these 3 images to your computer: ** these links are broken - Seamaiden
bg_toolbar.png
bg_menu.png
bg_browser.png
then add the following codes to userChrome.css file
(note: replace the locations to where you download the files):
#navigator-toolbox {
background:
rgb(192,192,192)
url(http://sorry the imagehosting is brokenwww.imghst.com/uploads/zoolcar9/bg_toolbar.png)
top left
repeat
!important;
}
menupopup,
#toolbar-context-menu,
#contentAreaContextMenu {
background:
rgb(255,255,255)
url(http://sorry the imagehosting is brokenwww.imghst.com/uploads/zoolcar9/bg_menu.png)
top left
repeat-y
!important;
}
sidebarheader,
#sidebar-box,
#appcontent,
#content {
background:
rgb(192,192,192)
url(http://sorry the imagehosting is brokenwww.imghst.com/uploads/zoolcar9/bg_browser.png)
top left
repeat-x
!important;
}Note that this is just an example
You can use any colours and images or any styles you want :)
even your girl friend photo :D
This post has been edited by Seamaiden: 06 June 2007 - 04:57 PM
#4
Posted 22 January 2005 - 04:13 AM
/* ============= UI Appearance Tweaks ================ */
/* URL bar background image for high security site */
#urlbar[level="high"] > .autocomplete-textbox-container {
background-image: url('high.png') !important;
background-color: none !important;
font-weight: 600 !important;
}
/* URL bar background image for low security site */
#urlbar[level="low"] > .autocomplete-textbox-container {
background-image: url('low.png') !important;
background-color: none !important;
font-weight: 600 !important;
}
/* URL bar background image for broken secure site */
#urlbar[level="broken"] > .autocomplete-textbox-container {
background-image: url('broken.png') !important;
background-color: none !important;
font-weight: 600 !important;
}Credit to: http://www.users.on..../userChrome.css
grab mentioned PNGs from: http://www.users.on....ypen/Downloads/
Please do NOT hotlink to his files. Save the 3 PNGs to the same directory where userChrome.css lives.
preview:

(closely) related Firefox Extensions
Disrupt Spam
#5
Posted 17 March 2005 - 09:10 AM
menuitem[label="New Tab"] { background:url(chrome://cutemenus/content/res/new-tab.png) 2px 0px no-repeat; }
menuitem[label="Close Tab"] { background:url(chrome://cutemenus/content/res/delete.png) 2px 0px no-repeat; }
menuitem[label="Undo Close Tab"] { background:url(chrome://cutemenus/content/res/undo.png) 2px 0px no-repeat; }
menuitem[label="Bookmarks Toolbar"] { background:url(chrome://cutemenus/content/res/bookmark-manage.png) 2px 0px no-repeat; }
menuitem[label="Manage Folder"] { background:url(chrome://cutemenus/content/res/bookmark-manage.png) 2px 0px no-repeat; }
menuitem[label="Add Bookmark Here"] { background:url(chrome://cutemenus/content/res/bookmark.png) 2px 0px no-repeat; }
menuitem[label="Delete"] { background:url(chrome://cutemenus/content/res/delete.png) 2px 0px no-repeat; }
/* add icon to adblock image context menu item (extension) */
#adblock-image-menuitem { background:url(chrome://cutemenus/content/res/block-image.png) 2px 0px no-repeat; }
#context-keywordfield { background:url(chrome://cutemenus/content/res/search.png) 2px 0px no-repeat; }
This post has been edited by mai9: 17 March 2005 - 09:17 AM
#6
Posted 04 July 2005 - 04:38 AM
mai9, on Mar 18 2005, 2:10, said:
menuitem[label="New Tab"] { background:url(chrome://cutemenus/content/res/new-tab.png) 2px 0px no-repeat; }
menuitem[label="Close Tab"] { background:url(chrome://cutemenus/content/res/delete.png) 2px 0px no-repeat; }
menuitem[label="Undo Close Tab"] { background:url(chrome://cutemenus/content/res/undo.png) 2px 0px no-repeat; }
menuitem[label="Bookmarks Toolbar"] { background:url(chrome://cutemenus/content/res/bookmark-manage.png) 2px 0px no-repeat; }
menuitem[label="Manage Folder"] { background:url(chrome://cutemenus/content/res/bookmark-manage.png) 2px 0px no-repeat; }
menuitem[label="Add Bookmark Here"] { background:url(chrome://cutemenus/content/res/bookmark.png) 2px 0px no-repeat; }
menuitem[label="Delete"] { background:url(chrome://cutemenus/content/res/delete.png) 2px 0px no-repeat; }
/* add icon to adblock image context menu item (extension) */
#adblock-image-menuitem { background:url(chrome://cutemenus/content/res/block-image.png) 2px 0px no-repeat; }
#context-keywordfield { background:url(chrome://cutemenus/content/res/search.png) 2px 0px no-repeat; }doesn't this work with the Text Size, Sidebar and Install Theme
(ps i've got MR Tech local install running)
#7
Posted 11 September 2005 - 04:30 PM
/* Stacks Scrollbar Arrows on the Bottom */
scrollbarbutton[sbattr="scrollbar-up-top"] { display: none !important; }
scrollbarbutton[sbattr="scrollbar-up-bottom"] { display: -moz-box !important; }
scrollbarbutton[sbattr="scrollbar-left-left"] { display: none !important; }
scrollbarbutton[sbattr="scrollbar-left-right"] { display: -moz-box !important; }This code also goes to userContent.css!
#8 *Guest_LouCypher_*
Posted 16 October 2005 - 07:41 AM
See screenshot
Add this code to userChrome.css
extension {
min-height: 20px !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.extension-icon-stack,
.extension-item-description {
display: none !important;
}
extension[selected="true"] {
min-height: 25px !important;
padding-top: 7px !important;
padding-bottom: 7px !important;
}
extension[selected="true"] .extension-icon-stack,
extension[selected="true"] .extension-item-description,
.extension-item-description[value *="when Firefox is restarted"] {
display: -moz-box !important;
}
.extension-item-description[value *="will be upgraded"],
.extension-item-description[value *="will be enabled"],
.extension-item-description[value *="will be installed"] {
color: blue;
}
.extension-item-description[value *="will be disabled"],
.extension-item-description[value *="will be uninstalled"] {
color: red;
}
extension:hover * {
cursor: pointer !important;
}
extension:hover,
extension[disable="true"] {
background-image: url(chrome://mozapps/skin/shared/itemSelected.png) !important;
background-position: top center;
}
#9
Posted 01 November 2005 - 10:56 PM
Great help here!
Was wondering though, as far as the menu backgrounds, I was only able to get this section to work:
menupopup,
#toolbar-context-menu,
#contentAreaContextMenu {
(the rest of the code included)Tried the others, mybe I am doing something wrong but I dont think so!-
What I am trying to do is get a tile background where all the buttons are or just where the menu of: File | Edit | View| etc. are. I tried the code:
#navigator-toolbox {
background:
rgb(192,192,192)
url(http://sorry the imagehosting is brokenwww.imghst.com/uploads/zoolcar9/bg_toolbar.png)
top left
repeat
!important;
}But not sure if thats the correct code for what I am trying to do, and when I do use that code I notice nothing different at all in any menus, popups, dialog boxes, etc..
Any input on this will be helpful, also if you might have knowledge/answers/suggestion of a couple of my other posts would be great also.
Thanks
#10 *Guest_LouCypher_*
Posted 22 December 2005 - 01:51 PM
- Add scrollbar to context menu
#contentAreaContextMenu, #contentAreaContextMenu menupopup { max-height: 300px; /* or any height you specify */ } #contentAreaContextMenu autorepeatbutton { display: none; } #contentAreaContextMenu scrollbox { overflow-y: auto; }
- Add scrollbar to Bookmarks menu and Bookmarks toolbar menu
#bookmarks-menu menupopup, #personal-bookmarks menupopup { max-height: 300px; /* or any height you specify */ } #bookmarks-menu autorepeatbutton, #personal-bookmarks autorepeatbutton { display: none; } #bookmarks-menu scrollbox, #personal-bookmarks scrollbox { overflow-y: auto; }
- Add scrollbar to all menus
menupopup { max-height: 300px; /* or any height you specify */ } menupopup autorepeatbutton { display: none; } menupopup scrollbox { overflow-y: auto; }











Sign In
Register
Help


MultiQuote
Unspecified
