moving icon indicating copy to clipboard operation
moving copied to clipboard

[UI] Full Dark Mode

Open Vel-San opened this issue 5 years ago • 6 comments

Hey ^_^

I'm using your Moving theme and loved it, so I decided to make a Dark version of it to reduce eye restraint!

I also have several other fixes and improvements/Add-ons that I'm using and will create PRs for them separately.

If interested, you can see it in action here: ~https://vel-san.github.io/~ https://bleeding-action-man.github.io/

Thanks for your work!

Vel-San avatar May 07 '20 10:05 Vel-San

Wow, cool, I love this theme @Vel-San ! Can you update a theme trigger in the _config.yml file? Current changes will overwrite the light theme, so I cannot merge it.

You can add an attribute like dark-mode: true in the under the moving label, and load the different css according to that, if you have any issues in this feature, I'm glad to help!

huangyz0918 avatar May 07 '20 16:05 huangyz0918

@huangyz0918 Thanks!

Yes of course, personally i wanted to make a button that alternates between dark/light mode. I didn't know about the trigger, i'll do it :) !

Vel-San avatar May 07 '20 16:05 Vel-San

I didn't know about the trigger, i'll do it :) !

Since the Jekyll is a static blog framework, a dynamic button is inappropriate here. Actually it is a really simple feature, you can refer to the Liquid Language, that builds Jekyll theme.

huangyz0918 avatar May 07 '20 16:05 huangyz0918

~~@huangyz0918 Do you know if there's a way to override colors in scss based on the trigger BOOL in the _config ? Or can i override colors in the html ? will the classes take the new overridden variable? if not, i think i'll be duplicating each class into light and dark .. I feel this isn't the proper solution.~~

I'm so stupid! I don't know why i tried to make it so complex for nothing 😄 !

Issue should be fixed now. Default is Light theme!

Vel-San avatar May 07 '20 17:05 Vel-San

Note: I still need to fix the difference between Dates and Post titles ( Grey and White / Grey and Black )

I'll release a fix soon :)

Vel-San avatar May 07 '20 19:05 Vel-San

Done! I've fixed all mismatching colors. Previosly everything was set on text-color, i've changed it for better readability and eye-friendlly between Black/Grey/White.

Fixes applied on both Light and Dark modes. I also published them on my own version here as well

https://vel-san.github.io/

Vel-San avatar May 07 '20 21:05 Vel-San