diff --git a/webextension/css/popup.css b/webextension/css/popup.css index 045ca64..5430043 100644 --- a/webextension/css/popup.css +++ b/webextension/css/popup.css @@ -28,6 +28,37 @@ table.unstriped tbody tr { background-color: #fefefe; } +[data-identity-icon="fingerprint"] { + --identity-icon: url('/img/usercontext.svg#fingerprint'); + --identity-icon-color: #00a7e0; +} + +[data-identity-icon="briefcase"] { + --identity-icon: url('/img/usercontext.svg#briefcase'); + --identity-icon-color: #ff9216; +} + +[data-identity-icon="dollar"] { + --identity-icon: url('/img/usercontext.svg#dollar'); + --identity-icon-color: #7dc14c; +} + +[data-identity-icon="cart"] { + --identity-icon: url('/img/usercontext.svg#cart'); + --identity-icon-color: #ee5195; +} + +.userContext-icon { + background-image: var(--identity-icon); + background-position: center center; + background-repeat: no-repeat; + background-size: contain; + filter: url('/img/filters.svg#fill'); + fill: var(--identity-icon-color); + width: 32px; + height: 32px; +} + .edit-identities { background: #DCDBDC; } diff --git a/webextension/img/filters.svg b/webextension/img/filters.svg new file mode 100644 index 0000000..1f377b9 --- /dev/null +++ b/webextension/img/filters.svg @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/webextension/js/popup.js b/webextension/js/popup.js index 0e60c6e..316c5c9 100644 --- a/webextension/js/popup.js +++ b/webextension/js/popup.js @@ -6,7 +6,7 @@ browser.runtime.sendMessage('get-identities').then(reply=> { const identityName = identity.l10nID.match(/userContext(\w*)\.label/)[IDENTITY_L10NID_MATCH_INDEX]; const identityRow = `