Open cheshire137 opened 8 years ago
Hi!
I started to work on this issue. What do you think about the layout I designed? (see picture below) As you can see, I also added the settings page but we can hide it while we don't have new settings features.
Once you say it looks ok, I will keep working on the other pages...
This looks nice to me! Thanks for starting on it. 😄
My pleasure @cheshire137! Glad it looks good :)
The idea is: I am creating a .less file called "DarkNight" (living in Settings/StyleThemes folder) that will overwrite the default colors once the night mode is activated.
@cheshire137 I am having an issue with the @import feature in less.
I was hoping I could do @import "StyleThemes/DarkNight.less"
in 'Settings/Settings.less' file just so the Setting files would be responsible to manage this kinda of change (themes), however it does not work... it just works when I add @import "../Settings/StyleThemes/DarkNight.less"
straight to the App.less file. Do you know how can I work with "nested" imports? Let me know if you got any questions about what I just said.
Thanks!
Despite the file naming, all the LESS is included in all the views. It's just separated into files so it's easier to work with. You'll need to scope your styling via classes to keep it restricted to certain sections.
I would do the import in App.less with the other imports, since it'll all be applied across the whole app anyway.
It would be nice to see a dark theme available as an option. Beyond that, it would be cool to auto switch to the dark theme at night. We could approximate that by checking the current time and, if it's between 8 pm - 5 am, use the dark theme.
We don't have a settings page yet. This could be the first setting available on such a page, or we could omit having a settings page until we have more settings. Auto enabling the night theme based on time of day would be a way to avoid having a settings page for now.