• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

color-tabs

Adds colors to tabs..
  • #tabs
  • #color
paulpflug
0.1.8 38,022
44
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

color-tabs package

Adds colors to tabs..

seti -- backgroundStyle: solid, markerStyle: none, borderStyle: none

color-tabs -- backgroundStyle: gradient, markerStyle: none, borderStyle: none

atom -- backgroundStyle: none, markerStyle: none, borderStyle: bottom

darkone -- backgroundStyle: none, markerStyle: corner, borderStyle: none

isotope -- backgroundStyle: none, markerStyle: corner, borderStyle: bottom

Not all styles are working with all themes!

Usage

ctrl+alt+a to add a random color to active tab

ctrl+alt+x to remove the color from active tab

Other cool packages

  • Automatically colors your tabs based on regex: color-tabs-regex

Where to set style

settings

Services

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?()

Developing

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

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by