From 9b099bac758276fe4fda5bcbdebfd4ec4fb6b0c3 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Thu, 9 Mar 2017 15:54:16 +0100 Subject: [PATCH 1/5] GHI-#7 Implement config object --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 82792bb..45f3042 100644 --- a/index.js +++ b/index.js @@ -54,6 +54,8 @@ const colors = { }; exports.decorateConfig = config => { + const nordHyper = Object.assign({cursorBlink: true}, config.nordHyper); + return Object.assign({}, config, { foregroundColor, backgroundColor, From 87b6dfb7208f1b642d6ce78ad3047f5a179cc03e Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Thu, 9 Mar 2017 15:55:06 +0100 Subject: [PATCH 2/5] GHI-#7 Implement toggleable cursor blink CSS code variable --- index.js | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/index.js b/index.js index 45f3042..c43fd98 100644 --- a/index.js +++ b/index.js @@ -53,6 +53,20 @@ const colors = { grayscale: foregroundColor }; +let cursorBlinkCSS = ` +@keyframes blink { + 10%, 50% { opacity: 0 } + 60%, 100% { opacity: 1 } +} +.cursor-node[focus=true] { + mix-blend-mode: difference; +} +.cursor-node[focus=true]:not([hyper-blink-moving]) { + box-sizing: content-box !important; + animation: blink 1s ease infinite; +} +` + exports.decorateConfig = config => { const nordHyper = Object.assign({cursorBlink: true}, config.nordHyper); @@ -73,17 +87,7 @@ exports.decorateConfig = config => { .cursor-node { border-left-width: 2px; } - @keyframes blink { - 10%, 50% { opacity: 0 } - 60%, 100% { opacity: 1 } - } - .cursor-node[focus=true] { - mix-blend-mode: difference; - } - .cursor-node[focus=true]:not([hyper-blink-moving]) { - box-sizing: content-box !important; - animation: blink 1s ease infinite; - } + ${nordHyper.cursorBlink ? cursorBlinkCSS : ""} `, css: ` ${config.css || ""} From f48d01ffeb1ce7065310d0ad7547ebebaa6a88de Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Thu, 9 Mar 2017 19:33:31 +0100 Subject: [PATCH 3/5] GHI-#7 Add missing semicolon --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c43fd98..c616637 100644 --- a/index.js +++ b/index.js @@ -65,7 +65,7 @@ let cursorBlinkCSS = ` box-sizing: content-box !important; animation: blink 1s ease infinite; } -` +`; exports.decorateConfig = config => { const nordHyper = Object.assign({cursorBlink: true}, config.nordHyper); From 852d630ebe57bb60f139e97983c7abb148a789e8 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Thu, 9 Mar 2017 19:44:01 +0100 Subject: [PATCH 4/5] GHI-#7 Write the README configuration documentation --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 899469c..751f6e1 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,24 @@ hpm install nord-hyper

Non-obtrusive cursor blinking.

+## Configuration +All configurations are set in the `nordHyper` object in your `~/.hyper.js` file. + +### Cursor Blinking +The cursor blinking can be set with the `cursorBlink` attribute. +The default value is `true` to enable the non-obtrusive cursor blinking feature. +```js +module.exports = { + config: { + //... + nordHyper: { + cursorBlink: true, + } + //... + } +} +``` + ## Development [![](https://img.shields.io/badge/Changelog-0.2.0-81A1C1.svg)](https://github.com/arcticicestudio/nord-hyper/blob/v0.2.0/CHANGELOG.md) [![](https://img.shields.io/badge/Workflow-gitflow--branching--model-81A1C1.svg)](http://nvie.com/posts/a-successful-git-branching-model) [![](https://img.shields.io/badge/Versioning-ArcVer_0.8.0-81A1C1.svg)](https://github.com/arcticicestudio/arcver) From 9f81579f3685945085b775dab6e6d1dc064b77b4 Mon Sep 17 00:00:00 2001 From: Arctic Ice Studio Date: Thu, 9 Mar 2017 21:22:40 +0100 Subject: [PATCH 5/5] Prepare stable development npm release version 0.3.0 --- CHANGELOG.md | 22 ++++++++++++++++++++++ README.md | 2 +- package.json | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0890857..7732fc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,26 @@ --- +# 0.3.0 +*2017-03-09* +## Features +### [Configurations][readme-configuration] +❯ Added a configuration to set the [cursor blinking](https://github.com/arcticicestudio/nord-hyper#cursor-blinking). +The default value is `true` to enable the non-obtrusive cursor blinking feature. (@zovt, #7, 27820cf8) +```js +module.exports = { + config: { + //... + nordHyper: { + cursorBlink: true + } + //... + } +} +``` + +

+ # 0.2.0 *2017-03-08* ## Features @@ -43,3 +63,5 @@ Detailed information about features and install instructions can be found in the # 0.0.0 *2017-02-19* **Project Initialization** + +[readme-configuration]: https://github.com/arcticicestudio/nord-hyper#configuration diff --git a/README.md b/README.md index 751f6e1..241abd3 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ module.exports = { ``` ## Development -[![](https://img.shields.io/badge/Changelog-0.2.0-81A1C1.svg)](https://github.com/arcticicestudio/nord-hyper/blob/v0.2.0/CHANGELOG.md) [![](https://img.shields.io/badge/Workflow-gitflow--branching--model-81A1C1.svg)](http://nvie.com/posts/a-successful-git-branching-model) [![](https://img.shields.io/badge/Versioning-ArcVer_0.8.0-81A1C1.svg)](https://github.com/arcticicestudio/arcver) +[![](https://img.shields.io/badge/Changelog-0.3.0-81A1C1.svg)](https://github.com/arcticicestudio/nord-hyper/blob/v0.3.0/CHANGELOG.md) [![](https://img.shields.io/badge/Workflow-gitflow--branching--model-81A1C1.svg)](http://nvie.com/posts/a-successful-git-branching-model) [![](https://img.shields.io/badge/Versioning-ArcVer_0.8.0-81A1C1.svg)](https://github.com/arcticicestudio/arcver) Continuous integration builds are running at [Travis-CI](https://travis-ci.org/arcticicestudio/nord-hyper) and [Circle CI](https://circleci.com/gh/arcticicestudio/nord-hyper). diff --git a/package.json b/package.json index 2d8bd77..489d4bd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nord-hyper", "title": "Nord Hyper", - "version": "0.2.0", + "version": "0.3.0", "description": "A arctic, north-bluish clean and elegant Hyper theme plugin", "author": { "name": "Arctic Ice Studio",