diff --git a/chrome/content/zotero-platform/mac/overlay.css b/chrome/content/zotero-platform/mac/overlay.css index 016661926e..10bd317a40 100644 --- a/chrome/content/zotero-platform/mac/overlay.css +++ b/chrome/content/zotero-platform/mac/overlay.css @@ -2,14 +2,6 @@ As of Fx36, the built-in Mac styles don't properly handle a menu-button within a combined button, so we need this ungodly mess. */ -/* Necessary to keep 32px icons from being rendered at full size */ -#zotero-toolbar-main-button[cui-areatype="toolbar"] > .toolbarbutton-icon, -#zotero-toolbar-main-button-single[cui-areatype="toolbar"] > .toolbarbutton-icon, -#zotero-toolbar-save-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon, -#zotero-toolbar-save-button-single[cui-areatype="toolbar"] > .toolbarbutton-menubutton-button > .toolbarbutton-icon { - height: 16px; -} - #zotero-toolbar-buttons[cui-areatype="toolbar"] > separator, #zotero-toolbar-save-button[cui-areatype="toolbar"]:not(:hover) > .toolbarbutton-menubutton-dropmarker::before, #zotero-toolbar-buttons[cui-areatype="toolbar"]:hover > #zotero-toolbar-save-button { @@ -36,7 +28,7 @@ } #zotero-toolbar-save-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-button { - min-width: 26px; + min-width: 27px; padding-left: 1px; padding-right: 1px; } diff --git a/chrome/content/zotero-platform/mac/zotero-z-16px-australis.png b/chrome/content/zotero-platform/mac/zotero-z-16px-australis.png new file mode 100644 index 0000000000..97e9279236 Binary files /dev/null and b/chrome/content/zotero-platform/mac/zotero-z-16px-australis.png differ diff --git a/chrome/content/zotero-platform/mac/zotero-z-32px-australis.png b/chrome/content/zotero-platform/mac/zotero-z-32px-australis.png new file mode 100644 index 0000000000..50404943e2 Binary files /dev/null and b/chrome/content/zotero-platform/mac/zotero-z-32px-australis.png differ diff --git a/chrome/content/zotero-platform/unix/overlay.css b/chrome/content/zotero-platform/unix/overlay.css index 4a0f0531b0..755a43c025 100644 --- a/chrome/content/zotero-platform/unix/overlay.css +++ b/chrome/content/zotero-platform/unix/overlay.css @@ -9,31 +9,17 @@ /* * Nav bar */ -toolbar[id="nav-bar"] #zotero-toolbar-main-button-single .toolbarbutton-icon, -toolbar[id="nav-bar"] #zotero-toolbar-save-button-single .toolbarbutton-icon { - width: 32px; -} - -toolbar[id="nav-bar"] #zotero-toolbar-main-button .toolbarbutton-icon, -toolbar[id="nav-bar"] #zotero-toolbar-save-button .toolbarbutton-icon { - width: 28px; -} - toolbar[id="nav-bar"] #zotero-toolbar-buttons #zotero-toolbar-main-button { margin-right: -1px; + padding: 0; /* avoid shift on :active */ } toolbar[id="nav-bar"] #zotero-toolbar-main-button .toolbarbutton-icon { margin-left: 2px; - margin-right: -3px; padding-left: 5px !important; padding-right: 5px !important; } -toolbar[id="nav-bar"] #zotero-toolbar-save-button .toolbarbutton-icon { - width: 30px !important; -} - toolbar[id="nav-bar"] #zotero-toolbar-save-button > .toolbarbutton-menubutton-button { padding-left: 0; } @@ -78,7 +64,6 @@ toolbar[id="nav-bar"] #zotero-toolbar-buttons > separator { width: 1px; height: 18px; -moz-margin-end: -1px; - background-image: var(--toolbarbutton-combined-backgroundimage); background-clip: padding-box; background-position: center; background-repeat: no-repeat; @@ -162,10 +147,6 @@ toolbar:not([id="nav-bar"]) #zotero-toolbar-buttons separator { @media (min-resolution: 1.5dppx) { - #zotero-toolbar .toolbarbutton-icon { - width: 16px; - } - #zotero-tb-sync > .toolbarbutton-icon { width: 20px; } diff --git a/chrome/content/zotero-platform/unix/zotero-z-16px-australis.png b/chrome/content/zotero-platform/unix/zotero-z-16px-australis.png new file mode 100644 index 0000000000..f41c74f530 Binary files /dev/null and b/chrome/content/zotero-platform/unix/zotero-z-16px-australis.png differ diff --git a/chrome/content/zotero-platform/unix/zotero-z-32px-australis.png b/chrome/content/zotero-platform/unix/zotero-z-32px-australis.png new file mode 100644 index 0000000000..2b8558b485 Binary files /dev/null and b/chrome/content/zotero-platform/unix/zotero-z-32px-australis.png differ diff --git a/chrome/content/zotero-platform/win/overlay.css b/chrome/content/zotero-platform/win/overlay.css index ec9ae40d86..a292230a4a 100644 --- a/chrome/content/zotero-platform/win/overlay.css +++ b/chrome/content/zotero-platform/win/overlay.css @@ -10,32 +10,13 @@ * Nav bar */ toolbar[id="nav-bar"] #zotero-toolbar-main-button .toolbarbutton-icon { - width: 28px; /* 16 + 1 + 1 + 5 + 5 */ - padding-left: 5px !important; - padding-right: 5px !important; + padding-left: 6px !important; + padding-right: 6px !important; } toolbar[id="nav-bar"] #zotero-toolbar-save-button .toolbarbutton-icon { - width: 28px; /* 16 + 6 + 5 + 1 */ padding-left: 6px !important; - padding-right: 5px !important; -} - -toolbar[id="nav-bar"] #zotero-toolbar-main-button-single .toolbarbutton-icon { - width: 32px; -} - -toolbar[id="nav-bar"] #zotero-toolbar-save-button-single .toolbarbutton-icon { - width: 31px; /* Compensate for border on only one side */ -} - -/* Fix size when dragged to nav bar in Customize mode */ -toolbar[id="nav-bar"] toolbarpaletteitem #zotero-toolbar-save-button .toolbarbutton-icon { - width: 29px; -} - -toolbar[id="nav-bar"] #zotero-toolbar-buttons #zotero-toolbar-main-button { - margin-right: -1px; + padding-right: 6px !important; } toolbar[id="nav-bar"] #zotero-toolbar-buttons #zotero-toolbar-save-button > .toolbarbutton-menubutton-dropmarker .dropmarker-icon { @@ -46,13 +27,13 @@ toolbar[id="nav-bar"] #zotero-toolbar-buttons #zotero-toolbar-save-button > .too toolbar[id="nav-bar"] #zotero-toolbar-buttons > separator { margin-top: 11px; margin-bottom: 11px; - -moz-margin-end: -3px; + -moz-margin-start: -1px !important; + -moz-margin-end: -3px !important; } toolbar[id="nav-bar"] #zotero-toolbar-buttons > separator, toolbar[id="nav-bar"] #zotero-toolbar-buttons > #zotero-toolbar-save-button > .toolbarbutton-menubutton-dropmarker::before { width: 1px; - background-image: var(--toolbarbutton-combined-backgroundimage); } toolbar[id="nav-bar"] #zotero-toolbar-buttons > #zotero-toolbar-save-button > .toolbarbutton-menubutton-dropmarker::before { diff --git a/chrome/content/zotero-platform/win/zotero-z-16px-australis.png b/chrome/content/zotero-platform/win/zotero-z-16px-australis.png new file mode 100644 index 0000000000..33e095ed7e Binary files /dev/null and b/chrome/content/zotero-platform/win/zotero-z-16px-australis.png differ diff --git a/chrome/content/zotero-platform/win/zotero-z-32px-australis.png b/chrome/content/zotero-platform/win/zotero-z-32px-australis.png new file mode 100644 index 0000000000..b62ed08e31 Binary files /dev/null and b/chrome/content/zotero-platform/win/zotero-z-32px-australis.png differ diff --git a/chrome/skin/default/zotero/zotero-z-32px-australis-mac.svg b/chrome/skin/default/zotero/zotero-z-32px-australis-mac.svg new file mode 100644 index 0000000000..1a0b8dbda4 --- /dev/null +++ b/chrome/skin/default/zotero/zotero-z-32px-australis-mac.svg @@ -0,0 +1,157 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/chrome/skin/default/zotero/zotero-z-32px-australis-unix.svg b/chrome/skin/default/zotero/zotero-z-32px-australis-unix.svg new file mode 100644 index 0000000000..f04382843d --- /dev/null +++ b/chrome/skin/default/zotero/zotero-z-32px-australis-unix.svg @@ -0,0 +1,157 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/chrome/skin/default/zotero/zotero-z-32px-australis-win.svg b/chrome/skin/default/zotero/zotero-z-32px-australis-win.svg new file mode 100644 index 0000000000..f18df739c0 --- /dev/null +++ b/chrome/skin/default/zotero/zotero-z-32px-australis-win.svg @@ -0,0 +1,159 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/chrome/skin/default/zotero/zotero-z-32px-australis.svg b/chrome/skin/default/zotero/zotero-z-32px-australis.svg index bd61c37569..8434687ced 100644 --- a/chrome/skin/default/zotero/zotero-z-32px-australis.svg +++ b/chrome/skin/default/zotero/zotero-z-32px-australis.svg @@ -1,8 +1,56 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/chrome/skin/default/zotero/zotero.css b/chrome/skin/default/zotero/zotero.css index 884aadd012..eb1b8d5620 100644 --- a/chrome/skin/default/zotero/zotero.css +++ b/chrome/skin/default/zotero/zotero.css @@ -32,7 +32,14 @@ #zotero-toolbar-main-button, #zotero-toolbar-main-button-single { - list-style-image: url("chrome://zotero/skin/zotero-z-32px-australis.svg"); + list-style-image: url("chrome://zotero-platform/content/zotero-z-16px-australis.png"); +} + +@media (min-resolution: 1.5dppx) { + #zotero-toolbar-main-button, + #zotero-toolbar-main-button-single { + list-style-image: url("chrome://zotero-platform/content/zotero-z-32px-australis.png"); + } } #zotero-toolbar-save-button, @@ -40,6 +47,13 @@ list-style-image: url("chrome://zotero/skin/treeitem-webpage.png"); } +#zotero-toolbar-main-button[cui-areatype="menu-panel"], +#zotero-toolbar-main-button-single[cui-areatype="menu-panel"], +toolbarpaletteitem[place="palette"] #zotero-toolbar-main-button, +toolbarpaletteitem[place="palette"] #zotero-toolbar-main-button-single { + list-style-image: url("chrome://zotero/skin/zotero-z-32px-australis.svg"); +} + #zotero-toolbar-save-button[cui-areatype="menu-panel"], #zotero-toolbar-save-button-single[cui-areatype="menu-panel"], toolbarpaletteitem[place="palette"] #zotero-toolbar-save-button, @@ -48,9 +62,6 @@ toolbarpaletteitem[place="palette"] #zotero-toolbar-save-button-single { } /* Show single icon for combo buttons in palette */ -toolbarpaletteitem[place="palette"] #zotero-toolbar-main-button { - list-style-image: url("chrome://zotero/skin/zotero-z-32px-australis.svg"); -} toolbarpaletteitem[place="palette"] #zotero-toolbar-buttons separator, toolbarpaletteitem[place="palette"] #zotero-toolbar-buttons #zotero-toolbar-save-button { display:none;