Bug 510442 - remove unneeded CSS and image data for toolbar buttons that are always enabled. r=rflint

This commit is contained in:
Dão Gottwald 2009-08-29 03:26:51 +02:00
parent 4d0f1f9548
commit 73850ea3b4
9 changed files with 26 additions and 118 deletions

BIN
browser/themes/gnomestripe/browser/Toolbar-small.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
browser/themes/gnomestripe/browser/Toolbar.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -546,30 +546,18 @@ toolbar[mode="full"] .toolbarbutton-menubutton-button {
#home-button {
list-style-image: url("moz-icon://stock/gtk-home?size=toolbar");
}
#home-button[disabled="true"] {
list-style-image: url("moz-icon://stock/gtk-home?size=toolbar&state=disabled");
}
#downloads-button {
-moz-image-region: rect(0px 24px 24px 0px);
}
#downloads-button[disabled="true"] {
-moz-image-region: rect(24px 24px 48px 0px);
}
#history-button {
-moz-image-region: rect(0px 48px 24px 24px);
}
#history-button[disabled="true"] {
-moz-image-region: rect(24px 48px 48px 24px);
}
#bookmarks-button {
-moz-image-region: rect(0px 72px 24px 48px);
}
#bookmarks-button[disabled="true"] {
-moz-image-region: rect(24px 72px 48px 48px);
}
#print-button {
list-style-image: url("moz-icon://stock/gtk-print?size=toolbar");
@ -581,16 +569,10 @@ toolbar[mode="full"] .toolbarbutton-menubutton-button {
#new-tab-button {
-moz-image-region: rect(0px 96px 24px 72px);
}
#new-tab-button[disabled="true"] {
-moz-image-region: rect(24px 96px 48px 72px);
}
#new-window-button {
-moz-image-region: rect(0px 120px 24px 96px);
}
#new-window-button[disabled="true"] {
-moz-image-region: rect(24px 120px 48px 96px);
}
#cut-button {
list-style-image: url("moz-icon://stock/gtk-cut?size=toolbar");
@ -686,31 +668,18 @@ toolbar[iconsize="small"] #home-button ,
#home-button.bookmark-item {
list-style-image: url("moz-icon://stock/gtk-home?size=menu");
}
toolbar[iconsize="small"] #home-button[disabled="true"] ,
#home-button.bookmark-item[disabled="true"] {
list-style-image: url("moz-icon://stock/gtk-home?size=menu&state=disabled");
}
toolbar[iconsize="small"] #downloads-button {
-moz-image-region: rect(0px 16px 16px 0px);
}
toolbar[iconsize="small"] #downloads-button[disabled="true"] {
-moz-image-region: rect(16px 16px 32px 0px);
}
toolbar[iconsize="small"] #history-button {
-moz-image-region: rect(0px 32px 16px 16px);
}
toolbar[iconsize="small"] #history-button[disabled="true"] {
-moz-image-region: rect(16px 32px 32px 16px);
}
toolbar[iconsize="small"] #bookmarks-button {
-moz-image-region: rect(0px 48px 16px 32px);
}
toolbar[iconsize="small"] #bookmarks-button[disabled="true"] {
-moz-image-region: rect(16px 48px 32px 32px);
}
toolbar[iconsize="small"] #print-button {
list-style-image: url("moz-icon://stock/gtk-print?size=menu");
@ -722,16 +691,10 @@ toolbar[iconsize="small"] #print-button[disabled="true"] {
toolbar[iconsize="small"] #new-tab-button {
-moz-image-region: rect(0px 64px 16px 48px);
}
toolbar[iconsize="small"] #new-tab-button[disabled="true"] {
-moz-image-region: rect(16px 64px 32px 48px);
}
toolbar[iconsize="small"] #new-window-button {
-moz-image-region: rect(0px 80px 16px 64px);
}
toolbar[iconsize="small"] #new-window-button[disabled="true"] {
-moz-image-region: rect(16px 80px 32px 64px);
}
toolbar[iconsize="small"] #cut-button {
list-style-image: url("moz-icon://stock/gtk-cut?size=menu");

View File

@ -529,9 +529,6 @@ toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarke
#home-button {
-moz-image-region: rect(0px, 180px, 23px, 144px);
}
#home-button[disabled="true"] {
-moz-image-region: rect(23px, 180px, 46px, 144px) !important;
}
#home-button:hover:active {
-moz-image-region: rect(46px, 180px, 69px, 144px);
}
@ -550,9 +547,6 @@ toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarke
#downloads-button {
-moz-image-region: rect(0px, 216px, 23px, 180px);
}
#downloads-button[disabled="true"] {
-moz-image-region: rect(23px, 216px, 46px, 180px);
}
#downloads-button:hover:active {
-moz-image-region: rect(46px, 216px, 69px, 180px);
}
@ -562,9 +556,6 @@ toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarke
#history-button {
-moz-image-region: rect(0px, 252px, 23px, 216px);
}
#history-button[disabled="true"] {
-moz-image-region: rect(23px, 252px, 46px, 216px);
}
#history-button:hover:active {
-moz-image-region: rect(46px, 252px, 69px, 216px);
background-color: transparent;
@ -586,9 +577,6 @@ toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarke
#bookmarks-button {
-moz-image-region: rect(0px, 288px, 23px, 252px);
}
#bookmarks-button[disabled="true"] {
-moz-image-region: rect(23px, 288px, 46px, 252px);
}
#bookmarks-button:hover:active {
-moz-image-region: rect(46px, 288px, 69px, 252px);
background-color: transparent;
@ -622,9 +610,6 @@ toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarke
#new-tab-button {
-moz-image-region: rect(0px, 360px, 23px, 324px);
}
#new-tab-button[disabled="true"] {
-moz-image-region: rect(23px, 360px, 46px, 324px);
}
#new-tab-button:hover:active {
-moz-image-region: rect(46px, 360px, 69px, 324px);
}
@ -634,9 +619,6 @@ toolbar[iconsize="small"] #unified-back-forward-button > #back-forward-dropmarke
#new-window-button {
-moz-image-region: rect(0px, 396px, 23px, 360px);
}
#new-window-button[disabled="true"] {
-moz-image-region: rect(23px, 396px, 46px, 360px);
}
#new-window-button:hover:active {
-moz-image-region: rect(46px, 396px, 69px, 360px);
}

BIN
browser/themes/winstripe/browser/Toolbar-aero.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 60 KiB

BIN
browser/themes/winstripe/browser/Toolbar-small-aero.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 24 KiB

BIN
browser/themes/winstripe/browser/Toolbar-small.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 33 KiB

BIN
browser/themes/winstripe/browser/Toolbar.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -427,13 +427,10 @@ toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker:not([disabled="
#home-button {
-moz-image-region: rect(0px 120px 24px 96px);
}
#home-button:not([disabled="true"]):hover {
#home-button:hover {
-moz-image-region: rect(24px 120px 48px 96px);
}
#home-button[disabled="true"] {
-moz-image-region: rect(48px 120px 72px 96px);
}
#home-button:not([disabled="true"]):hover:active {
#home-button:hover:active {
-moz-image-region: rect(96px 120px 120px 96px);
}
@ -442,13 +439,10 @@ toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker:not([disabled="
#downloads-button {
-moz-image-region: rect(0px 144px 24px 120px);
}
#downloads-button:not([disabled="true"]):hover {
#downloads-button:hover {
-moz-image-region: rect(24px 144px 48px 120px);
}
#downloads-button[disabled="true"] {
-moz-image-region: rect(48px 144px 72px 120px);
}
#downloads-button:not([disabled="true"]):hover:active {
#downloads-button:hover:active {
-moz-image-region: rect(96px 144px 120px 120px);
}
@ -457,16 +451,13 @@ toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker:not([disabled="
#history-button {
-moz-image-region: rect(0px 168px 24px 144px);
}
#history-button:not([disabled="true"]):not([checked="true"]):hover {
#history-button:not([checked="true"]):hover {
-moz-image-region: rect(24px 168px 48px 144px);
}
#history-button[disabled="true"] {
-moz-image-region: rect(48px 168px 72px 144px);
}
#history-button[checked="true"] {
-moz-image-region: rect(72px 168px 96px 144px);
}
#history-button:not([disabled="true"]):not([checked="true"]):hover:active {
#history-button:not([checked="true"]):hover:active {
-moz-image-region: rect(96px 168px 120px 144px);
}
@ -475,16 +466,13 @@ toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker:not([disabled="
#bookmarks-button {
-moz-image-region: rect(0px 192px 24px 168px);
}
#bookmarks-button:not([disabled="true"]):not([checked="true"]):hover {
#bookmarks-button:not([checked="true"]):hover {
-moz-image-region: rect(24px 192px 48px 168px);
}
#bookmarks-button[disabled="true"] {
-moz-image-region: rect(48px 192px 72px 168px);
}
#bookmarks-button[checked="true"] {
-moz-image-region: rect(72px 192px 96px 168px);
}
#bookmarks-button:not([disabled="true"]):not([checked="true"]):hover:active {
#bookmarks-button:not([checked="true"]):hover:active {
-moz-image-region: rect(96px 192px 120px 168px);
}
@ -508,13 +496,10 @@ toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker:not([disabled="
#new-tab-button {
-moz-image-region: rect(0px 240px 24px 216px);
}
#new-tab-button:not([disabled="true"]):hover {
#new-tab-button:hover {
-moz-image-region: rect(24px 240px 48px 216px);
}
#new-tab-button[disabled="true"] {
-moz-image-region: rect(48px 240px 72px 216px);
}
#new-tab-button:not([disabled="true"]):hover:active {
#new-tab-button:hover:active {
-moz-image-region: rect(96px 240px 120px 216px);
}
@ -523,13 +508,10 @@ toolbar[iconsize="small"][mode="icons"] #back-forward-dropmarker:not([disabled="
#new-window-button {
-moz-image-region: rect(0px 264px 24px 240px);
}
#new-window-button:not([disabled="true"]):hover {
#new-window-button:hover {
-moz-image-region: rect(24px 264px 48px 240px);
}
#new-window-button[disabled="true"] {
-moz-image-region: rect(48px 264px 72px 240px);
}
#new-window-button:not([disabled="true"]):hover:active {
#new-window-button:hover:active {
-moz-image-region: rect(96px 264px 120px 240px);
}
@ -689,16 +671,12 @@ toolbar[iconsize="small"] #home-button ,
#home-button.bookmark-item {
-moz-image-region: rect(0px 80px 16px 64px);
}
toolbar[iconsize="small"] #home-button:not([disabled="true"]):hover ,
#home-button.bookmark-item:not([disabled="true"]):hover {
toolbar[iconsize="small"] #home-button:hover ,
#home-button.bookmark-item:hover {
-moz-image-region: rect(16px 80px 32px 64px);
}
toolbar[iconsize="small"] #home-button[disabled="true"] ,
#home-button.bookmark-item[disabled="true"] {
-moz-image-region: rect(32px 80px 48px 64px);
}
toolbar[iconsize="small"] #home-button:not([disabled="true"]):hover:active ,
#home-button.bookmark-item:not([disabled="true"]):hover:active {
toolbar[iconsize="small"] #home-button:hover:active ,
#home-button.bookmark-item:hover:active {
-moz-image-region: rect(64px 80px 80px 64px);
}
@ -707,13 +685,10 @@ toolbar[iconsize="small"] #home-button:not([disabled="true"]):hover:active ,
toolbar[iconsize="small"] #downloads-button {
-moz-image-region: rect(0px 96px 16px 80px);
}
toolbar[iconsize="small"] #downloads-button:not([disabled="true"]):hover {
toolbar[iconsize="small"] #downloads-button:hover {
-moz-image-region: rect(16px 96px 32px 80px);
}
toolbar[iconsize="small"] #downloads-button[disabled="true"] {
-moz-image-region: rect(32px 96px 48px 80px);
}
toolbar[iconsize="small"] #downloads-button:not([disabled="true"]):hover:active {
toolbar[iconsize="small"] #downloads-button:hover:active {
-moz-image-region: rect(64px 96px 80px 80px);
}
@ -722,16 +697,13 @@ toolbar[iconsize="small"] #downloads-button:not([disabled="true"]):hover:active
toolbar[iconsize="small"] #history-button {
-moz-image-region: rect(0px 112px 16px 96px);
}
toolbar[iconsize="small"] #history-button:not([disabled="true"]):not([checked="true"]):hover {
toolbar[iconsize="small"] #history-button:not([checked="true"]):hover {
-moz-image-region: rect(16px 112px 32px 96px);
}
toolbar[iconsize="small"] #history-button[disabled="true"] {
-moz-image-region: rect(32px 112px 48px 96px);
}
toolbar[iconsize="small"] #history-button[checked="true"] {
-moz-image-region: rect(48px 112px 64px 96px);
}
toolbar[iconsize="small"] #history-button:not([disabled="true"]):not([checked="true"]):hover:active {
toolbar[iconsize="small"] #history-button:not([checked="true"]):hover:active {
-moz-image-region: rect(64px 112px 80px 96px);
}
@ -740,16 +712,13 @@ toolbar[iconsize="small"] #history-button:not([disabled="true"]):not([checked="t
toolbar[iconsize="small"] #bookmarks-button {
-moz-image-region: rect(0px 128px 16px 112px);
}
toolbar[iconsize="small"] #bookmarks-button:not([disabled="true"]):not([checked="true"]):hover {
toolbar[iconsize="small"] #bookmarks-button:not([checked="true"]):hover {
-moz-image-region: rect(16px 128px 32px 112px);
}
toolbar[iconsize="small"] #bookmarks-button[disabled="true"] {
-moz-image-region: rect(32px 128px 48px 112px);
}
toolbar[iconsize="small"] #bookmarks-button[checked="true"] {
-moz-image-region: rect(48px 128px 64px 112px);
}
toolbar[iconsize="small"] #bookmarks-button:not([disabled="true"]):not([checked="true"]):hover:active {
toolbar[iconsize="small"] #bookmarks-button:not([checked="true"]):hover:active {
-moz-image-region: rect(64px 128px 80px 112px);
}
@ -773,13 +742,10 @@ toolbar[iconsize="small"] #print-button:not([disabled="true"]):hover:active {
toolbar[iconsize="small"] #new-tab-button {
-moz-image-region: rect(0px 160px 16px 144px);
}
toolbar[iconsize="small"] #new-tab-button:not([disabled="true"]):hover {
toolbar[iconsize="small"] #new-tab-button:hover {
-moz-image-region: rect(16px 160px 32px 144px);
}
toolbar[iconsize="small"] #new-tab-button[disabled="true"] {
-moz-image-region: rect(32px 160px 48px 144px);
}
toolbar[iconsize="small"] #new-tab-button:not([disabled="true"]):hover:active {
toolbar[iconsize="small"] #new-tab-button:hover:active {
-moz-image-region: rect(64px 160px 80px 144px);
}
@ -788,13 +754,10 @@ toolbar[iconsize="small"] #new-tab-button:not([disabled="true"]):hover:active {
toolbar[iconsize="small"] #new-window-button {
-moz-image-region: rect(0px 176px 16px 160px);
}
toolbar[iconsize="small"] #new-window-button:not([disabled="true"]):hover {
toolbar[iconsize="small"] #new-window-button:hover {
-moz-image-region: rect(16px 176px 32px 160px);
}
toolbar[iconsize="small"] #new-window-button[disabled="true"] {
-moz-image-region: rect(32px 176px 48px 160px);
}
toolbar[iconsize="small"] #new-window-button:not([disabled="true"]):hover:active {
toolbar[iconsize="small"] #new-window-button:hover:active {
-moz-image-region: rect(64px 176px 80px 160px);
}