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

A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.