From 78cbb021918a4adff58bcfa0ff639612dd9a94cf Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 12 Apr 2019 13:22:37 +0100 Subject: [PATCH] Update OOUI icons to latest versions * web.svg was deprecated in favour of browser.svg. * Update sad-face.svg based on OOUI speechBubble-ltr/rtl * Apply preview-generic/disambiguation grey colour using CSS. Change-Id: I8feea1b526ff85c4ffdee21ef42c616e72881e76 --- extension.json | 18 ++++++++++++++---- resources/ext.popups.images/articles-ltr.svg | 8 ++++++++ resources/ext.popups.images/articles-rtl.svg | 8 ++++++++ resources/ext.popups.images/browser-ltr.svg | 7 +++++++ resources/ext.popups.images/browser-rtl.svg | 7 +++++++ resources/ext.popups.images/close.svg | 7 +++++-- resources/ext.popups.images/journal-ltr.svg | 2 +- resources/ext.popups.images/journal-rtl.svg | 2 +- .../multiple-articles-ltr.svg | 7 ------- .../multiple-articles-rtl.svg | 7 ------- resources/ext.popups.images/newspaper-ltr.svg | 2 +- resources/ext.popups.images/newspaper-rtl.svg | 2 +- resources/ext.popups.images/reference.svg | 2 +- resources/ext.popups.images/sad-face-ltr.svg | 7 +++++++ resources/ext.popups.images/sad-face-rtl.svg | 7 +++++++ resources/ext.popups.images/sad-face.svg | 6 ------ resources/ext.popups.images/web.svg | 8 -------- src/ui/templates/popup/popup.less | 6 ++++++ 18 files changed, 74 insertions(+), 39 deletions(-) create mode 100644 resources/ext.popups.images/articles-ltr.svg create mode 100644 resources/ext.popups.images/articles-rtl.svg create mode 100644 resources/ext.popups.images/browser-ltr.svg create mode 100644 resources/ext.popups.images/browser-rtl.svg delete mode 100644 resources/ext.popups.images/multiple-articles-ltr.svg delete mode 100644 resources/ext.popups.images/multiple-articles-rtl.svg create mode 100644 resources/ext.popups.images/sad-face-ltr.svg create mode 100644 resources/ext.popups.images/sad-face-rtl.svg delete mode 100644 resources/ext.popups.images/sad-face.svg delete mode 100644 resources/ext.popups.images/web.svg diff --git a/extension.json b/extension.json index 1ccd7384c..1bad755a4 100644 --- a/extension.json +++ b/extension.json @@ -93,7 +93,12 @@ "images": { "popups-settings": "resources/ext.popups.images/cog.svg", "popups-close": "resources/ext.popups.images/close.svg", - "preview-generic": "resources/ext.popups.images/sad-face.svg", + "preview-generic": { + "file": { + "ltr": "resources/ext.popups.images/sad-face-ltr.svg", + "rtl": "resources/ext.popups.images/sad-face-rtl.svg" + } + }, "footer": { "file": { "ltr": "resources/ext.popups.images/footer-ltr.svg", @@ -102,8 +107,8 @@ }, "preview-disambiguation": { "file": { - "ltr": "resources/ext.popups.images/multiple-articles-ltr.svg", - "rtl": "resources/ext.popups.images/multiple-articles-rtl.svg" + "ltr": "resources/ext.popups.images/articles-ltr.svg", + "rtl": "resources/ext.popups.images/articles-rtl.svg" } }, "reference-generic": "resources/ext.popups.images/reference.svg", @@ -125,7 +130,12 @@ "rtl": "resources/ext.popups.images/newspaper-rtl.svg" } }, - "reference-web": "resources/ext.popups.images/web.svg" + "reference-web": { + "file": { + "ltr": "resources/ext.popups.images/browser-ltr.svg", + "rtl": "resources/ext.popups.images/browser-rtl.svg" + } + } } }, "ext.popups": { diff --git a/resources/ext.popups.images/articles-ltr.svg b/resources/ext.popups.images/articles-ltr.svg new file mode 100644 index 000000000..cdc71b3fd --- /dev/null +++ b/resources/ext.popups.images/articles-ltr.svg @@ -0,0 +1,8 @@ + + + + articles + + + + diff --git a/resources/ext.popups.images/articles-rtl.svg b/resources/ext.popups.images/articles-rtl.svg new file mode 100644 index 000000000..ba3dcf39e --- /dev/null +++ b/resources/ext.popups.images/articles-rtl.svg @@ -0,0 +1,8 @@ + + + + articles + + + + diff --git a/resources/ext.popups.images/browser-ltr.svg b/resources/ext.popups.images/browser-ltr.svg new file mode 100644 index 000000000..91ae0a696 --- /dev/null +++ b/resources/ext.popups.images/browser-ltr.svg @@ -0,0 +1,7 @@ + + + + browser + + + diff --git a/resources/ext.popups.images/browser-rtl.svg b/resources/ext.popups.images/browser-rtl.svg new file mode 100644 index 000000000..d9d8f683d --- /dev/null +++ b/resources/ext.popups.images/browser-rtl.svg @@ -0,0 +1,7 @@ + + + + browser + + + diff --git a/resources/ext.popups.images/close.svg b/resources/ext.popups.images/close.svg index 22619b95b..4ed25ba2e 100644 --- a/resources/ext.popups.images/close.svg +++ b/resources/ext.popups.images/close.svg @@ -1,5 +1,8 @@ - - + + close + + + diff --git a/resources/ext.popups.images/journal-ltr.svg b/resources/ext.popups.images/journal-ltr.svg index 482154adc..e1dea555b 100644 --- a/resources/ext.popups.images/journal-ltr.svg +++ b/resources/ext.popups.images/journal-ltr.svg @@ -3,5 +3,5 @@ journal - + diff --git a/resources/ext.popups.images/journal-rtl.svg b/resources/ext.popups.images/journal-rtl.svg index 20331b952..236045911 100644 --- a/resources/ext.popups.images/journal-rtl.svg +++ b/resources/ext.popups.images/journal-rtl.svg @@ -3,5 +3,5 @@ journal - + diff --git a/resources/ext.popups.images/multiple-articles-ltr.svg b/resources/ext.popups.images/multiple-articles-ltr.svg deleted file mode 100644 index 032536c6d..000000000 --- a/resources/ext.popups.images/multiple-articles-ltr.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/resources/ext.popups.images/multiple-articles-rtl.svg b/resources/ext.popups.images/multiple-articles-rtl.svg deleted file mode 100644 index 8ce047c91..000000000 --- a/resources/ext.popups.images/multiple-articles-rtl.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/resources/ext.popups.images/newspaper-ltr.svg b/resources/ext.popups.images/newspaper-ltr.svg index c5cdde77e..1f1e496ab 100644 --- a/resources/ext.popups.images/newspaper-ltr.svg +++ b/resources/ext.popups.images/newspaper-ltr.svg @@ -3,5 +3,5 @@ newspaper - + diff --git a/resources/ext.popups.images/newspaper-rtl.svg b/resources/ext.popups.images/newspaper-rtl.svg index cb6d78529..da22d65c4 100644 --- a/resources/ext.popups.images/newspaper-rtl.svg +++ b/resources/ext.popups.images/newspaper-rtl.svg @@ -3,5 +3,5 @@ newspaper - + diff --git a/resources/ext.popups.images/reference.svg b/resources/ext.popups.images/reference.svg index 65746f5da..a255cc49e 100644 --- a/resources/ext.popups.images/reference.svg +++ b/resources/ext.popups.images/reference.svg @@ -3,5 +3,5 @@ reference - + diff --git a/resources/ext.popups.images/sad-face-ltr.svg b/resources/ext.popups.images/sad-face-ltr.svg new file mode 100644 index 000000000..c9eb9e326 --- /dev/null +++ b/resources/ext.popups.images/sad-face-ltr.svg @@ -0,0 +1,7 @@ + + + + sad face + + + diff --git a/resources/ext.popups.images/sad-face-rtl.svg b/resources/ext.popups.images/sad-face-rtl.svg new file mode 100644 index 000000000..6eacd6cb8 --- /dev/null +++ b/resources/ext.popups.images/sad-face-rtl.svg @@ -0,0 +1,7 @@ + + + + sad face + + + diff --git a/resources/ext.popups.images/sad-face.svg b/resources/ext.popups.images/sad-face.svg deleted file mode 100644 index 9b64c2ab9..000000000 --- a/resources/ext.popups.images/sad-face.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/resources/ext.popups.images/web.svg b/resources/ext.popups.images/web.svg deleted file mode 100644 index 96436f633..000000000 --- a/resources/ext.popups.images/web.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - web - - - - diff --git a/src/ui/templates/popup/popup.less b/src/ui/templates/popup/popup.less index 718e5e1d2..2a74dd5ce 100644 --- a/src/ui/templates/popup/popup.less +++ b/src/ui/templates/popup/popup.less @@ -26,12 +26,18 @@ .mw-ui-icon { // mw-ui-icon assumes a font size of 16px so we must declare it here font-size: 16px; + + &:before { + // Use fixed size to prevent icon blur. + background-size: 20px; + } } // icons positioned at the top of the popup .mw-ui-icon-preview-disambiguation, .mw-ui-icon-preview-generic { margin: 21px 0 8px 0; + opacity: 0.25; } .mwe-popups-container {