-
Notifications
You must be signed in to change notification settings - Fork 50
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
Feature/dark mode UI v2 #309
base: releaseCandidate
Are you sure you want to change the base?
Conversation
… all data' instead
…life for reusability
…n for options main page with popup (and viceversa)
…eature wouldn't work
…the user picked theme
Hi @Astisme, Few remarks, could you :
Thank you ! |
Hi I'm not sure if I'll be able to use the standard implementation of the toggle since I have to do more than simply set a localstorage variable. For the other points, I'm still not done aligning the styles. I thought one could use the sun/moon from the popup to quickly change the color scheme when in other pages (export/ import/ ...) but if you think it's unnecessary then please confirm it and I'll remove it |
Hi @Astisme, Regarding the accent options and dark theme, I'm divided into uniformize the option (and maybe update current toggle component to handle other values than true/false) and providing the preview of the accent theme |
@tprouvot I need to understand more clearly what you want to achieve with the borders: do you want them to be of the same color aka an even subtler gray? #000000 --inspector-text
#00396B --inspector-accent
#005FB2 --inspector-primary
#006B2D --inspector-success-background
#006DCC --inspector-accent
#0070D2 --inspector-primary
#009999 --inspector-true-boolean
#009DCC --inspector-accent
#00D9FF --inspector-primary
#0176d3 --inspector-primary
#061C3F --inspector-accent
#1589EE --inspector-primary
#16325C --inspector-accent
#54698D --inspector-neutral
#606061 --inspector-neutral
#61FAB8 --inspector-success
#706E6B --inspector-neutral
#777777 --inspector-neutral
#870500 --inspector-error
#990000 --inspector-false-boolean
#990099 --inspector-number
#999900 --inspector-object
#9FAAB5 --inspector-neutral
#A61A14 --inspector-warning
#AAAAAA --inspector-neutral
#B0ADAB --inspector-neutral
#B0C4DF --inspector-export-background
#C0C0C0 --inspector-neutral
#C23934 --inspector-error
#C9C7C5 --inspector-neutral
#CCCCFF --inspector-working
#D8BE5F --inspector-warning
#D8DDE6 --inspector-neutral
#DDDBDA --inspector-neutral
#E0A4B5 --inspector-import-background
#ECEBEA --inspector-background
#EEEEEE --inspector-background
#EEF1F6 --inspector-backgqound
#EEF6F1 --inspector-background
#EF7EAD --inspector-svg-picture
#F3F3F3 --inspector-background
#F4F6F9 --inspector-background
#F7F7FB --inspector-background
#F7F9FB --inspector-background
#FFEE33 --inspector-warning
#FFFFFF --inspector-background As you can see, I've tried to simplify the colors for easier maintainability and better understanding. At the current state of the art, we have 5 different types of gray. Do you want to add more? Do you want me to rename them? --inspector-black: #000000;
--inspector-white: #FFFFFF;
--inspector-dark-white: #F3F3F3;
--inspector-very-light-gray: #AFAFAF;
--inspector-subtle-gray: #C9C9C9;
--inspector-half-gray: #444444;
--inspector-other-half-gray: #BBBBBB; |
Hi @Astisme, For the simplification of the colors it's a good point and as you said it will be easier to maintain 👍 We can have a short meeting to discuss about it I think I would be easier. |
Yes, I reduced the number of grays. |
Hi @Astisme Friends request seems to be disabled, easiest way would be to add me on Linkedin |
addon/button.js
Outdated
if (!window[0].location.pathname.endsWith("popup.html")) { | ||
return setTimeout(() => setupColorChange(error += 1), 500); | ||
} |
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.
Is it still needed since the change color action was removed from popup ?
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.
It's needed because the popup also changes colors based on the color/accent scheme
Next Steps
|
Describe your changes
Complete overhaul to implement dark mode on every page.
This inlcudes the following:
Ability to switch to light/dark mode from within the popupAbility to switch to light/dark mode from the options page
Ability to pick between default and accent mode form within the options page
Synchronization of theme & accent between any inspector page and any other inspector page (including popup)
Load of page with the latest theme and accent (
fast-theme.js
)New styling for inspector button (need
inspector.css
in the manifest) when theme != light && accent != defaultWhile I was working on CSS,
While I was trying to test on Firefox,
links.js
not being recognized as a module (removed from the manifest and renamed tolinks.mjs
)Updated the readme.md with the newest command for thesf
cli.Issue ticket number and link
Issue #64
Checklist before requesting a review