From 87eaf4410455694b3337fd145d9b157c289babd5 Mon Sep 17 00:00:00 2001 From: Lootyhoof Date: Fri, 22 Jun 2018 22:30:54 +0100 Subject: Add new close icons and make current icons Basilisk-specific --- toolkit/themes/linux/global/global.css | 6 ++++++ toolkit/themes/linux/global/jar.mn | 2 +- toolkit/themes/windows/global/global.css | 15 +++++++++++++++ .../themes/windows/global/icons/close-inverted.svg | 19 +++++++++++++++++++ toolkit/themes/windows/global/icons/close.svg | 19 +++++++++++++++++++ toolkit/themes/windows/global/jar.mn | 2 ++ 6 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 toolkit/themes/windows/global/icons/close-inverted.svg create mode 100644 toolkit/themes/windows/global/icons/close.svg (limited to 'toolkit') diff --git a/toolkit/themes/linux/global/global.css b/toolkit/themes/linux/global/global.css index 1f9e7e458..9553725d6 100644 --- a/toolkit/themes/linux/global/global.css +++ b/toolkit/themes/linux/global/global.css @@ -316,6 +316,7 @@ popupnotificationcontent { /* :::::: Close button icons ::::: */ +%ifdef MC_BASILISK .close-icon { -moz-appearance: none; height: 16px; @@ -332,3 +333,8 @@ popupnotificationcontent { .close-icon:hover:active { background-image: -moz-image-rect(url("chrome://global/skin/icons/close.svg"), 0, 48, 16, 32); } +%else +.close-icon { + list-style-image: url("moz-icon://stock/gtk-close?size=menu"); +} +%endif diff --git a/toolkit/themes/linux/global/jar.mn b/toolkit/themes/linux/global/jar.mn index 6a053dec6..b161f8cae 100644 --- a/toolkit/themes/linux/global/jar.mn +++ b/toolkit/themes/linux/global/jar.mn @@ -14,7 +14,7 @@ toolkit.jar: skin/classic/global/filepicker.css skin/classic/global/Filepicker.png (filepicker/Filepicker.png) skin/classic/global/findBar.css - skin/classic/global/global.css +* skin/classic/global/global.css skin/classic/global/groupbox.css skin/classic/global/inContentUI.css skin/classic/global/listbox.css diff --git a/toolkit/themes/windows/global/global.css b/toolkit/themes/windows/global/global.css index aaddef882..416321041 100644 --- a/toolkit/themes/windows/global/global.css +++ b/toolkit/themes/windows/global/global.css @@ -331,6 +331,7 @@ popupnotificationcontent { /* :::::: Close button icons ::::: */ +%ifdef MC_BASILISK .close-icon { list-style-image: url("chrome://global/skin/icons/close.png"); -moz-image-region: rect(0, 20px, 20px, 0); @@ -398,3 +399,17 @@ popupnotificationcontent { } } } +%else +.close-icon { + list-style-image: url("chrome://global/skin/icons/close.svg"); + -moz-image-region: rect(0, 16px, 16px, 0); +} + +.close-icon:hover { + -moz-image-region: rect(0, 32px, 16px, 16px); +} + +.close-icon:hover:active { + -moz-image-region: rect(0, 48px, 16px, 32px); +} +%endif diff --git a/toolkit/themes/windows/global/icons/close-inverted.svg b/toolkit/themes/windows/global/icons/close-inverted.svg new file mode 100644 index 000000000..ac2bd887d --- /dev/null +++ b/toolkit/themes/windows/global/icons/close-inverted.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/toolkit/themes/windows/global/icons/close.svg b/toolkit/themes/windows/global/icons/close.svg new file mode 100644 index 000000000..4093c880d --- /dev/null +++ b/toolkit/themes/windows/global/icons/close.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/toolkit/themes/windows/global/jar.mn b/toolkit/themes/windows/global/jar.mn index 75f4cc650..a2cc9e2ea 100644 --- a/toolkit/themes/windows/global/jar.mn +++ b/toolkit/themes/windows/global/jar.mn @@ -45,6 +45,8 @@ toolkit.jar: skin/classic/global/icons/autocomplete-search.svg (icons/autocomplete-search.svg) skin/classic/global/icons/blacklist_favicon.png (icons/blacklist_favicon.png) skin/classic/global/icons/blacklist_large.png (icons/blacklist_large.png) + skin/classic/global/icons/close.svg (icons/close.svg) + skin/classic/global/icons/close-inverted.svg (icons/close-inverted.svg) skin/classic/global/icons/close-win7.png (icons/close-win7.png) skin/classic/global/icons/close-win7@2x.png (icons/close-win7@2x.png) skin/classic/global/icons/close-inverted-win7.png (icons/close-inverted-win7.png) -- cgit v1.2.3