Browse Source

New picker icon

pull/33/head
brantje 2 years ago
parent
commit
026724419d
No account linked to committer's email address
3 changed files with 14 additions and 6 deletions
  1. 10
    0
      icons/icon.svg
  2. 2
    4
      js/background/inject/inject.js
  3. 2
    2
      manifest.json

+ 10
- 0
icons/icon.svg View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 595.3 841.9" enable-background="new 0 0 595.3 841.9" xml:space="preserve">
<path fill="#0082C8" d="M70.2,193.5v227.4c0,146.5,200.7,227.4,227.4,227.4s227.4-80.9,227.4-227.4V193.5H70.2z M373.9,530H221.4
v-43.5h152.5V530z M375.9,419.6l-46.8,35.5c0,0-25.4-42.1-33.4-59.5c-8,19.4-33.4,59.5-33.4,59.5L214,419.6c0,0,38.1-42.1,47.5-49.5
c-9.4-0.7-66.2-12.7-66.2-12.7l18.7-55.5c0,0,43.5,16.1,61.5,27.4c-3.3-17.4-7.4-66.9-7.4-66.9h57.5c0,0-4,52.2-8,66.9
c8-4,62.9-27.4,62.9-27.4l18.1,55.5c0,0-50.2,12-67.6,12.7C343.1,379.5,375.9,419.6,375.9,419.6z"/>
</svg>

+ 2
- 4
js/background/inject/inject.js View File

@@ -62,12 +62,10 @@ $j(document).ready(function () {
var margin = (el.css('margin')) ? parseInt(el.css('margin').replace('px', '')) : 0;
var padding = (el.css('padding')) ? parseInt(el.css('padding').replace('px', '')) : 0;

var pickerIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAQAAAD/5HvMAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQ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EqFFNusZdVBrhzn+uo4k9CxGkwuBa3arV/ARwVEg4dVk0piAaivNPwNv/zA+FkSEQrLF/jyvteziisP3oouCAmFhYRLEwMHBQ2QpYs4yEgbfsflwyWnMm2PLkAAAAASUVORK5CYII=';
var pickerIcon = API.extension.getURL('/icons/icon.svg');
$j(el).css('background-image', 'url("'+ pickerIcon +'")');
$j(el).css('background-size', 'contain');
$j(el).css('background-repeat', 'no-repeat');
$j(el).css('background-position-x', 'right');
$j(el).css('background-position', 'right 3px center');


function onClick (e) {

+ 2
- 2
manifest.json View File

@@ -1,7 +1,7 @@
{
"name": "Passman",
"short_name": "Passman",
"version": "1.1.1",
"version": "1.1.2",
"manifest_version": 2,
"author": "Sander Brand",

@@ -82,6 +82,6 @@
}
],
"web_accessible_resources": [
"html/inject/password_picker.html", "fonts/*"
"html/inject/password_picker.html", "fonts/*","icons/*"
]
}

Loading…
Cancel
Save