From 157f788545d726debc8bed74562c0dee8d54036a Mon Sep 17 00:00:00 2001 From: John Goodliff Date: Sat, 25 Dec 2021 18:55:50 -0700 Subject: [PATCH] Fix bug where new installations have compose pane styling enabled automatically. Add additional debug messages. Increase icon size --- img/icon.svg | 20 ++++++++++---------- js/background.js | 2 ++ js/content.js | 6 +++++- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/img/icon.svg b/img/icon.svg index 31ae405..468e636 100644 --- a/img/icon.svg +++ b/img/icon.svg @@ -7,7 +7,7 @@ viewBox="0 0 101.6 101.6" version="1.1" id="svg5" - inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)" + inkscape:version="1.1 (c68e22c387, 2021-05-23)" sodipodi:docname="icon.svg" inkscape:export-filename="C:\Users\johny\Documents\WORKSPACE\PERSONAL\CODE\dark-mode-for-outlook\img\icon4_marquee.png" inkscape:export-xdpi="384" @@ -27,13 +27,13 @@ inkscape:pagecheckerboard="1" inkscape:document-units="px" showgrid="false" - inkscape:zoom="0.22627417" - inkscape:cx="114.90485" - inkscape:cy="-1688.2174" - inkscape:window-width="3840" - inkscape:window-height="2080" - inkscape:window-x="-11" - inkscape:window-y="-11" + inkscape:zoom="0.64" + inkscape:cx="-110.15625" + inkscape:cy="110.15625" + inkscape:window-width="1920" + inkscape:window-height="1021" + inkscape:window-x="-7" + inkscape:window-y="-7" inkscape:window-maximized="1" inkscape:current-layer="layer1" inkscape:snap-bbox="true" @@ -90,7 +90,7 @@ + id="color-profile935" /> @@ -649,7 +649,7 @@ + transform="matrix(1.1,0,0,1.1,1.3378523,0.63821636)"> { // Url property is only present when we have the 'tabs' permission if ('url' in tab && 'status' in changeInfo && changeInfo.status === 'loading') { diff --git a/js/content.js b/js/content.js index dd31e31..fa4f91c 100644 --- a/js/content.js +++ b/js/content.js @@ -12,7 +12,11 @@ console.debug('[' + pad(d.getHours()) + ':' + pad(d.getMinutes()) + '.' + pad(d.getSeconds()) + '] DMFO: ' + msg); }; - chrome.storage.sync.get({ composePaneStyling: true }, ({ composePaneStyling }) => { + log('Content script loaded') + + chrome.storage.sync.get({ composePaneStyling: false }, ({ composePaneStyling }) => { + log('Options loaded') + const getBottomBar = (composePane) => { return composePane.querySelector('div[style="background-color: rgb(250, 249, 248);"') };