Dark Theme

Started by durangod, December 15, 2023, 05:23:43 AM

Previous topic - Next topic

Antechinus

Quote from: durangod on December 21, 2023, 10:33:24 AMSo how soon can we expect this can be on option here on SMF community?
It has been an option here on SMF community since September 2021. :D

durangod

Well my apology, i guess i should have checked the options before i insert foot in mouth lol
My name is short for durango dave (i am not a god lol)

durangod

Actually no its not there..

You cannot view this attachment.
My name is short for durango dave (i am not a god lol)

Steve

He means it's been an option in his signature ...
My pet rock is not feeling well. I think it's stoned.

durangod

Oh ok..... well thats makes sense now.... :)

Well i hope one day they do add one to SMF.  Means i can take off my sunglasses to view the community hee hee
My name is short for durango dave (i am not a god lol)

Antechinus

Dude, seriously: if you want a dark theme here, and you want it now, just install Stylus on your browser and drop the content of that CSS file into Stylus. That's what I did, over 2 years ago. I have been merrily using said dark theme here ever since.

But if you don't want to do that, and prefer to grumble about there being no dark theme option available, feel free to continue grumbling. :)

Tyrsson

I mean you can literally turn the styling on and off with two clicks in chrome, which I do not use for dev anyway. Just for browsing and general testing, like hey does that page load or blow up if I click refresh lol.
PM at your own risk, some I answer, if they are interesting, some I ignore.

durangod

If you consider what i have said so far to be grumbling wow you have not met some of the people i have dealt with in my life.  I am a pussy cat compared to even some on this forum....  I ask a question and i misunderstood what you meant by your reply before about a new dark theme.  I guess i thought you were working to get it approved.  But i was wrong in my thinking and i said so.

Grumbling!  I think not...

As far as using chrome to change things, sorry this is a developer station and it has to be pure so i know what my customers will see, i cant have it masked by some hack manipulation, sorry.   That is why i just dont do that trick.. :)
My name is short for durango dave (i am not a god lol)

SleePy

I suspect we will have it someday after it shows up in SMF.  As mentioned, we try not to deviate too far from what is built into SMF.  As to ensure the community what they see is what SMF has.  We have to change a little to wrap a site navigation contextual menu and helpful tools for those who provide support.

SMF 3.0 has a Pull Request open that updates and modernizes the current theme.  One aspect is that it now uses CSS variables, which will make a dark theme relatively simple.  3.0 is a ways away from being used on the site here.  Typically we do not move until the second or 3rd release candidate for our site, ensuring that any release is ready for prime time on large sites and complex scenarios.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

durangod

Thanks SleePy, im happy with that, i really appreciate you taking the time to explain.  Good stuff :)
My name is short for durango dave (i am not a god lol)

Antechinus

Quote from: durangod on December 21, 2023, 06:01:45 PMAs far as using chrome to change things, sorry this is a developer station and it has to be pure so i know what my customers will see, i cant have it masked by some hack manipulation, sorry.  That is why i just dont do that trick.. :)

It's no more a "hack" than any other theme. All it does is add a custom stylesheet after the default stylesheets. A lot of themes do this anyway, or effectively do the same thing by tacking custom CSS onto the end of the default index.css.

Essentially it's using the CSS cascade as it was meant to be used: with later and/or more specific declarations being able to override earlier and/or less specific ones. All themes that I am aware of do this.

So, you will not be "hacking" anything if you use this theme via Stylus. Also, as Tyrsson mentioned, you can switch it on or off via the address bar icon with a couple of clicks. If it is switched off you get the default theme with default CSS, so it's easy to view the default when you need to check that, and use the dark theme for preference when you can. I often do this myself, on a range of sites that I have written custom stylesheets for.

tl:dr; - It will not wreck anything you already have.

Antechinus

Oh: the other point is that the stylesheet is set by domain, or even by specific page url if you like. So, even if you do run it while using this site it will have absolutely no effect on any of your customers' sites. On their sites you will see exactly what they are running, so no problem.

Advertisement: