Repository navigation
Dark mode feature - #16
Conversation
|
Thanks for your work so far! Instead of having one toggle for dark mode, could you change it to get a general UI settings object with dark mode being one setting within the object? That way, we can more easily expand UI settings without needing to continue adding more settings to each of the template parameters. Other comments:
|
|
Not yet, just looked at screenshots. |
|
I'll save all the UI settings in one file: |
…iately; created dark version of bitcoind CSS
|
You might not like this level of refactoring but
|
|
The latest screenshot looks great! Most of those changes sound fine, but I'll have to take a look once I get a bit more time. Any idea what the issue is on the electrum page? I don't have any automated tests yet, but I'd like to add some. I'm working on a VM that's in beta which I'm hoping will help automate testing since it can easily be spun up from scratch. |
|
Changes made:
Unable to import |
|
I like it a lot! |
* added toggle dark mode button on settings page, new logo and CSS file for dark mode * change colors of settings_input for dark mode * added the dark_mode flag in every templateData (very painfully) * Using ui.json to store all UI settings, darkmode implementation is cleaner * moved all CSS and JS links to head.html; imported ui_settigns appropriately; created dark version of bitcoind CSS * subheader color on lnd page * save ui.json on both HDD and mynode for redundancy * use head and logo template in new config and login pages * add ui_settings to templateData for new login and config pages * avoid repeating CSS for dark theme * change colors of config textarea * wrap ui setting hdd write in TRY/except * group similar CSS commands



Addresses #6
Right now it works only for the settings page.
PFA the screenshot of the page
