Bug 1023607 - Implement Windows HiDPI theme for other icons and tiny widgets. r=Gijs

This commit is contained in:
Jared Wein 2015-05-27 13:58:24 -04:00
parent 776f0cfe2c
commit dae350ad36
24 changed files with 215 additions and 74 deletions

View File

@ -1023,16 +1023,6 @@ toolbarbutton[constrain-size="true"][cui-areatype="toolbar"] > .toolbarbutton-ba
margin-bottom: 1px;
-moz-margin-start: 3px;
-moz-margin-end: 1px;
-moz-image-region: rect(0, 16px, 16px, 0);
}
#identity-box:hover > #page-proxy-favicon {
-moz-image-region: rect(0, 32px, 16px, 16px);
}
#identity-box:hover:active > #page-proxy-favicon,
#identity-box[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 48px, 16px, 32px);
}
/* Identity popup icons */
@ -1381,6 +1371,52 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
-moz-image-region: rect(28px, 28px, 42px, 14px);
}
@media (min-resolution: 1.1dppx) {
#urlbar > toolbarbutton {
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
}
#urlbar-go-button {
-moz-image-region: rect(0, 84px, 28px, 56px);
}
#urlbar-go-button:hover {
-moz-image-region: rect(28px, 84px, 56px, 56px);
}
#urlbar-go-button:hover:active {
-moz-image-region: rect(56px, 84px, 84px, 56px);
}
#urlbar-reload-button {
-moz-image-region: rect(0, 28px, 28px, 0);
}
#urlbar-reload-button:not([disabled]):hover {
-moz-image-region: rect(28px, 28px, 56px, 0);
}
#urlbar-reload-button:not([disabled]):hover:active {
-moz-image-region: rect(56px, 28px, 84px, 0);
}
#urlbar-stop-button {
-moz-image-region: rect(0, 56px, 28px, 28px);
}
#urlbar-stop-button:not([disabled]):hover {
-moz-image-region: rect(28px, 56px, 56px, 28px);
}
#urlbar-stop-button:hover:active {
-moz-image-region: rect(56px, 56px, 84px, 28px);
}
#urlbar > toolbarbutton > .toolbarbutton-icon {
width: 14px;
}
}
/* Popup blocker button */
#page-report-button {
list-style-image: url("chrome://browser/skin/Info.png");

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -48,10 +48,15 @@ browser.jar:
skin/classic/browser/heartbeat-star-off.svg (../shared/heartbeat-star-off.svg)
skin/classic/browser/identity.png
skin/classic/browser/identity-icons-generic.png
skin/classic/browser/identity-icons-generic@2x.png
skin/classic/browser/identity-icons-https.png
skin/classic/browser/identity-icons-https@2x.png
skin/classic/browser/identity-icons-https-ev.png
skin/classic/browser/identity-icons-https-ev@2x.png
skin/classic/browser/identity-icons-https-mixed-active.png
skin/classic/browser/identity-icons-https-mixed-active@2x.png
skin/classic/browser/identity-icons-https-mixed-display.png
skin/classic/browser/identity-icons-https-mixed-display@2x.png
skin/classic/browser/Info.png
skin/classic/browser/magnifier.png (../shared/magnifier.png)
skin/classic/browser/magnifier@2x.png (../shared/magnifier@2x.png)
@ -79,6 +84,7 @@ browser.jar:
skin/classic/browser/Privacy-16.png
skin/classic/browser/privatebrowsing-mask.png
skin/classic/browser/reload-stop-go.png
skin/classic/browser/reload-stop-go@2x.png
skin/classic/browser/searchbar.css
skin/classic/browser/search-pref.png (../shared/search/search-pref.png)
skin/classic/browser/search-indicator.png (../shared/search/search-indicator.png)
@ -98,6 +104,7 @@ browser.jar:
skin/classic/browser/undoCloseTab.png (../shared/undoCloseTab.png)
skin/classic/browser/update-badge.svg (../shared/update-badge.svg)
skin/classic/browser/urlbar-arrow.png
skin/classic/browser/urlbar-arrow@2x.png
skin/classic/browser/session-restore.svg (../shared/incontent-icons/session-restore.svg)
skin/classic/browser/tab-crashed.svg (../shared/incontent-icons/tab-crashed.svg)
skin/classic/browser/welcome-back.svg (../shared/incontent-icons/welcome-back.svg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

View File

@ -2078,51 +2078,23 @@ toolbarbutton[constrain-size="true"][cui-areatype="toolbar"] > .toolbarbutton-ba
#page-proxy-favicon {
margin: 0px;
padding: 0px;
-moz-image-region: rect(0, 16px, 16px, 0);
}
#identity-box:hover:active > #page-proxy-favicon,
#identity-box[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 32px, 16px, 16px);
@media not all and (min-resolution: 1.1dppx) {
#identity-box:hover:active > #page-proxy-favicon,
#identity-box[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 32px, 16px, 16px);
}
/* The chromeUI identity-icon set includes three states,
but OS X only uses two of them. */
#identity-box.chromeUI:hover:active > #page-proxy-favicon,
#identity-box.chromeUI[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 48px, 16px, 32px);
}
}
/* The chromeUI identity-icon set includes three states,
but OS X only uses two of them. */
#identity-box.chromeUI:hover:active > #page-proxy-favicon,
#identity-box.chromeUI[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 48px, 16px, 32px);
}
@media (min-resolution: 2dppx) {
#page-proxy-favicon {
list-style-image: url(chrome://browser/skin/identity-icons-generic@2x.png);
-moz-image-region: rect(0, 32px, 32px, 0);
}
.chromeUI > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://branding/content/identity-icons-brand@2x.png);
}
.verifiedDomain > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https@2x.png);
}
.verifiedIdentity > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https-ev@2x.png);
}
.mixedActiveContent > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-active@2x.png);
}
.mixedDisplayContent > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-display@2x.png);
}
.mixedDisplayContentLoadedActiveBlocked > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-display@2x.png);
}
@media (min-resolution: 1.1dppx) {
#identity-box:hover:active > #page-proxy-favicon,
#identity-box[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 64px, 32px, 32px);
@ -4122,15 +4094,6 @@ window > chatbox {
}
@media (min-resolution: 2dppx) {
#customization-titlebar-visibility-button {
list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle@2x.png");
-moz-image-region: rect(0, 48px, 48px, 0);
}
#customization-titlebar-visibility-button[checked] {
-moz-image-region: rect(0, 96px, 48px, 48px);
}
.customization-tipPanel-infoBox {
background-image: url(chrome://browser/skin/customizableui/info-icon-customizeTip@2x.png);
background-size: 25px 25px;

View File

@ -179,6 +179,17 @@
-moz-image-region: rect(0, 48px, 24px, 24px);
}
@media (min-resolution: 1.1dppx) {
#customization-titlebar-visibility-button {
list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle@2x.png");
-moz-image-region: rect(0, 48px, 48px, 0);
}
#customization-titlebar-visibility-button[checked] {
-moz-image-region: rect(0, 96px, 48px, 48px);
}
}
#main-window[customize-entered] #customization-panel-container {
background-image: url("chrome://browser/skin/customizableui/customizeMode-separatorHorizontal.png"),
url("chrome://browser/skin/customizableui/customizeMode-separatorVertical.png"),

View File

@ -105,3 +105,58 @@
#identity-popup-content-box {
max-width: 50ch;
}
@media not all and (min-resolution: 1.1dppx) {
#page-proxy-favicon {
-moz-image-region: rect(0, 16px, 16px, 0);
}
#identity-box:hover > #page-proxy-favicon {
-moz-image-region: rect(0, 32px, 16px, 16px);
}
#identity-box:hover:active > #page-proxy-favicon,
#identity-box[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 48px, 16px, 32px);
}
}
@media (min-resolution: 1.1dppx) {
#page-proxy-favicon {
list-style-image: url(chrome://browser/skin/identity-icons-generic@2x.png);
-moz-image-region: rect(0, 32px, 32px, 0);
}
.chromeUI > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://branding/content/identity-icons-brand@2x.png);
}
.verifiedDomain > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https@2x.png);
}
.verifiedIdentity > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https-ev@2x.png);
}
.mixedActiveContent > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-active@2x.png);
}
.mixedDisplayContent > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-display@2x.png);
}
.mixedDisplayContentLoadedActiveBlocked > #page-proxy-favicon[pageproxystate="valid"] {
list-style-image: url(chrome://browser/skin/identity-icons-https-mixed-display@2x.png);
}
#identity-box:hover > #page-proxy-favicon {
-moz-image-region: rect(0, 64px, 32px, 32px);
}
#identity-box:hover:active > #page-proxy-favicon,
#identity-box[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 96px, 32px, 64px);
}
}

View File

@ -312,14 +312,14 @@
100% { transform: translateX(0); }
}
%ifdef XP_MACOSX
/* HiDPI notification icons */
@media (min-resolution: 2dppx) {
@media (min-resolution: 1.1dppx) {
#notification-popup-box {
border-image: url("chrome://browser/skin/urlbar-arrow@2x.png") 0 16 0 0 fill;
}
%ifdef XP_MACOSX
/* OSX only until we have icons for Windows and Linux */
.default-notification-icon,
#default-notification-icon {
list-style-image: url(chrome://global/skin/icons/information-32.png);
@ -480,5 +480,5 @@
#servicesInstall-notification-icon {
list-style-image: url(chrome://browser/skin/social/services-16@2x.png);
}
}
%endif
}

View File

@ -37,6 +37,10 @@
--urlbar-dropmarker-region: rect(0px, 11px, 14px, 0px);
--urlbar-dropmarker-hover-region: rect(0px, 22px, 14px, 11px);
--urlbar-dropmarker-active-region: rect(0px, 33px, 14px, 22px);
--urlbar-dropmarker-2x-url: url("chrome://browser/skin/urlbar-history-dropmarker@2x.png");
--urlbar-dropmarker-2x-region: rect(0, 22px, 28px, 0);
--urlbar-dropmarker-hover-2x-region: rect(0, 44px, 28px, 22px);
--urlbar-dropmarker-active-2x-region: rect(0, 66px, 28px, 44px);
}
#menubar-items {
@ -1397,6 +1401,26 @@ html|*.urlbar-input:-moz-lwtheme::-moz-placeholder,
-moz-image-region: var(--urlbar-dropmarker-active-region);
}
@media (min-resolution: 1.1dppx) {
.urlbar-history-dropmarker {
list-style-image: var(--urlbar-dropmarker-2x-url);
-moz-image-region: var(--urlbar-dropmarker-2x-region);
}
.urlbar-history-dropmarker:hover {
-moz-image-region: var(--urlbar-dropmarker-hover-2x-region);
}
.urlbar-history-dropmarker[open="true"],
.urlbar-history-dropmarker:hover:active {
-moz-image-region: var(--urlbar-dropmarker-active-2x-region);
}
.urlbar-history-dropmarker > .dropmarker-icon {
width: 11px;
}
}
/* page proxy icon */
%include ../shared/identity-block.inc.css
@ -1406,16 +1430,6 @@ html|*.urlbar-input:-moz-lwtheme::-moz-placeholder,
margin-bottom: 1px;
-moz-margin-start: 3px;
-moz-margin-end: 1px;
-moz-image-region: rect(0, 16px, 16px, 0);
}
#identity-box:hover > #page-proxy-favicon {
-moz-image-region: rect(0, 32px, 16px, 16px);
}
#identity-box:hover:active > #page-proxy-favicon,
#identity-box[open=true] > #page-proxy-favicon {
-moz-image-region: rect(0, 48px, 16px, 32px);
}
/* autocomplete */
@ -1576,6 +1590,52 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
-moz-image-region: rect(28px, 28px, 42px, 14px);
}
@media (min-resolution: 1.1dppx) {
#urlbar > toolbarbutton {
list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
}
#urlbar-go-button {
-moz-image-region: rect(0, 84px, 28px, 56px);
}
#urlbar-go-button:hover {
-moz-image-region: rect(28px, 84px, 56px, 56px);
}
#urlbar-go-button:hover:active {
-moz-image-region: rect(56px, 84px, 84px, 56px);
}
#urlbar-reload-button {
-moz-image-region: rect(0, 28px, 28px, 0);
}
#urlbar-reload-button:not([disabled]):hover {
-moz-image-region: rect(28px, 28px, 56px, 0);
}
#urlbar-reload-button:not([disabled]):hover:active {
-moz-image-region: rect(56px, 28px, 84px, 0);
}
#urlbar-stop-button {
-moz-image-region: rect(0, 56px, 28px, 28px);
}
#urlbar-stop-button:not([disabled]):hover {
-moz-image-region: rect(28px, 56px, 56px, 28px);
}
#urlbar-stop-button:hover:active {
-moz-image-region: rect(56px, 56px, 84px, 28px);
}
#urlbar > toolbarbutton > .toolbarbutton-icon {
width: 14px;
}
}
/* popup blocker button */
#page-report-button {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -50,10 +50,15 @@ browser.jar:
skin/classic/browser/identity.png
skin/classic/browser/identity-XP.png
skin/classic/browser/identity-icons-generic.png
skin/classic/browser/identity-icons-generic@2x.png
skin/classic/browser/identity-icons-https.png
skin/classic/browser/identity-icons-https@2x.png
skin/classic/browser/identity-icons-https-ev.png
skin/classic/browser/identity-icons-https-ev@2x.png
skin/classic/browser/identity-icons-https-mixed-active.png
skin/classic/browser/identity-icons-https-mixed-active@2x.png
skin/classic/browser/identity-icons-https-mixed-display.png
skin/classic/browser/identity-icons-https-mixed-display@2x.png
skin/classic/browser/keyhole-forward-mask.svg
skin/classic/browser/KUI-background.png
skin/classic/browser/livemark-folder.png
@ -95,6 +100,7 @@ browser.jar:
skin/classic/browser/privatebrowsing-mask-titlebar-XPVista7.png
skin/classic/browser/privatebrowsing-mask-titlebar-XPVista7-tall.png
skin/classic/browser/reload-stop-go.png
skin/classic/browser/reload-stop-go@2x.png
skin/classic/browser/searchbar.css
skin/classic/browser/searchbar-dropdown-arrow.png
skin/classic/browser/searchbar-dropdown-arrow-XP.png
@ -125,8 +131,10 @@ browser.jar:
skin/classic/browser/undoCloseTab@2x.png (../shared/undoCloseTab@2x.png)
skin/classic/browser/update-badge.svg (../shared/update-badge.svg)
skin/classic/browser/urlbar-arrow.png
skin/classic/browser/urlbar-arrow@2x.png
skin/classic/browser/urlbar-popup-blocked.png
skin/classic/browser/urlbar-history-dropmarker.png
skin/classic/browser/urlbar-history-dropmarker@2x.png
skin/classic/browser/session-restore.svg (../shared/incontent-icons/session-restore.svg)
skin/classic/browser/tab-crashed.svg (../shared/incontent-icons/tab-crashed.svg)
skin/classic/browser/welcome-back.svg (../shared/incontent-icons/welcome-back.svg)
@ -164,6 +172,7 @@ browser.jar:
skin/classic/browser/customizableui/customize-illustration.png (../shared/customizableui/customize-illustration.png)
skin/classic/browser/customizableui/customize-illustration-rtl.png (../shared/customizableui/customize-illustration-rtl.png)
skin/classic/browser/customizableui/customize-titleBar-toggle.png (customizableui/customize-titleBar-toggle.png)
skin/classic/browser/customizableui/customize-titleBar-toggle@2x.png (customizableui/customize-titleBar-toggle@2x.png)
skin/classic/browser/customizableui/customizeMode-gridTexture.png (customizableui/customizeMode-gridTexture.png)
skin/classic/browser/customizableui/customizeMode-separatorHorizontal.png (customizableui/customizeMode-separatorHorizontal.png)
skin/classic/browser/customizableui/customizeMode-separatorVertical.png (customizableui/customizeMode-separatorVertical.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 B