From d1e38c1eaf9300a920b5d1cecb657425de9a9c70 Mon Sep 17 00:00:00 2001 From: Niklas Gollenstede Date: Mon, 21 Aug 2017 02:46:17 +0200 Subject: [PATCH] actually fix #13; The inversion of the mail in the composer window can be toggled by moving the window to the top of the screen. --- mozilla-org-inverted.css | 2 +- raw-text-dark.css | 3 ++- thunderbird-dark.css | 8 ++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mozilla-org-inverted.css b/mozilla-org-inverted.css index dd8db82..a51d498 100644 --- a/mozilla-org-inverted.css +++ b/mozilla-org-inverted.css @@ -51,7 +51,7 @@ background-color: #fff0; } - img[src$=".png"]:not(:hover), img[src$=".svg"]:not(foo) + img[src$=".png"]:not(:hover):not(.avatar), img[src$=".svg"]:not(foo) { filter: unset; } diff --git a/raw-text-dark.css b/raw-text-dark.css index 0e4bcb7..cd881c7 100644 --- a/raw-text-dark.css +++ b/raw-text-dark.css @@ -13,7 +13,8 @@ @-moz-document regexp("^moz-extension://(?!.*[.]html?(:?$|[?#])).*$"), - regexp("^https?://(?!(?:tools|www)[.]ietf[.]org).*[.](?:css|js|txt)$") + regexp("^https?://(?!(?:tools|www)[.]ietf[.]org).*[.](?:css|js|txt)$"), + regexp("^file://.*[.](?:css|js|txt)$") { :root:not([class])>body:not([class])>pre:only-child /* .txt files */ { diff --git a/thunderbird-dark.css b/thunderbird-dark.css index 3a24dda..b10b63f 100644 --- a/thunderbird-dark.css +++ b/thunderbird-dark.css @@ -44,7 +44,7 @@ { margin-top: -2px; } /* exclude window button area */ - #titlebar-placeholder-on-TabsToolbar-for-captions-buttons, #TabsToolbar + #titlebar-placeholder-on-TabsToolbar-for-captions-buttons:not(foo) { background: transparent; } window[sizemode="maximized"] #titlebar-placeholder-on-TabsToolbar-for-captions-buttons { background-image: linear-gradient(180deg, transparent 90%, black 90%); } @@ -99,7 +99,11 @@ #content-frame /* #headers-box .color-button */ { - /* filter: invert(100%) hue-rotate(180deg); */ + filter: invert(100%) hue-rotate(180deg); + } + window[screenY="0"] #content-frame + { /* this is a hack. To turn off the inversion on the compose textbox, move the winwo to the very top of the screen */ + filter: unset; } /* macOS fix */