Hacking Firefox ™ More Than 150 Hacks, Mods, and Customizations phần 3

tiêu chuẩn mà không cần văn bản, nhưng tôi thích sử dụng các biểu tượng nhỏ với mô tả văn bản và hầu hết các chủ đề, bao gồm các chủ đề mặc định, không có khoảng cách tối ưu trong chế độ này. Cho dù bạn đã chọn biểu tượng và văn bản văn bản hoặc | Chapter 4 Hacking Themes and Icons 65 One cool trick you can do is break up the elements and give them different background images. Reducing Space around Toolbar Icons One of my pet peeves with many themes is the amount of space padding around toolbar icons when using the text label on the toolbar. Most theme layouts are geared toward using the standard icon size without text but I prefer using small icons with text descriptions and most themes including the default theme do not have optimal spacing in this mode. Whether you have selected Icons and Text or Text with or without Use Small Icon Firefox adds just a bit too much spacing which bloats the toolbar. To customize your toolbar right-click on the toolbar and choose Customize from the popup menu. Once again to apply this example enter the following in your save and restart Firefox Reducing Space Around Toolbar Icons .toolbarbutton-1 toolbar mode text .toolbarbutton-text padding 3px 3px 0px 3px important margin 0px 0px 0px 0px important min-width 0px important display -moz-box .toolbarbutton-menubutton-stack .toolbarbutton-menubutton-button .toolbarbutton-menubutton-stack hover .toolbarbutton-menubutton-button hover .toolbarbutton-menubutton-stack hover active .toolbarbutton-menubutton-button hover active padding 0px 0px 0px 0px important margin 0px 0px 0px 0px important min-width 0px important display -moz-box A larger space gain is realized when you have toolbar text labels enabled. Figure 4-7 displays the default theme with toolbar text enabled. Figure 4-8 shows the effects of applying the toolbar style changes with small icons. 66 Part I Basic Hacking Figure 4-7 Main window with small icons and toolbar text enabled Figure 4-8 Main window with toolbar-spacing hack applied Chapter 4 Hacking Themes and Icons 67 To achieve the tightest fit you can override the padding margin and minimum width for the toolbar buttons by setting most to zero and tweaking some of the padding. To do this you have to .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.