-
Notifications
You must be signed in to change notification settings - Fork 17
Follow browser's light/dark theme style #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The style sheet already uses CSS system colors. The |
|
@Rob--W, could you spin a new version using the suggested change? (if you're o.k. with the change) |
Mostly. As it can be seen on the screenshot, there are two non-system colors, which are hard to read in dark mode:
By the way, thanks for working on this! I don’t have the right to merge and release this (I’m not even a contributor until #78 is accepted), but I’d also love to see this released. |
ec33672 to
a1ff730
Compare
extension/dialog.css
Outdated
|
|
||
| #url-protocol.https { | ||
| color: green; | ||
| color: light-dark(green, ActiveText); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you find another system-color more suitable, f.e. AccentColor or Highlight, or should it be just a brighter green like lime?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should remain a shade of green: https is highlighted because it’s good (secure), and good things are conventionally green, not blue (and most definitely not red like ActiveText). lime looks good.
jtotht
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While testing if the settings link works as expected (it does), I realized that the settings page is also light-only. I think this PR is okay even if the settings page remains light-only (it’s rarely used anyway), but if you feel like it, you may give that one as well a go.
extension/dialog.css
Outdated
|
|
||
| #url-protocol.https { | ||
| color: green; | ||
| color: light-dark(green, ActiveText); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should remain a shade of green: https is highlighted because it’s good (secure), and good things are conventionally green, not blue (and most definitely not red like ActiveText). lime looks good.
a5ca666 to
33d6f38
Compare
extension/dialog.css
Outdated
| } | ||
|
|
||
| html, body { | ||
| color-scheme: light dark; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you put this under :root for consistency? Or even meta color-scheme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hadn't been aware of the <meta name="color-scheme">, previously. Do you prefer it declared with a <meta> element? I'll replace it accordingly.
ea8cba1 to
7433364
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding <meta name="color-scheme" content="light dark"> here as well. However, there are still a few hardcoded colors (three border colors and a shadow color), which, although aren’t unreadable (there’s nothing to read there), don’t look great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, there are still a few hardcoded colors (three border colors and a shadow color), which... don’t look great.
Few images for comparison:
![]() |
![]() |
![]() |
![]() |
I don't think anything but a dark (black) shadow makes sense. If both of you and @Rob--W think a glow vs. shadow with the dark scheme is better, I'll update the change appropriately.






Should sufficiently solve #63: