Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 0f0b679

Browse files
authored
Merge pull request #883 from chbk/scopes
Implement naming conventions in template theme
2 parents ade8fbe + de1782a commit 0f0b679

File tree

5 files changed

+399
-303
lines changed

5 files changed

+399
-303
lines changed

spec/init-spec.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ describe "apm init", ->
128128
runs ->
129129
expect(fs.existsSync(themePath)).toBeTruthy()
130130
expect(fs.existsSync(path.join(themePath, 'styles'))).toBeTruthy()
131-
expect(fs.existsSync(path.join(themePath, 'styles', 'base.less'))).toBeTruthy()
131+
expect(fs.existsSync(path.join(themePath, 'styles', 'colors.less'))).toBeTruthy()
132132
expect(fs.existsSync(path.join(themePath, 'styles', 'syntax-variables.less'))).toBeTruthy()
133+
expect(fs.existsSync(path.join(themePath, 'styles', 'syntax.less'))).toBeTruthy()
134+
expect(fs.existsSync(path.join(themePath, 'styles', 'editor.less'))).toBeTruthy()
133135
expect(fs.existsSync(path.join(themePath, 'index.less'))).toBeTruthy()
134136
expect(fs.existsSync(path.join(themePath, 'README.md'))).toBeTruthy()
135137
expect(fs.existsSync(path.join(themePath, 'package.json'))).toBeTruthy()

templates/theme/index.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
@import "./styles/base.less";
1+
@import "styles/syntax-variables.less";
2+
@import "styles/syntax.less";
3+
@import "styles/editor.less";

templates/theme/styles/base.less

Lines changed: 0 additions & 301 deletions
This file was deleted.

templates/theme/styles/editor.less

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// This defines styling rules for the editor.
2+
3+
atom-text-editor {
4+
background-color: @syntax-background-color;
5+
color: @syntax-text-color;
6+
7+
.wrap-guide {
8+
background-color: @syntax-wrap-guide-color;
9+
}
10+
11+
.indent-guide {
12+
color: @syntax-indent-guide-color;
13+
}
14+
15+
.invisible-character {
16+
color: @syntax-invisible-character-color;
17+
}
18+
19+
.gutter {
20+
background-color: @syntax-gutter-background-color;
21+
color: @syntax-gutter-text-color;
22+
23+
.line-number {
24+
&.cursor-line {
25+
background-color: @syntax-gutter-background-color-selected;
26+
color: @syntax-gutter-text-color-selected;
27+
}
28+
29+
&.cursor-line-no-selection {
30+
color: @syntax-gutter-text-color-selected;
31+
}
32+
}
33+
}
34+
35+
.gutter .line-number.folded,
36+
.gutter .line-number:after,
37+
.fold-marker:after {
38+
color: @light-gray;
39+
}
40+
41+
.invisible {
42+
color: @syntax-text-color;
43+
}
44+
45+
.cursor {
46+
color: @syntax-cursor-color;
47+
}
48+
49+
.selection .region {
50+
background-color: @syntax-selection-color;
51+
}
52+
}
53+
54+
atom-text-editor[mini] .scroll-view {
55+
padding-left: 1px;
56+
}

0 commit comments

Comments
 (0)