From b874641bf97c41d38675dfc1ba147845404f3e00 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 7 Jun 2011 06:26:12 +0000 Subject: [PATCH] - show correct gradients for between focused, selected, and inactive tree items in collections tree on OS X - use -moz-linear-gradient instead of images --- .../content/zotero-platform/mac/overlay.css | 40 ++++++++++++------ .../zotero/mac/selected-focused-gradient.png | Bin 323 -> 0 bytes .../default/zotero/mac/selected-gradient.png | Bin 212 -> 0 bytes 3 files changed, 28 insertions(+), 12 deletions(-) delete mode 100644 chrome/skin/default/zotero/mac/selected-focused-gradient.png delete mode 100644 chrome/skin/default/zotero/mac/selected-gradient.png diff --git a/chrome/content/zotero-platform/mac/overlay.css b/chrome/content/zotero-platform/mac/overlay.css index d23c021fe9..91415ebe72 100644 --- a/chrome/content/zotero-platform/mac/overlay.css +++ b/chrome/content/zotero-platform/mac/overlay.css @@ -318,22 +318,28 @@ } #zotero-collections-tree treechildren::-moz-tree-row { - background-color: transparent; - border-color: transparent; + background-color: transparent; + border-color: transparent; } -#zotero-collections-tree treechildren::-moz-tree-cell(selected) { - background-color: #6f81a9; - background-image: url("chrome://zotero/skin/mac/selected-gradient.png"); - background-repeat: repeat-x; - background-position: bottom left; - border-top: 1px solid #979797; +#zotero-collections-tree treechildren::-moz-tree-cell(selected) { + background: -moz-linear-gradient(top, #A0B0CF, #7386AB) repeat-x; + border-top: 1px solid #94A1C0; } -#zotero-collections-tree treechildren::-moz-tree-cell(selected,focus) { - background-image: url("chrome://zotero/skin/mac/selected-focused-gradient.png"); - background-color: #8a8a8a !important; - border-top: 1px solid #91a0c0; +#zotero-collections-tree:-moz-window-inactive treechildren::-moz-tree-cell(selected) { + background: -moz-linear-gradient(top, #B4B4B4, #8A8A8A) repeat-x; + border-top: 1px solid #979797; +} + +:root:not([active]) #zotero-pane:not([ignoreActiveAttribute]) treechildren::-moz-tree-cell(selected) { + background: -moz-linear-gradient(top, #B4B4B4, #8A8A8A) repeat-x; + border-top: 1px solid #979797; +} + +#zotero-collections-tree treechildren::-moz-tree-cell(selected, focus) { + background: -moz-linear-gradient(top, #6494D4, #2559AC) repeat-x; + border-top: 1px solid #5382C5; } #zotero-collections-tree treechildren::-moz-tree-cell-text(selected) { @@ -341,6 +347,16 @@ color: #ffffff !important; } +#zotero-collections-tree treechildren::-moz-tree-twisty(selected) { + -moz-appearance: none; + list-style-image: url("chrome://zotero/skin/mac/twisty-selected.png"); +} + +#zotero-collections-tree treechildren::-moz-tree-twisty(selected, open) { + -moz-appearance: none; + list-style-image: url("chrome://zotero/skin/mac/twisty-selected-open.png"); +} + #zotero-collections-splitter, #zotero-items-splitter { -moz-appearance: none; diff --git a/chrome/skin/default/zotero/mac/selected-focused-gradient.png b/chrome/skin/default/zotero/mac/selected-focused-gradient.png deleted file mode 100644 index 13c0edc79f946b9d633b938b26e6d5a7afa9368c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 323 zcmV-J0lfZ+P)-7=22&s_AQb_$|g<>(#Q}9L9YQuSp-tLv7~TSMd2<$DFelbpBZ%>=$KM V#k4VFT!{bx002ovPDHLkV1fw