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

Commit

Permalink
Merge pull request #883 from chbk/scopes
Browse files Browse the repository at this point in the history
Implement naming conventions in template theme
  • Loading branch information
sadick254 authored Jul 8, 2021
2 parents ade8fbe + de1782a commit 0f0b679
Show file tree
Hide file tree
Showing 5 changed files with 399 additions and 303 deletions.
4 changes: 3 additions & 1 deletion spec/init-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ describe "apm init", ->
runs ->
expect(fs.existsSync(themePath)).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'styles'))).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'styles', 'base.less'))).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'styles', 'colors.less'))).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'styles', 'syntax-variables.less'))).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'styles', 'syntax.less'))).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'styles', 'editor.less'))).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'index.less'))).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'README.md'))).toBeTruthy()
expect(fs.existsSync(path.join(themePath, 'package.json'))).toBeTruthy()
Expand Down
4 changes: 3 additions & 1 deletion templates/theme/index.less
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import "./styles/base.less";
@import "styles/syntax-variables.less";
@import "styles/syntax.less";
@import "styles/editor.less";
301 changes: 0 additions & 301 deletions templates/theme/styles/base.less

This file was deleted.

56 changes: 56 additions & 0 deletions templates/theme/styles/editor.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// This defines styling rules for the editor.

atom-text-editor {
background-color: @syntax-background-color;
color: @syntax-text-color;

.wrap-guide {
background-color: @syntax-wrap-guide-color;
}

.indent-guide {
color: @syntax-indent-guide-color;
}

.invisible-character {
color: @syntax-invisible-character-color;
}

.gutter {
background-color: @syntax-gutter-background-color;
color: @syntax-gutter-text-color;

.line-number {
&.cursor-line {
background-color: @syntax-gutter-background-color-selected;
color: @syntax-gutter-text-color-selected;
}

&.cursor-line-no-selection {
color: @syntax-gutter-text-color-selected;
}
}
}

.gutter .line-number.folded,
.gutter .line-number:after,
.fold-marker:after {
color: @light-gray;
}

.invisible {
color: @syntax-text-color;
}

.cursor {
color: @syntax-cursor-color;
}

.selection .region {
background-color: @syntax-selection-color;
}
}

atom-text-editor[mini] .scroll-view {
padding-left: 1px;
}
Loading

0 comments on commit 0f0b679

Please sign in to comment.