Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

I really like Atom as a text editor for programming (after adding a few essential packages to it). I use it exclusively for the development of my new project, AtariGamer.com in fact. However, one feature of the IDE that has been driving me nuts was the use of extremely thing scroll bars. These scrollbars are around 3px in width and are hard to grab. So, since Atom is very customisable I decided to do something about these malnourished scroll bars!

This is what the scrollbars were looking like before my change...
atom_bars_3.png


Changing them was very easy. The required changes were in the Stylesheet (style.less) that Atom uses to render the interface...
atom_bars_1.png


I added this to the bottom of the stylesheet...
 style.less
.scrollbars-visible-always {
::-webkit-scrollbar {
width: 12px;
height: 12px;
&-track {
border: 0px;
border-radius: 0px;
background-color: #444 !important;
}
&-thumb {
background-color: rgba(255,200,200,0.35) !important;
border: 0px;
border-radius: 9px;
}
}
}




The above changes made the overall thickness of the scroll bars wider, 12px in my case. The height controls the thickness of the horizontal scroll bars and width controls the thickness of the vertical ones. I also made the track stand out more from the rest of the editor. The 'thumb' or the bit of the scrollbar that does the scrolling was also updated to stand out more using a reddish tinge and having a pill shape (via border-radius).

Of course this is all highly customisable and you can pick and choose your own colours, widths and other styles.

This is what it looked like for me after the change...
atom_bars_2.png


A huge improvement in terms of usability!

In my case saving the stylesheet automatically applied the changes, but from what I read sometimes it is necessary to switch tabs before changes take effect.

If you have ideas or improvements on the above changes I've made, please share them in the comments.

-i

Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
comments powered by Disqus
Other posts you may like...