dgold
dgold
Made a change to my website, well, a few changes, things I’ve wanted to do but lacked round tuits. Firstly, I changed to a darkmode. This is something I started doing a few times, but became hor [...] Going Dark
|
Embed
In reply to
jemostrom
jemostrom

@dgold Can I suggest that you make a light version also. The reason is simply that some people like me have difficulties in reading light on dark - not just "don't like" but more like "if I read this page I will not be able to look at anything for the next 10-20 minutes without seeing lines everywhere".

You might have a good motivation for doing this but ... I didn't want to read it because of the reason above.

|
Embed
dgold
dgold

@jemostrom I'd love to do that. I have no idea how to do that.

These are mutually exclusive, but can be fixed. I don't even know where to start, unfortunately. I don't want to use a cookie, for instance, but am willing to be convinced otherwise.

|
Embed
jemostrom
jemostrom

@dgold I'm no expert either but perhaps a two stylesheets and a small javascript that runs when the clicks/selects/something. I guess you would need a cookie to avoid setting this every time a new page is loaded ... but I don't really know. I did a search and this was the first link

|
Embed
hjertnes
hjertnes

@dgold you can use local storage for storing the setting

|
Embed
dgold
dgold

@hjertnes I understand that, however it’s the settingcreation &c I’m uneducated in :)

I like @colinwalker’s solution, but not sure he’d be happy with me just ripping out his site contents ☺️

|
Embed
hjertnes
hjertnes

@dgold let me know if you want any help

|
Embed
colinwalker
colinwalker

@dgold @hjertnes My solution is pretty basic and only works for the duration of the current browser session (while open in the same tab) but feel free to rip away.

It just loads an extra CSS file and uses JS sessionStorage. It’s all in the page source.

|
Embed
colinwalker
colinwalker

@dgold @hjertnes I deliberately wanted to avoid going the cookie route but it would be more permanent.

|
Embed
hjertnes
hjertnes

@colinwalker local storage is a good option for storing this per browser

|
Embed
jeremycherfas
jeremycherfas

@dgold +1

@jemostrom

|
Embed
dgold
dgold

@jeremycherfas @jemostrom @hjertnes Thanks to @colinwalker's kindness, I got it working! You "bright boys" can go back to having a whitesmoke experience. I even learned somethings about js.

|
Embed
colinwalker
colinwalker

@dgold Glad to hear it 👍

|
Embed
colinwalker
colinwalker

@dgold The idea of using eigengrau is really interesting as well. While I went for Black because of the OLED screen I the iPhone X it is harsh and I am left with a visual after effect when viewing text on that background. I might try eigengrau and see what happens. Thanks for writing about it.

|
Embed
jeremycherfas
jeremycherfas

@dgold Definite win. And the orange links are an improvement, if I wanted to read dark mode. :)

|
Embed
Bruce
Bruce

@jeremycherfas @dgold Second on the orange highlights. They really pair well with the background. :)

|
Embed
Bruce
Bruce

@dgold Nice addition of the switching! 😃

|
Embed
dgold
dgold

@Bruce thank you, Bruce!

|
Embed