Update SVGs for page actions and restore locked edit icon behavior

The locked edit icon will now show on protected pages.

Additional changes:
* userpage and userNormal was not minified. This has been fixed.

Bug: T174105
Change-Id: I0ef9c4cf3ea6cd1c550023fdf99581b665b459b2
This commit is contained in:
jdlrobson 2017-09-28 13:30:43 -05:00 committed by Jdlrobson
parent 9bb62a254d
commit 2e8ea6219f
8 changed files with 9 additions and 8 deletions

View file

@ -1101,11 +1101,12 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
// Full wikitext editing is not possible via the api and hard on mobile devices.
$editArgs['section'] = self::LEAD_SECTION_NUMBER;
}
$userCanEdit = $title->quickUserCan( 'edit', $this->getUser() );
return [
'id' => 'ca-edit',
'text' => '',
'itemtitle' => $this->msg( 'mobile-frontend-pageaction-edit-tooltip' ),
'class' => MinervaUI::iconClass( 'edit-enabled', 'element' ),
'class' => MinervaUI::iconClass( $userCanEdit ? 'edit-enabled' : 'edit', 'element' ),
'links' => [
'edit' => [
'href' => $title->getLocalURL( $editArgs )

View file

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="24" height="23" viewBox="0 0 24 23"><title>star</title><path fill="#72777d" fill-rule="evenodd" d="M12 4.512l2.267 4.777 5.333.66-3.6 3.72.667 5.173L12 16.588l-4.8 2.256.8-5.175-3.733-3.72 5.2-.665L12 4.51zM12 0L8.267 7.432 0 8.626l6 5.84-1.467 8.094L12 18.58l7.333 3.98L18 14.332l6-5.84L15.6 7.3 12 0z"/></svg>
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g id="Page-1" fill="none" fill-rule="evenodd"><g id="watchstar" fill="#54595D"><path d="M8.91 9H1l6.007 5.86L5 23l7-4.319L19 23l-1.995-8.14L23 9h-7.909l-3.09-8-3.09 8zm.054 5.188L5.312 11h4.818L12 5.747 13.881 11h4.82l-3.653 3.2 1.099 4.956L12 16.516l-4.136 2.627 1.1-4.955z" id="Page-1"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 396 B

After

Width:  |  Height:  |  Size: 402 B

View file

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="24" height="23" viewBox="0 0 24 23"><title>watchlist-filled</title><path fill="#00af89" fill-rule="evenodd" d="M12 0L8.267 7.432 0 8.626l6 5.84-1.467 8.094L12 18.58l7.333 3.98L18 14.332l6-5.84L15.6 7.3 12 0z"/></svg>
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g id="Page-1" fill="none" fill-rule="evenodd"><g id="watchstar-selected" fill="#00AF89"><path id="Page-1" d="M8.91 9H1l6.007 5.86L5 23l7-4.319L19 23l-1.995-8.14L23 9h-7.909l-3.09-8z"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 297 B

View file

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 -410 2048 2048"><path fill="#72777d" d="M307.05 1073.838q32.507 22.505 97.522 87.52L1659.846 26.108q-33.757-60.014-101.272-82.52zm-135.03-51.26L1563.576-225.197q156.284 26.256 276.31 155.034Q1959.91 58.617 1968.663 217.4L575.858 1470.177 60.746 1525.19z"/></svg>
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g id="Page-1" fill="none" fill-rule="evenodd"><g id="edit" fill="#54595D"><path d="M6.387 17.996l-1.12-1.12 12.38-12.38 1.12 1.118-12.38 12.382zM21.692 6.83l-3.52-3.521a1.058 1.058 0 0 0-1.495 0L3 16.985V22h5.015L21.692 8.323a1.06 1.06 0 0 0 0-1.493z" id="Fill-1"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 374 B

After

Width:  |  Height:  |  Size: 378 B

View file

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#72777d" viewBox="0 -410 2048 2048"><path d="M1670.264-159.32q-108.757 0-108.757 124.825l1.236 109.993h216.278l-1.23-109.993q1.238-124.824-107.52-124.824zm0-144.596q102.577 0 171.787 77.86 69.21 77.86 69.21 190.324v111.23h108.76v484.46h-699.5V75.5h109.994V-36.968q0-112.464 69.21-189.09 69.208-76.623 170.55-77.86zm-469.632 984.992h170.55l-795.9 716.807-510.417 55.614L173.622 955.44l1027.01-918.254v164.37l-892.3 805.79q32.132 22.245 96.398 86.51l795.902-719.277v306.49z"/></svg>
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g id="Page-1" fill="none" fill-rule="evenodd"><g id="edit-locked" fill="#72777D"><path d="M14 15h.75l-7 7H3v-4.75l9-9V13a2 2 0 0 0 2 2zm7.036-8c.532 0 .964.432.964.964v4.072a.965.965 0 0 1-.964.964h-6.072a.965.965 0 0 1-.964-.964V7.964c0-.532.432-.964.964-.964h.536V5.5S15.5 3 18 3s2.5 2.5 2.5 2.5V7h.536zM19.5 7V5.75C19.5 5 19.5 4 18 4s-1.5 1-1.5 1.75V7h3zM18 11a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 587 B

After

Width:  |  Height:  |  Size: 508 B

View file

@ -1 +1 @@
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="28" height="21" viewBox="0 0 28 21"><title>language switcher</title><path fill="#72777d" fill-rule="evenodd" d="M23.89 16l1.72 5h2.37L22.44 3.94h-3.3L13.34 21h2.37l1.59-5h6.59zm-3.3-10.09l2.77 8.13h-5.54l2.77-8.13zM8.2 2.63h1.18L8.07 0H5.43l.66 1.31A2.34 2.34 0 0 0 8.2 2.63zM16.51 4H.15v2h2.51c.79 2.27 1.98 4.24 3.69 6.08-1.85 1.44-4.09 2.23-6.33 3.01l.66 1.97c2.64-.79 5.01-1.83 7.25-3.54 1.19.92 2.77 1.84 4.62 2.36l.66-1.97c-1.45-.39-2.64-1.05-3.69-1.83 2.5-2.5 3.29-4.99 3.42-5.25l.27-.83h2.64l.66-2zm-8.58 6.67C6.61 9.41 5.43 7.77 4.9 6h6.2c-.66 1.77-1.85 3.28-3.17 4.67-2.11-2.15 0 0 0 0z"/></svg>
<?xml version="1.0" encoding="UTF-8"?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g id="Page-1" fill="none" fill-rule="evenodd"><g id="language-selection" fill="#54595D"><path d="M21.047 20H23L18.443 5h-2.712l-4.774 15h1.953l1.302-4.05h5.424L21.047 20zM16.925 7.062l2.277 6.977h-4.556l2.279-6.975v-.002zM6.726 4c-.738 0-1.411-.187-1.735-.875L4.447 2h2.17l1.085 2h-.976zm4.126 9.926l-.544 1.685a11.228 11.228 0 0 1-3.797-2.024c-1.848 1.462-3.798 2.362-5.968 3.038L0 14.937c1.842-.675 3.687-1.35 5.208-2.588a14.16 14.16 0 0 1-3.038-5.29H.108V5H13.56l-.543 2.062h-2.17c-.382 1.71-1.556 3.802-3.038 5.29.872.674 1.846 1.237 3.042 1.574zM9.116 7.062H4.015c.434 1.576 1.41 3.038 2.496 4.163 1.148-1.286 2.005-2.516 2.603-4.162l.002-.001z" id="Combined-Shape"/></g></g></svg>

Before

Width:  |  Height:  |  Size: 690 B

After

Width:  |  Height:  |  Size: 785 B