GithubHelp home page GithubHelp logo

Dark mode about mailgo HOT 13 CLOSED

manzinello avatar manzinello commented on May 18, 2024
Dark mode

from mailgo.

Comments (13)

manzinello avatar manzinello commented on May 18, 2024 1

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.

manzinello avatar manzinello commented on May 18, 2024 1

No problem and thank you again for your suggestions!

Here 2 screens of the new (colorful) dark mode.

mailgo-mail-dark

mailgo-tel-dark

Maybe I will close this issue, but if you want to give other suggestions they will be appreciated, thank you!

from mailgo.

Kvanrooyen avatar Kvanrooyen commented on May 18, 2024

If no one is working on this, I would like to make a start on this.

from mailgo.

Kvanrooyen avatar Kvanrooyen commented on May 18, 2024

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.

manzinello avatar manzinello commented on May 18, 2024

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.

Kvanrooyen avatar Kvanrooyen commented on May 18, 2024

I've had a chance now to test a little, during this time I have noticed a few things.

  1. When using dark mode, the application names are all the same colour (see screenshot for reference) whereas in the default mode, they are coloured.
    Dark Modal
    Default Modal
  2. 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.

manzinello avatar manzinello commented on May 18, 2024

Thank you so much Keagan! All your suggestions/impressions are really appreciated, in particular:

  1. 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;
  2. 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.

Kvanrooyen avatar Kvanrooyen commented on May 18, 2024

I agree with you, I think a combination of the two would work best

from mailgo.

manzinello avatar manzinello commented on May 18, 2024

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.

manzinello avatar manzinello commented on May 18, 2024

Relased mailgo 0.9.10 with a colorful dark mode and the new dark class. Thank you again!

from mailgo.

Kvanrooyen avatar Kvanrooyen commented on May 18, 2024

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.

Kvanrooyen avatar Kvanrooyen commented on May 18, 2024

Looks good. I think you can close this issue, if I need to I can always open it again

from mailgo.

manzinello avatar manzinello commented on May 18, 2024

Thank you!

from mailgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.