https://github.com/kaste/sublimelinter-addon-colorize-statusbar
Colorize Sublime Text's status bar on errors
https://github.com/kaste/sublimelinter-addon-colorize-statusbar
sublime-text sublimelinter sublimelinter-plugin
Last synced: 3 months ago
JSON representation
Colorize Sublime Text's status bar on errors
- Host: GitHub
- URL: https://github.com/kaste/sublimelinter-addon-colorize-statusbar
- Owner: kaste
- Created: 2017-02-14T12:57:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-10-21T12:31:33.000Z (over 2 years ago)
- Last Synced: 2025-01-19T14:17:28.965Z (4 months ago)
- Topics: sublime-text, sublimelinter, sublimelinter-plugin
- Language: Python
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Add-on to SublimeLinter which help you to colorize the status bar (or some other theme-ish thing) when the current view has errors.
☝️ **NOTE: You have to do something to make this work. Read below** 👇
# Features
* It will set global flags which in turn can be used by a theme to indicate if a view/window has errors or warnings or is green to commit.
E.g. if you want to tint your status bar, you could add something like this
to your `.sublime-theme` file. (Do this in your local override in the User folder.){
"class": "status_bar",
"settings": ["has_lint_errors"],
"layer0.tint": [215, 57, 18], // -00
},
{
"class": "label_control",
"settings": ["has_lint_errors"],
"parents": [{"class": "status_bar"}],
"color": [19, 21, 32], // 02
"font.size": 14
},
{
"class": "status_bar",
"settings": ["has_lint_warnings"],
"layer0.tint": [88, 31, 158], // -00
},
{
"class": "label_control",
"settings": ["has_lint_warnings"],
"parents": [{"class": "status_bar"}],
"color": [219, 221, 232], // 02
"font.size": 14
},*OR* something like this
{
"class": "status_container",
"settings": ["has_lint_errors"],
"layer0.tint": [215, 57, 118, 190], // -00
},
{
"class": "label_control",
"settings": ["has_lint_errors"],
"parents": [{"class": "status_container"}],
"color": [219, 221, 232], // 02
},So you might try styling `status_bar` or `status_container`. I use the latter.
You can adjust the colors to your liking of course. Just notice the usage of the two special keys `has_lint_errors` and `has_lint_warnings`.
Maybe take a quick look at the [global settings](https://github.com/kaste/SublimeLinter-addon-colorize-statusbar/blob/master/SublimeLinter-addon-colorize-statusbar.sublime-settings).
# Install
Just use [Package Control](https://packagecontrol.io/) or clone this repository into your packages folder.
If you want to go fancy, you can also do this:
1. Open up the command palette (`ctrl+shift+p`), and find `Package Control: Add Repository`. Then enter the URL of this repo: `https://github.com/kaste/SublimeLinter-addon-colorize-statusbar/` in the input field.
2. Open up the command palette again and find `Package Control: Install Package`, and just search for `SublimeLinter-addon-colorize-statusbar`. (just a normal install)