Using Submine test 3, build 3083 on windows 7.
Currently using Dawn.tm theme, selected from Preferences
->Color themes
The only problem is that the little indicator on the side bar that one uses to scroll down and up the page is so hard to see. It is dark gray and the scroll bar itself is black.
Could someone please show simple step by step how to make the indicator more clear? May be color it while and have the bar remain black, so it is easier to spot? Here is screen shot on my current layout:
For reference, I have been trying to use what is giving in this question, but I keep getting an error when I paste the code shown there in my Preferences.sublime-settings
. I get syntax error. But I am giving the above link in case it helps.
My current Preferences.sublime-settings
is the following
{
"color_scheme": "Packages/Color Scheme - Default/Dawn.tmTheme",
"font_size": 12,
"highlight_line": false,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"rulers":
[
74
],
"translate_tabs_to_spaces": true,
"use_tab_stops": false,
"word_wrap": false,
"bold_folder_labels": true
}
In the Settings window, click the “Ease of Access” category. On the left side of the Ease of Access screen, click the “Display” option. On the right, turn off the “Automatically Hide Scroll Bars In Windows” toggle to make sure your scrollbars don't disappear anymore.
Use overflow: auto . Scrollbars will only appear when needed. (Sidenote, you can also specify for only the x, or y scrollbar: overflow-x: auto and overflow-y: auto ).
To hide the horizontal scrollbar and prevent horizontal scrolling, use overflow-x: hidden: HTML.
In your user folder you can override the themes properties you want. In this case there is a minor problem as the scrollbar texture (the image that contains the scrollbar with the top and bottom semicircles) is quite dark, so although you modify the tint you can't get a light color similar to white unless you change that texture (image).
So the solution I pruposse is to create two new images (horizontal and vertical scrollbar) that are lighter, set it in the theme preference overrides and then (optionally) set the tint color you want.
Inside theme_override, create a file with the name of your theme. If you are using the default theme the file should be named Default.sublime-theme. If you are not using the default theme you can see the name of the theme you are using in Settings>Preferences>theme, and then create a file with that name (for example Material-Theme-Darker.sublime-theme) inside theme_override Inside this new file place the following content:
[ // More visible scrollbar { "class": "puck_control", "layer0.texture": "User/theme_override/scroll_puck.png", // Optional: set to your desired RGB color "layer0.tint": [40, 170, 250], "layer0.opacity": 1.0, "layer1.opacity": 0.0, "layer0.inner_margin": 2 }, { "class": "puck_control", "attributes": ["horizontal"], "layer0.texture": "User/theme_override/scroll_puck_horiz.png" } ]
Restart sublime text
EDIT: this is the result
EDIT: added basic info for people that are not using the default theme.
Note: if you are not using the default theme the results might change depending on the values that your theme overrides. If you want to know what values your theme is using, and you want to customize them, you can see them inside the .sublime-package file of your theme. For example, if you are using Material Theme open Material Theme.sublime-package (this is just a zip file) and inside there will be a file called Material-Theme-Darker.sublime-theme, you should not modify this file, but you can customize/override whatever you want using the file we have created in step 4.
This works nicely. However, the problem is that the "puck" only appears when you use the mouse to scroll up or down. When I try to grab the puck to scroll right, it disappears. We need a stable scrollbar as in most interfaces. This adjustment makes the scrollbars more stable:
{
"class": "puck_control",
"layer0.texture": "User/Theme - Default/vertical_white_scrollbar.png",
"content_margin": [3, 4], //makes horiz scrollbar taller
// Adjust RGB color. Optional: comment the following line (or set 255,255,255) to not modify image color
"layer0.tint": [200, 170, 250]
},
{
"class": "puck_control",
"attributes": ["horizontal"],
"content_margin": [3, 4], //makes horiz scrollbar taller
"layer0.texture": "User/Theme - Default/horizontal_white_scrollbar.png"
}
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["selected"]}],
//"fg": [30,30,30],
"fg": [255,131,0] //change highlighted tab color
}
Derived from: Sublime Text 3 Hides scrollbars
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With