Skip to content

Commit

Permalink
Fixed styles
Browse files Browse the repository at this point in the history
  • Loading branch information
adokseo committed Jan 9, 2022
1 parent 5890744 commit ebc14f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions extension-features.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,17 +296,17 @@ document.addEventListener('ui-styles', function () {

if (storage.background_color) {
if (storage.hasOwnProperty('opacity')) {
this.surface.style.setProperty('background-color', 'rgba(' + storage.background_color.join(',') + ',' + storage.opacity + ')', 'important');
extension.ui.surface.style.setProperty('background-color', 'rgba(' + storage.background_color.join(',') + ',' + storage.opacity + ')', 'important');
} else {
this.surface.style.setProperty('background-color', 'rgba(' + storage.background_color.join(',') + ',0.8)', 'important');
extension.ui.surface.style.setProperty('background-color', 'rgba(' + storage.background_color.join(',') + ',0.8)', 'important');
}
}

if (storage.text_color) {
this.surface.style.setProperty('color', 'rgb(' + storage.text_color.join(',') + ')', 'important');
extension.ui.surface.style.setProperty('color', 'rgb(' + storage.text_color.join(',') + ')', 'important');
}

if (storage.blur) {
this.surface.style.setProperty('backdrop-filter', 'blur(' + storage.blur + 'px)', 'important');
extension.ui.surface.style.setProperty('backdrop-filter', 'blur(' + storage.blur + 'px)', 'important');
}
});
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Frame By Frame",
"description": "__MSG_description__",
"version": "3.1",
"version": "3.2",
"default_locale": "en",
"icons": {
"16": "icons/16.png",
Expand Down

0 comments on commit ebc14f9

Please sign in to comment.