From d1b450f9583c1081d9b0b5fddf2bec16ca053ff0 Mon Sep 17 00:00:00 2001 From: zubyj Date: Sat, 5 Apr 2025 19:20:20 -0700 Subject: [PATCH 01/10] fix screen flashing from white to black on dark mode --- src/popup/popup.css | 5 +- src/popup/popup.html | 62 +++++++++++++++ src/popup/settings.html | 50 +++++++++++- src/utils/theme.ts | 168 +++++++++++++++++++++++++++++++++++++++- 4 files changed, 282 insertions(+), 3 deletions(-) diff --git a/src/popup/popup.css b/src/popup/popup.css index 5796119..e3584ef 100644 --- a/src/popup/popup.css +++ b/src/popup/popup.css @@ -31,6 +31,8 @@ --button-text-color: #e8eaed; } +/* Transitions are now managed by script (see HTML files) */ + body { display: flex; flex-direction: column; @@ -41,7 +43,8 @@ body { font-size: calc(var(--font-size-base) * var(--scale-factor)); font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, sans-serif; padding: calc(25px * var(--scale-factor)) calc(20px * var(--scale-factor)); - width: calc(400px * var(--scale-factor)); + width: 400px; + height: 500px; margin: 0; line-height: 1.5; letter-spacing: 0.01em; diff --git a/src/popup/popup.html b/src/popup/popup.html index d4614aa..f35f522 100644 --- a/src/popup/popup.html +++ b/src/popup/popup.html @@ -5,6 +5,55 @@ Leetcode Explained + + + @@ -46,6 +95,19 @@ + +

AltStyle によって変換されたページ (->オリジナル) /

\ No newline at end of file diff --git a/src/popup/settings.html b/src/popup/settings.html index 9963160..15f560c 100644 --- a/src/popup/settings.html +++ b/src/popup/settings.html @@ -4,6 +4,41 @@ Settings + + + @@ -20,7 +55,7 @@ -
- - -
- - -

- Open a Leetcode problem to get started -

- - - - -
+ 
- -
- -
+ + +

+ Open a Leetcode problem to get started +

+ + +
+ + + +
+ 
+ + +
+ +
+
+ + +