npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hyper-arc-dark-controls

v1.2.0

Published

Pretty window controls from the Arc Dark theme for hyper

Downloads

137

Readme

hyper-arc-dark-controls

Arc-themed window controls for hyper

A plugin that makes the close, minimize, and maximize buttons look like the Arc Dark window controls, replacing the standard Windows 10-themed window controls. This plugin has been thoroughly tested in Ubuntu and Windows 10, and works with both v1.4.8 (old stable) and v2.0.0 canary and stable versions.

Based on the original Arc theme source, this plugin aims to match the theme as much as possible. You're ~welcome~ encouraged to fork this project and modify it if you need to tinker with the colors, or create a PR if I missed something that needs fixing.

screenshot

Note

This plugin is designed to work perfectly with the hyperterm-atom-dark-theme. While it also integrates fine with vanilla-themed hyper, I cannot take every theme and plugin into account. If the plugin doesn't look great on xyz-theme, then please do create an issue and I will look into it. But since I don't own a Mac, I cannot test the plugin on every OS, although it's been tested on Linux and Windows 10 which is what I have available.

Changelog

1.2.0

  • Added $arcDarkConfig variables for better configurability
  • Added support for showWindowControls
  • Optimized code for hyper v2.x

1.1.8

  • Fixed positioning of the window controls when tabs are active
  • Fixed tabs width while using flexbox

1.1.7

  • Fixed wrong window controls offset on default theme
  • Reworked flexbox for better positioning, meaning less position: absolute
  • Adjusted width and height on both the <li>'s and the svg icons to match the Arc Dark theme

1.1.6

  • Fixed hamburgerMenuLeft position issue

1.1.4, 1.1.5

  • Adjusted the header hight to match the theme
  • Applied background color to the header to match the theme color
  • Adjusted some values to make the right areas show the background color
  • Adjusted the font and font-size of the window title

1.1.3

  • Applied a small fix to the close button after a hyper update skewered its position.
  • Also made the close button smaller to better mimic the original close button.

1.1.2

  • Small fix to adjust the height and width of the li with the maximize and minimize icons, to compensate for the added border.

1.1.1

  • Small, unmentionable fixes regarding this README.

1.1.0

  • Converted the originally forked div with span's into an ul with inline svg's residing inside its li's. This allows for better control over the hover/active functions, and better control over the fill-property of the svg's. While using li's we also get past the ugliness of positioning each icon with position: absolute, and we now control the space between icons with margin instead. And we now also have the correct hover/active behaviour, since we now have the background-property on the li's available aswell.
  • The svg's used are taking directly from the original Arc Theme repository. So all credit goes to horst3180. However, I've optimized them quite a bit by removing empty groups and useless InkScape/SodiPodi tags. It might even be worth a PR.
  • By inlining the svg's, we can also get rid of the /icons folder aswell, as there's now no need for shipping the actual icons.

1.0.0

  • Initial release

Install

Hyper store

hyper i hyper-arc-dark-controls

Manually:

  1. Open hyper's preferences with Ctrl+, (or manually at ~/.hyper.js) with your editor.

  2. Update your list of plugins to include hyper-arc-dark-controls, like so:

     plugins: [
         'hyper-arc-dark-controls'
     ],
  3. Reload (Ctrl+Shift+R) or restart hyper and voila!

hpm (1.4.8):

  1. Install using hpm i hyper-arc-dark-controls
  2. Reload (Ctrl+Shift+R) or restart hyper and voila!

Configuration

You can configure the window controls like you would in your ~/.hyper.js.

  • showWindowControls: true - default, will display the window controls to the right.
  • showWindowControls: 'left' - will display the window controls to the left in reverse order, like on a Mac.
  • showWindowControls: false - will disable the window controls, and only theme the header.

To Do

  • Config for lighter Arc themes.
  • Create a check to see if the window is focused, and add a class if not, so the window controls will be "faded" like on real window controls.

Related

License

  • The code is released under the MIT license
  • The inline SVGs are licensed under CC BY-SA 4.0