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

Implement naming conventions in template theme #883

Merged
merged 2 commits into from
Jul 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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