BLF After Dark, CSS theme

95 posts / 0 new
Last post

Pages

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3
BLF After Dark, CSS theme

I find black text on a white background hurts my eyes, and I spend a lot of time on BLF, so I made a dark theme.

Er, actually I found a dark theme in the Chrome “Stylish” extension’s repository a while back. And I modified it a bit. Then BLF got a major upgrade and the theme broke, so I fixed it and modified it quite a bit more. I figure I should share it in case anyone else prefers dark themes.

So, for now, it’s hosted here:
http://toykeeper.net/torches/css/
… and at userstyles.org.

The theme isn’t 100% complete, and I don’t know much CSS, and I’m not good at graphic design, but it mostly works…
Patches, enhancements, and bug reports are welcome.

To use this, install the “Stylish” extension, then search the userstyles.org repository for “BLF” and follow the instructions there.

Here are some screenshots of how it looks. I’ve set them to scale down to fit the screen, but if you click them it’ll show full-size:

Edited by: ToyKeeper on 02/12/2016 - 18:14
mattlward
mattlward's picture
Offline
Last seen: 21 min 53 sec ago
Joined: 06/19/2015 - 09:20
Posts: 2146
Location: Illinois, USA

How do I use this? In firefox?

EDC rotation:
Convoy S2+, 6*7135, XM-L2 3D, 10 degree TIR, PilotDog lighted tailcap.
Convoy S2+, H17F, XM-L2 4C, lighted tailcap
Zebralight SC52w-L2
Olight S1A
Olight S1R

hank
hank's picture
Offline
Last seen: 3 days 14 hours ago
Joined: 09/04/2011 - 21:52
Posts: 6951
Location: California

thankyou thankyou thankyou

I installed it with the “Stylish” addon (Firefox) — which will install and also optionally auto-update from a URL; do you feel secure enough to support automatic updating once it settles down?
If so you could give it a URL name like “latest” for the auto-update to find. I know you know that, just, er, mumbling.

Not that I think automatic updating is a good thing. I’m just lazy and prone to miss improvements if I’m not alert.

18sixfifty
18sixfifty's picture
Offline
Last seen: 6 days 20 hours ago
Joined: 12/25/2012 - 20:19
Posts: 4099

Thanks, that was a great thing to do for us.

I’m a junky, I mod lights so I can sell lights so I can buy more light to mod so I can sell lights to buy more lights to mod.

Kafar
Offline
Last seen: 1 day 17 hours ago
Joined: 06/07/2014 - 01:45
Posts: 88
Location: Poland / Holland

Thank You soooo MUCH! clapping
I’ve waited for dark style for so long Big Smile
At last my eyes will rest Smile

@mattlward You should “Write new style”, and copy content of the latest file into there (divide it at two sections), and save it Wink

Wrathbringer27
Wrathbringer27's picture
Offline
Last seen: 17 hours 22 min ago
Joined: 03/02/2015 - 09:00
Posts: 1881
Location: Singapore GMT +8

AWESOME! THANK YOU TK!

Words can be broken,
so can bones.

sb56637
sb56637's picture
Offline
Last seen: 7 hours 55 min ago
Joined: 01/08/2010 - 09:29
Posts: 5876
Location: The Light

Sticky’d, thanks a lot!

Budget Light Forum ...where Frugal meets with Flashlight!

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

Oops, I didn’t see the replies until now. I guess the new site doesn’t yet auto-subscribe people to their own posts. Smile

Bort
Bort's picture
Offline
Last seen: 1 hour 9 min ago
Joined: 06/01/2012 - 17:15
Posts: 7337
Location: Holding the proverbial flashlight

i thought this thread would be about secret after dark BLF activities, such as secret societies, rituals, sacrifices (of lumens of course) and so forth.

ToyKeeper wrote:
Oops, I didn’t see the replies until now. I guess the new site doesn’t yet auto-subscribe people to their own posts. Smile

nope, i posted that in the migration completed thread

The Journal of Alternative Facts TM

"It is critical that there is a credible academic source for the growing and important discipline of alternative facts. This field of study will just keep winning, and we knew that all the best people would want to be on board. There is a real risk in the world today that people might be getting their information about science from actual scientists"

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

FWIW, I noticed that I forgot to style private messages. So… I did that, and updated the css file. It now applies different styles to new messages vs old messages. I’ll post a screenshot after I get a new private message (but not too private Smile ), and maybe after fixing another little issue I just noticed.

Need to do something about the message number text. It shows:

Quote:
Displaying messages 2044 – 2063 of
2063

… with the last number on a new line. Even though there’s plenty of room on the previous line. Probably some sort of hard-coded size in the parent stylesheet, I’m guessing.
ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

Okay, here’s how private messages look:

Bort
Bort's picture
Offline
Last seen: 1 hour 9 min ago
Joined: 06/01/2012 - 17:15
Posts: 7337
Location: Holding the proverbial flashlight

ToyKeeper wrote:
Okay, here’s how private messages look:

Bort has been to the world museum of Coca Cola in Atlanta, fun place.

The Journal of Alternative Facts TM

"It is critical that there is a credible academic source for the growing and important discipline of alternative facts. This field of study will just keep winning, and we knew that all the best people would want to be on board. There is a real risk in the world today that people might be getting their information about science from actual scientists"

DanielM
DanielM's picture
Offline
Last seen: 15 hours 27 min ago
Joined: 05/09/2014 - 01:31
Posts: 1804
Location: Romania

TK could you alter the theme to make the color of the Maim Menu (on the left) items the same as the brighter blue color of the “Home>Forum>Miscelaneous” items on the top? The same goes for the thread list, they’re too dark to read against the dark grey background, they need to be a little brighter.

Old-Lumens wrote:
I love modding, but I don't have much use at all for flashlights in general.
ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

DanielM wrote:
TK could you alter the theme to make the color of the Maim Menu (on the left) items the same as the brighter blue color of the “Home>Forum>Miscelaneous” items on the top? The same goes for the thread list, they’re too dark to read against the dark grey background, they need to be a little brighter.

That’s an easy change:
http://toykeeper.net/torches/css/BLF-2016-02-11-brighter-links.css

I found that I had to override it the forceful way though, which had some side effects… like, links which used to be white turned blue. And I found it seemed a little too bright. So, for me personally I think I’ll stick with the un-styled links (inherit the default style from BLF instead of overriding).

In any case, it’s at that link and the one-line change is tagged with DanielM if you want to find it or modify it. Smile

keengeorge
Offline
Last seen: 6 hours 43 min ago
Joined: 04/26/2014 - 01:04
Posts: 1680
Location: Australia

TK, thank you Very Much, my eyes & their owner are Very Grateful. Beer

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

A few more little fixes:

  • Finally themed the tab widgets, like at the top of the account settings.
  • No more weird wrapping on the private message thread pager.
  • Less obnoxious “Tag this conversation” widget.
  • Shadows on links to increase contrast, instead of making the text color brighter.

That last one is probably the most noticeable. It showed me a few things I didn’t realize were clickable before, like in the commercial sellers’ rules:

djozz
djozz's picture
Offline
Last seen: 7 hours 11 min ago
Joined: 09/07/2012 - 17:04
Posts: 10396
Location: Amsterdam

Ignorant question: this would not work for Chrome on an Android device, would it?

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

I haven’t tried, but I don’t see why not. If it can run the Stylish extension, it should be able to do this.

So, I looked it up. I’m seeing “May 14, 2015: Google Chrome for Android will not be getting extension support any time soon, Chrome developers say …”

However, it seems to work on Firefox on Android. After installing Stylish, I told it to get styles from userstyles.org, searched for “BLF”, and then followed the links to install it.

… and now it works on my tablet.

vresto
vresto's picture
Offline
Last seen: 3 days 5 hours ago
Joined: 01/25/2011 - 17:49
Posts: 456
Location: slovakia

iam little bit PC analphabet-i use chrome for xp windows..please,how to use this screen? how to run it?
my eyes need some break:)))))))))

EDC-Astrolux S2 Quad Xpl-hi NW,Convoy S2+ red/blue bistro

Headlamp-Acebeam H10 V2

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

As it says in the first post:
To use this, install the “Stylish” extension, then search the userstyles.org repository for “BLF” and follow the instructions there.

Muto
Offline
Last seen: 3 hours 8 min ago
Joined: 09/04/2012 - 16:42
Posts: 1415
Location: Southeast, PA

Wow!
This is cool!

Thanks Toykeeper.

Carpe Noctem People! ___________
I twist the truth, I rule the world, my crown is called deceit
I am the emperor of lies, you grovel at my feet
I rob you and I slaughter you, your downfall is my gain
And still you play the sycophant and revel in your pain
And all my promises are lies, all my love is hate
I am the politician, and I decide your fate

Lemmy , R.I.P.

jealous57
Offline
Last seen: 1 day 4 hours ago
Joined: 04/17/2014 - 22:29
Posts: 664
Location: Upstate NY, USA

Love it TK! Thank you! Now I wont blind myself while checking first thing in AM!

J-Dub74
J-Dub74's picture
Offline
Last seen: 3 hours 36 min ago
Joined: 03/14/2015 - 17:17
Posts: 2117
Location: Michigan

Hey ToyKeeper! Is there any way to make this work in IE? I know code writers don’t like IE but I just can’t get myself to like Chrome no matter how hard I try. If not I’ll try to figure something else out. Or maybe I’ll use Chrome just for BLF if I have to but it will be with great reluctance.

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

J-Dub74 wrote:
Is there any way to make this work in IE?

It doesn’t look promising:
http://superuser.com/questions/305105/equivalent-to-stylish-plug-in-for-...
dthoang
Offline
Last seen: 6 hours 5 sec ago
Joined: 10/09/2014 - 13:30
Posts: 315
Location: Austin, TX USA

The interested list in this post does not look good. Can you fix it?

http://budgetlightforum.com/node/43575

one year rookie

DanielM
DanielM's picture
Offline
Last seen: 15 hours 27 min ago
Joined: 05/09/2014 - 01:31
Posts: 1804
Location: Romania

Got it TK, now I can see the text better.

Old-Lumens wrote:
I love modding, but I don't have much use at all for flashlights in general.
DBSAR
DBSAR's picture
Offline
Last seen: 3 hours 42 min ago
Joined: 02/11/2013 - 23:28
Posts: 4286
Location: Ontario, Canada

This After-Dark theme is cool. Smile but how does a bottle of Bort as mix go with a good dark rum? Beer

That Canadian flashlight guy & Lantern Guru -Den / DBSARlight

Aardvark
Offline
Last seen: 3 weeks 6 days ago
Joined: 03/08/2013 - 21:04
Posts: 296
Location: UK

My old eyes thank you greatly. Bravo!

anduril
Offline
Last seen: 2 months 3 weeks ago
Joined: 03/22/2010 - 05:15
Posts: 257
Location: Poland

Love it! Thanks!

brad
brad's picture
Offline
Last seen: 35 min 16 sec ago
Joined: 12/04/2012 - 02:07
Posts: 2060
Location: USA

This is pretty wild stuff, cool.

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 1 hour 17 min ago
Joined: 01/12/2013 - 14:40
Posts: 5714
Location: (469219) 2016 HO3

dthoang wrote:
The interested list in this post does not look good. Can you fix it?

http://budgetlightforum.com/node/43575


Oh, wow. Now that is hideous.

It looks like M4D M4X explicitly set a background color on each link in that list… or set it once and copy/pasted it a bunch of times. The first half of the list has styled links, while the second half has styled spans. And a few items are bare.

I can override it, but it’s kind of a violation of scope. It would prevent anyone from ever setting a background color in the text of their posts. At least, in links or spans.

So, what do you think? Should it override style mis-uses (and also override normal uses too), or should it allow both (and give us an occasional hard-to-read post like that one)?

Pages