Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Added a color scheme to match Nord. #166

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
38 changes: 38 additions & 0 deletions colorschemes/nord.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
The standard 256 terminal colors are supported.

-1 = clear

You can combine a color with 'Bold', 'Underline', or 'Reverse' by using bitwise OR ('|') and the name of the Color.
For example, to get Bold red Labels, you would do 'Labels: 2 | Bold'.

Once you've created a colorscheme, add an entry for it in the `handleColorscheme` function in 'main.go'.
*/

package colorschemes

var Nord = Colorscheme{
Name: "A Nord Approximation",
Author: "@jrswab",
Fg: 254, // lightest
Bg: -1,

BorderLabel: 254,
BorderLine: 96, // Purple

CPULines: []int{4, 3, 2, 1, 5, 6, 7, 8},

BattLines: []int{4, 3, 2, 1, 5, 6, 7, 8},

MainMem: 172, // Orange
SwapMem: 221, // yellow

ProcCursor: 31, // blue (nord9)

Sparkline: 31,

DiskBar: 254,

TempLow: 64, // green
TempHigh: 167, // red
}
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ func handleColorscheme(cs string) error {
colorscheme = colorschemes.Vice
case "default-dark":
colorscheme = colorschemes.DefaultDark
case "nord":
colorscheme = colorschemes.Nord
default:
custom, err := getCustomColorscheme(cs)
if err != nil {
Expand Down