Skip to content

Commit

Permalink
Add selectionColor & cursorAccentColor
Browse files Browse the repository at this point in the history
Configuration for selectionColor and cursorAccentColor has been added in
order to support these remaining color configuration options
consistently while also honoring the user's configuration.

nordtheme#35
  • Loading branch information
han-tyumi committed Sep 5, 2020
1 parent a0200fd commit b04d128
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const nord = {
const backgroundColor = nord.nord0;
const foregroundColor = nord.nord4;
const cursorColor = nord.nord4;
const selectionColor = cursorColor;
const cursorAccentColor = backgroundColor;
const borderColor = backgroundColor;

const colors = {
Expand Down Expand Up @@ -60,6 +62,8 @@ exports.decorateConfig = config => {
backgroundColor,
borderColor,
cursorColor: config.cursorColor || cursorColor,
selectionColor: config.selectionColor || selectionColor,
cursorAccentColor: config.cursorAccentColor || cursorAccentColor,
colors,
cursorShape: config.cursorShape || "BEAM",
fontSize: config.fontSize || 16,
Expand Down

0 comments on commit b04d128

Please sign in to comment.