From d73a058e2d3132ecfe51c9ff7649185022c2b2cd Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Sun, 31 May 2009 10:39:39 +0200 Subject: [PATCH] Bug 458199 - Use gradients on selected items in the download manager on Mac OS X. ui-r=faaborg, r=dao, a191=beltzner --- .../pinstripe/mozapps/downloads/downloads.css | 41 ++++++++++++++---- .../mozapps/downloads/listitem-focused.png | Bin 0 -> 191 bytes .../downloads/listitem-graphite-focused.png | Bin 0 -> 205 bytes .../mozapps/downloads/listitem-graphite.png | Bin 0 -> 187 bytes .../mozapps/downloads/listitem-inactive.png | Bin 0 -> 168 bytes .../pinstripe/mozapps/downloads/listitem.png | Bin 0 -> 196 bytes toolkit/themes/pinstripe/mozapps/jar.mn | 5 +++ 7 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 toolkit/themes/pinstripe/mozapps/downloads/listitem-focused.png create mode 100644 toolkit/themes/pinstripe/mozapps/downloads/listitem-graphite-focused.png create mode 100644 toolkit/themes/pinstripe/mozapps/downloads/listitem-graphite.png create mode 100644 toolkit/themes/pinstripe/mozapps/downloads/listitem-inactive.png create mode 100644 toolkit/themes/pinstripe/mozapps/downloads/listitem.png diff --git a/toolkit/themes/pinstripe/mozapps/downloads/downloads.css b/toolkit/themes/pinstripe/mozapps/downloads/downloads.css index e13c3d3980d..8937045060d 100644 --- a/toolkit/themes/pinstripe/mozapps/downloads/downloads.css +++ b/toolkit/themes/pinstripe/mozapps/downloads/downloads.css @@ -7,27 +7,50 @@ /* Download View Items */ richlistitem[type="download"] { - padding: 3px 8px; - min-height: 40px !important; + padding: 5px; + min-height: 44px !important; + border: 1px solid transparent; } richlistitem[type="download"]:not([selected="true"]):nth-child(odd) { background-color: -moz-oddtreerow; } -richlistitem[type="download"] .name { - font-size: small; -} - richlistitem[type="download"] .dateTime, richlistitem[type="download"] .status { font-size: smaller; color: #555; } -richlistbox:focus > richlistitem[selected="true"][type="download"] .dateTime, -richlistbox:focus > richlistitem[selected="true"][type="download"] .status { - color: highlighttext; +richlistitem[selected="true"][type="download"] { + background-color: #3973C0; + -moz-border-image: url(chrome://mozapps/skin/downloads/listitem.png) 1 stretch; +} + +richlistbox:focus > richlistitem[selected="true"][type="download"] { + background-color: #8496B9; + -moz-border-image: url(chrome://mozapps/skin/downloads/listitem-focused.png) 1 stretch; + outline: none; +} + +richlistitem[selected="true"][type="download"]:-moz-system-metric(mac-graphite-theme) { + background-color: #60748A; + -moz-border-image: url(chrome://mozapps/skin/downloads/listitem-graphite.png) 1 stretch; +} + +richlistbox:focus > richlistitem[selected="true"][type="download"]:-moz-system-metric(mac-graphite-theme) { + background-color: #95A4B2; + -moz-border-image: url(chrome://mozapps/skin/downloads/listitem-graphite-focused.png) 1 stretch; +} + +:root:not([active]) richlistitem[selected="true"][type="download"] { + background-color: #A1A1A1; + -moz-border-image: url(chrome://mozapps/skin/downloads/listitem-inactive.png) 1 stretch; +} + +richlistitem[selected="true"][type="download"] label { + color: HighlightText; + text-shadow: 0 1px rgba(0, 0, 0, 0.4); } diff --git a/toolkit/themes/pinstripe/mozapps/downloads/listitem-focused.png b/toolkit/themes/pinstripe/mozapps/downloads/listitem-focused.png new file mode 100644 index 0000000000000000000000000000000000000000..4516c83fe2e35cce439f8089161a56d561f7bbbe GIT binary patch literal 191 zcmeAS@N?(olHy`uVBq!ia0vp^EI@3;!2~3~Y&U>c{)9Pe*GnK@vcxr_ zBsf2l&E_-;fdDR&U>c{)9Pe*GnK@vcxr_ zBsf28SeY+}@V z%HsMiv#xvpc8BF}Eh*a+_o(#xw^;@8rYsT+PnA0_)Lv7x1zN@6>FVdQ&MBb@03%vU A5&!@I literal 0 HcmV?d00001 diff --git a/toolkit/themes/pinstripe/mozapps/downloads/listitem-graphite.png b/toolkit/themes/pinstripe/mozapps/downloads/listitem-graphite.png new file mode 100644 index 0000000000000000000000000000000000000000..ebaffe2fc2ebca6fb0c57dd7140216163a166e7b GIT binary patch literal 187 zcmeAS@N?(olHy`uVBq!ia0vp^EI@3;!2~3~Y&U>c{)9Pe*GnK@vcxr_ zBsf24eU{}VDQl5A`-M*kIpWo&cciYtONO+hxF!nPZ hSt_6+=g`2&FnecB{_%j*vw;RPc)I$ztaD0e0swfZKfM3| literal 0 HcmV?d00001 diff --git a/toolkit/themes/pinstripe/mozapps/downloads/listitem-inactive.png b/toolkit/themes/pinstripe/mozapps/downloads/listitem-inactive.png new file mode 100644 index 0000000000000000000000000000000000000000..c7e743444cfcc2db6e280d6d391c7c9bffd78147 GIT binary patch literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^EI@3;!2~3~Y&U>c{)9Pe*GnK@vcxr_ zBsf2R;pzYX|8H1c33XFx-?ePxpWom6yOsq`cedUhDARGJx2l1Gnc&U>c{)9Pe*GnK@vcxr_ zBsf2