Comments (13)
Hi, I'm already working on this (https://mailgo.dev/docs/dark-mode), but if you want to help / give some suggestion it would be awesome!
from mailgo.
No problem and thank you again for your suggestions!
Here 2 screens of the new (colorful) dark mode.
Maybe I will close this issue, but if you want to give other suggestions they will be appreciated, thank you!
from mailgo.
If no one is working on this, I would like to make a start on this.
from mailgo.
Is there anything that you need help with in particular? If not I think I will start by testing what you have and seeing if I can help out that way
from mailgo.
Well a test of dark mode would be very useful! I've implemented it but not tested very well, thank you.
About the dark mode there is something that is not convincing me: the installation if mailgo is not imported in bundle but for example using a <script>
. I want to give the possibility to use the dark mode also importing /dist/mailgo.min.js
and so I create with webpack a /dist/mailgo.dark.min.js
, I don't think it's a good idea. Maybe a config (attached to window
?) is a better idea, I don't know...
from mailgo.
I've had a chance now to test a little, during this time I have noticed a few things.
- When using dark mode, the application names are all the same colour (see screenshot for reference) whereas in the default mode, they are coloured.
- For me the default text colour on the dark theme is a little dark and can be difficult to read for some people
I want to give the possibility to use the dark mode also importing /dist/mailgo.min.js and so I create with webpack a /dist/mailgo.dark.min.js, I don't think it's a good idea.
I agree with this, I was thinking maybe you could use a class
in the HTML. Something like this:
<!-- Default -->
<a href="mailto:[email protected],[email protected]?cc=ciao">[email protected]</a>
<!-- Dark -->
<a href="mailto:[email protected],[email protected]?cc=ciao" class="dark">[email protected]</a>
What do you think?
from mailgo.
Thank you so much Keagan! All your suggestions/impressions are really appreciated, in particular:
- you have right, it could be a good idea to add a colour for the dark mode actions (very light maybe), the colour now appears only on hover;
- thank you so much, I can work on this.
About the dark mode setting I will think about it... Maybe a developer/user want to apply the dark mode to all the mailto
links, if we use the class all the mailto
have to be changed... I really don't know which is the best way to proceed here, maybe a combination of the solutions: if mailto.dark.min.js
is imported all the mailgo are in dark mode, but with mailgo.min.js
you can also specify a single (or more) dark mode mailgo? I don't know, what do you think about?
from mailgo.
I agree with you, I think a combination of the two would work best
from mailgo.
I've worked on the mixed solution (mailgo.dark.min.js or class="dark"), you can see the updated documentation here https://mailgo.dev/docs/installation#dark-mode and here also come examples https://mailgo.dev/docs/dark-mode.
I am also working on your suggestion about the colors also in dark mode!
from mailgo.
Relased mailgo 0.9.10 with a colorful dark mode and the new dark class
. Thank you again!
from mailgo.
I haven't had the chance to look into it yet - been incredibly busy at work lately. I should get some free time this weekend, and will give it look through. Glad I could be of some help!
from mailgo.
Looks good. I think you can close this issue, if I need to I can always open it again
from mailgo.
Thank you!
from mailgo.
Related Issues (20)
- Does not work with empty recipient field HOT 1
- Custom actions? HOT 7
- Export of validateEmail function HOT 7
- Add unit tests HOT 8
- Run unit tests automatically on each push or pull request HOT 2
- Custom action displayed even with `actions.custom` set to false. HOT 24
- Add unit tests around configuration
- Error when using mailgoDirectRender HOT 2
- Custom Actions with Tel Not Displayed HOT 1
- Set Tel Title HOT 1
- Fix code scanning alert - DOM text reinterpreted as HTML
- Vue/Buefy mailgo doesn't work in production. HOT 3
- Question: hide body and subject in modal HOT 14
- Doesn't work in links inside dynamically created elements HOT 3
- Tel links with extensions HOT 3
- mailgo modal doesn't open when clicking on telephone like if you exclude a telephone action e.g. whatsapp using window.mailgoConfig HOT 2
- Subject line opens up in 'to' address in gmail / direct render HOT 4
- Clicking the 'copy' button only copies the 'to' address. HOT 6
- Dark theme is not supported with direct render. HOT 8
- Passing a dictionary with configuration options to the direct renderer had no affect when using direct render. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailgo.