Skip to content

Commit a8f9ee6

Browse files
Merge branch 'release/0.9.1'
2 parents 1b6feaf + 425491f commit a8f9ee6

7 files changed

Lines changed: 18 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44

55
---
66

7+
# 0.9.1
8+
*2017-04-14*
9+
## Improvements
10+
### Theme Settings
11+
❯ Removed a unnecessary IO write event when when deactivating the package. Before all theme settings have been written out to the store file `theme-settings-store.less`. The `deactivation()` method has been removed since there is currently no need to handle a package deactivation event. (@arcticicestudio, #49, 892e6735)
12+
13+
## Bug Fixes
14+
### Theme Settings
15+
❯ Fixed a "Undefined variable" exception when deactivating the package. This was caused by the wrongly named `@theme-setting-custom-comment-contrast` variable which must be named `@theme-setting-accessibility-custom-comment-contrast`. (@arcticicestudio, #48, c5af4e3e)
16+
717
# 0.9.0
818
*2017-04-14*
919
## Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Detailed descriptions for supported languages can be found in the [project wiki]
4949
![][scrot-lang-xml]
5050

5151
## Development
52-
[![](https://img.shields.io/badge/Changelog-0.9.0-81A1C1.svg)](https://github.com/arcticicestudio/nord-atom-syntax/blob/v0.9.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)
52+
[![](https://img.shields.io/badge/Changelog-0.9.1-81A1C1.svg)](https://github.com/arcticicestudio/nord-atom-syntax/blob/v0.9.1/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)
5353

5454
### Contribution
5555
Please report issues/bugs, feature requests and suggestions for improvements to the [issue tracker](https://github.com/arcticicestudio/nord-atom-syntax/issues).

index.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33
title Index +
44
project nord-atom-syntax +
5-
version 0.9.0 +
5+
version 0.9.1 +
66
repository https://github.com/arcticicestudio/nord-atom-syntax +
77
author Arctic Ice Studio +
88
email development@arcticicestudio.com +

lib/main.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ import { toggleClass } from "./utils";
1616
export default {
1717
writeConfig(options) {
1818
let customCommentContrast = atom.config.get("nord-atom-syntax.accessibility.commentContrast");
19-
let config = `@theme-setting-custom-comment-contrast: ${customCommentContrast}%;\n`;
19+
let config = `@theme-setting-accessibility-custom-comment-contrast: ${customCommentContrast}%;\n`;
2020

2121
fs.writeFile(`${__dirname}/../styles/theme-settings-store.less`, config, "utf8", () => {
2222
if (!options || !options.noReload) {
2323
let themePack = atom.packages.getLoadedPackage("nord-atom-syntax");
2424

2525
if (themePack) {
26-
themePack.deactivate();
2726
setImmediate(() => themePack.activate());
2827
}
2928
}
@@ -36,10 +35,5 @@ export default {
3635
activate() {
3736
toggleClass(true, "theme-nord-atom-syntax-accessibility-custom-comment-contrast");
3837
atom.config.onDidChange("nord-atom-syntax.accessibility.commentContrast", () =>this.writeConfig({ noReload: true }));
39-
},
40-
41-
deactivate() {
42-
toggleClass(false, "theme-nord-atom-syntax-accessibility-custom-comment-contrast");
43-
this.writeConfig({ noReload: true });
4438
}
4539
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nord-atom-syntax",
33
"theme": "syntax",
4-
"version": "0.9.0",
4+
"version": "0.9.1",
55
"description": "An arctic, north-bluish clean and elegant Atom syntax theme.",
66
"author": {
77
"name": "Arctic Ice Studio",

styles/syntax-theme-settings.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ copyright Copyright (C) 2017 +
1414
/*+--- Custom Comment Contrast ---+*/
1515
.theme-@{syntax-theme-name}-accessibility-custom-comment-contrast {
1616
.syntax--comment {
17-
color: lighten(@syntax-color-comment, @theme-setting-custom-comment-contrast);
17+
color: lighten(@syntax-color-comment, @theme-setting-accessibility-custom-comment-contrast);
1818

1919
.syntax--markup.syntax--link {
20-
color: lighten(@syntax-color-comment, @theme-setting-custom-comment-contrast);
20+
color: lighten(@syntax-color-comment, @theme-setting-accessibility-custom-comment-contrast);
2121
}
2222
}
2323

2424
.syntax--punctuation {
2525
&.syntax--comment {
26-
color: lighten(@syntax-color-comment, @theme-setting-custom-comment-contrast);
26+
color: lighten(@syntax-color-comment, @theme-setting-accessibility-custom-comment-contrast);
2727
}
2828
}
2929
}

styles/theme-settings-store.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@theme-setting-custom-comment-contrast: 0%;
1+
@theme-setting-accessibility-custom-comment-contrast: 0%;

0 commit comments

Comments
 (0)