1.0.0 • Published 6 years ago

hyperborder-elevated v1.0.0

Weekly downloads
10
License
-
Repository
github
Last release
6 years ago

hyperborder-elevated

Customized version of hyperborder extension

npm.io

Installation

Add it to plugins in your ~/.hyper.js configuration

module.exports = {
  ...
  plugins: ['hyperborder-elevated']
  ...
}

then just restart Hyper app or go to the menu View > Full Reload

Configuration

The following settings can be configured by adding a hyperBorder section in your .hyper.js config section:

SettingTypeDescriptionDefault Value
borderWidthstringCSS string for how thick the borders should be0px
adminBorderWidthstringCSS string for how thick the borders for an admin/elevated window.2px
borderRadiusInnerstringCSS string for round inner corners0px
borderRadiusOuterstringCSS string for round outer corners0px
borderColorsstring, string[]The color(s) for the border'#fc1da7', '#fba506'
adminBorderColorsstring, string[]The color(s) for the border for an admin/elevated window. This follows the precedence of adminBorderColors > borderColors > defaultColorsSame as borderColors
blurredColorsstring, string[]The color(s) of the borders when the window isn't activeSame as borderColors
blurredAdminColorsstring, string[]The color(s) of the borders when the admin/elevated window isn't active. This follows the precedence of blurredAdminColors > blurredColors > adminBorderColors > borderColors > defaultColorsSame as borderColors

EXAMPLE: Set Border Colors And Width

module.exports = {
  config: {
    ...
      hyperBorder: {
        borderColors: ['#fc1da7', '#fba506'],
        borderWidth: '2px',
        adminBorderWidth: '8px'
      }
    ...
  }
}

EXAMPLE: Set Border Colors To Random Colors

In addition, you can set any color value to 'random' (string value):

module.exports = {
  config: {
    ...
      hyperBorder: {
        borderColors: ['random','random'],
        borderWidth: '8px'
      }
    ...
  }
}

Then every newly opened Hyper terminal window will have a different colored border.

EXAMPLE: Animate Border Colors

module.exports = {
  config: {
    ...
    hyperBorder: {
      animate: true,
      ...
    }
    ...
  }
}

To change the speed of animation, specify an object with a duration property:

module.exports = {
  config: {
    ...
    hyperBorder: {
      animate: {
        duration: '1s',  // default is 16s
      },
      ...
    }
    ...
  }
}

EXAMPLE: Angled Gradients

Because we use CSS3's linear-gradient, we're able to specify angles at which to create the radius. Set your own angle like this:

module.exports = {
  config: {
    ...
    hyperBorder: {
      borderAngle: '180deg',
      ...
    }
    ...
  }
}

Download Hyper here

https://hyper.is/