Adds colors to tabs..
-- backgroundStyle: solid, markerStyle: none, borderStyle: none
-- backgroundStyle: gradient, markerStyle: none, borderStyle: none
-- backgroundStyle: none, markerStyle: none, borderStyle: bottom
-- backgroundStyle: none, markerStyle: corner, borderStyle: none
-- backgroundStyle: none, markerStyle: corner, borderStyle: bottom
Not all styles are working with all themes!
ctrl+alt+a
to add a random color to active tab
ctrl+alt+x
to remove the color from active tab
- Automatically colors your tabs based on regex: color-tabs-regex
This package also provides two services
package.json
{
"otherStuff": "otherData",
"consumedServices": {
"color-change-cb": {
"versions": {
"^0.0.1": "consumeColorChangeCb"
}
},
"change-color": {
"versions": {
"^0.0.1": "consumeChangeColor"
}
}
}
}
your package:
#in main module
consumeChangeColor: (changeColor) =>
@changeColor = changeColor
consumeColorChangeCb: (colorChangeCb) =>
@colorChangeCb = colorChangeCb
#Wherever you want to use it
@changeColor path, newColor # changes the color of a tab for a specific file path
@changeColor path, false # removes the color
@changeColor path, newColor, false # prevents saving, colors will not be persistent
@changeColor path, newColor, false, true # will show a warning if path is undefined
@cbHandler = @colorChangeCb (path, newColor) ->
#is called after the color of a tab got changed
#newColor is false if it got uncolored
#cleanup cb
deactivate: ->
@cbHandler?.dispose?()
Run npm install
in the package directory.
Open it in atom in dev mode.
For debugging set the debug field in package settings to the needed debug level.
Should autoreload the package on changes in lib
and styles
folders