-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt remaining
arcticicestudio
"fade-out" changes
With the retirement of the "Arctic Ice Studio" personal & Nord project brand [1] various migrations to the `svengreb` GitHub account [2] of other projects were also completed within the last weeks. There are also changes in Nord projects like `nordtheme/web` that other projects depended on and can now be adapted as well. Therefore all Nord projects must adapt these changes which includes... - the migration and repository name change of `arcticicestudio/nord-docs`[2] - all references must be updated. - the migration of the `arcticicestudio/styleguide-git` repository to the `svengreb` "real-in-person" identity [3] - all references and used npm packages must be updated. - the migration of the `arcticicestudio/styleguide-javascript` repository to the `svengreb` "real-in-person" identity [4] - all references and used npm packages must be updated. - the migration of the `arcticicestudio/styleguide-markdown` repository to the `svengreb` "real-in-person" identity [5] - all references and used npm packages must be updated. [1]: https://github.com/orgs/nordtheme/discussions/183#retire-arctic-ice-studio-as-nord-brand [2]: nordtheme/web#241 [3]: svengreb/styleguide-git#12 [4]: svengreb/styleguide-javascript#88 [5]: svengreb/styleguide-markdown#63 GH-17
- Loading branch information
Showing
17 changed files
with
2,063 additions
and
1,703 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
**/*.png | ||
.husky/_/ | ||
node_modules/ | ||
go.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
// Forked from https://git.dim13.org/itermcolors.git/tree/main.go | ||
// Inspired by https://github.com/F1LT3R/itermcolors-to-hex/blob/master/index.js | ||
package main | ||
|
||
import ( | ||
"flag" | ||
"fmt" | ||
"io/ioutil" | ||
"math" | ||
"os" | ||
"path/filepath" | ||
"strings" | ||
"text/template" | ||
|
||
"howett.net/plist" | ||
) | ||
|
||
type Scheme struct { | ||
Name string | ||
Ansi0 Color `plist:"Ansi 0 Color"` | ||
Ansi1 Color `plist:"Ansi 1 Color"` | ||
Ansi2 Color `plist:"Ansi 2 Color"` | ||
Ansi3 Color `plist:"Ansi 3 Color"` | ||
Ansi4 Color `plist:"Ansi 4 Color"` | ||
Ansi5 Color `plist:"Ansi 5 Color"` | ||
Ansi6 Color `plist:"Ansi 6 Color"` | ||
Ansi7 Color `plist:"Ansi 7 Color"` | ||
Ansi8 Color `plist:"Ansi 8 Color"` | ||
Ansi9 Color `plist:"Ansi 9 Color"` | ||
Ansi10 Color `plist:"Ansi 10 Color"` | ||
Ansi11 Color `plist:"Ansi 11 Color"` | ||
Ansi12 Color `plist:"Ansi 12 Color"` | ||
Ansi13 Color `plist:"Ansi 13 Color"` | ||
Ansi14 Color `plist:"Ansi 14 Color"` | ||
Ansi15 Color `plist:"Ansi 15 Color"` | ||
Background Color `plist:"Background Color"` | ||
Badge Color `plist:"Badge Color"` | ||
Bold Color `plist:"Bold Color"` | ||
Cursor Color `plist:"Cursor Color"` | ||
CursorGuide Color `plist:"Cursor Guide Color"` | ||
CursorText Color `plist:"Cursor Text Color"` | ||
Foreground Color `plist:"Foreground Color"` | ||
Link Color `plist:"Link Color"` | ||
SelectedText Color `plist:"Selected Text Color"` | ||
Selection Color `plist:"Selection Color"` | ||
} | ||
|
||
type Color struct { | ||
Alpha float64 `plist:"Alpha Component"` | ||
Red float64 `plist:"Red Component"` | ||
Green float64 `plist:"Green Component"` | ||
Blue float64 `plist:"Blue Component"` | ||
Space string `plist:"Color Space"` | ||
} | ||
|
||
func (c Color) String() string { | ||
r := int(math.MaxUint8 * c.Red) | ||
g := int(math.MaxUint8 * c.Green) | ||
b := int(math.MaxUint8 * c.Blue) | ||
return fmt.Sprintf("#%02x%02x%02x", r, g, b) | ||
} | ||
|
||
func name(s string) string { | ||
return strings.TrimSuffix(filepath.Base(s), filepath.Ext(s)) | ||
} | ||
|
||
func exitErr(code int, err error) { | ||
fmt.Println(err) | ||
os.Exit(code) | ||
} | ||
|
||
func main() { | ||
file := flag.String("file", "", "Color scheme .itemcolors") | ||
tmpl := flag.String("tmpl", "scheme.tmpl", "Xresources template") | ||
out := flag.String("out", "-", "output") | ||
flag.Parse() | ||
|
||
body, err := ioutil.ReadFile(*file) | ||
if err != nil { | ||
exitErr(1, err) | ||
} | ||
|
||
var s Scheme | ||
if _, err := plist.Unmarshal(body, &s); err != nil { | ||
exitErr(1, err) | ||
} | ||
s.Name = name(*file) | ||
fd := os.Stdout | ||
|
||
if *out != "-" { | ||
fd, err = os.Create(*out) | ||
if err != nil { | ||
exitErr(1, err) | ||
} | ||
} | ||
|
||
t, err := template.ParseFiles(*tmpl) | ||
if err != nil { | ||
exitErr(1, err) | ||
} | ||
|
||
if err := t.Execute(fd, s); err != nil { | ||
exitErr(1, err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
! Color scheme {{.Name}} | ||
*VT100*foreground: {{.Foreground}} | ||
*VT100*background: {{.Background}} | ||
*VT100*cursorColor: {{.Cursor}} | ||
! Black | ||
*VT100*color0: {{.Ansi0}} | ||
*VT100*color8: {{.Ansi8}} | ||
! Red | ||
*VT100*color1: {{.Ansi1}} | ||
*VT100*color9: {{.Ansi9}} | ||
! Green | ||
*VT100*color2: {{.Ansi2}} | ||
*VT100*color10: {{.Ansi10}} | ||
! Yellow | ||
*VT100*color3: {{.Ansi3}} | ||
*VT100*color11: {{.Ansi11}} | ||
! Blue | ||
*VT100*color4: {{.Ansi4}} | ||
*VT100*color12: {{.Ansi12}} | ||
! Magenta | ||
*VT100*color5: {{.Ansi5}} | ||
*VT100*color13: {{.Ansi13}} | ||
! Cyan | ||
*VT100*color6: {{.Ansi6}} | ||
*VT100*color14: {{.Ansi14}} | ||
! White | ||
*VT100*color7: {{.Ansi7}} | ||
*VT100*color15: {{.Ansi15}} | ||
! Bold | ||
*VT100*colorBD: {{.Bold}} | ||
!*colorIT: | ||
!*colorUL: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: "{{.Name}}" | ||
terminal: | ||
# nord4 | ||
foreground: "{{.Foreground}}" | ||
# nord0 | ||
background: "{{.Background}}" | ||
# nord4 | ||
cursorColor: "{{.Cursor}}" | ||
colors: | ||
black: | ||
# nord0 | ||
color0: "{{.Ansi0}}" | ||
# nord3 | ||
color8: "{{.Ansi8}}" | ||
red: | ||
# nord11 | ||
color1: "{{.Ansi1}}" | ||
# nord11 | ||
color9: "{{.Ansi9}}" | ||
green: | ||
# nord14 | ||
color2: "{{.Ansi2}}" | ||
# nord14 | ||
color10: "{{.Ansi10}}" | ||
yellow: | ||
# nord13 | ||
color3: "{{.Ansi3}}" | ||
# nord13 | ||
color11: "{{.Ansi11}}" | ||
blue: | ||
# nord9 | ||
color4: "{{.Ansi4}}" | ||
# nord9 | ||
color12: "{{.Ansi12}}" | ||
magenta: | ||
# nord15 | ||
color5: "{{.Ansi5}}" | ||
# nord15 | ||
color13: "{{.Ansi13}}" | ||
cyan: | ||
# nord8 | ||
color6: "{{.Ansi6}}" | ||
# nord7 | ||
color14: "{{.Ansi14}}" | ||
white: | ||
# nord5 | ||
color7: "{{.Ansi7}}" | ||
# nord6 | ||
color15: "{{.Ansi15}}" | ||
font: | ||
bold: "{{.Bold}}" | ||
italic: | ||
underline: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/nordtheme/iterm2 | ||
|
||
go 1.15 | ||
|
||
require howett.net/plist v0.0.0-20201026045517-117a925f2150 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= | ||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= | ||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= | ||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= | ||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||
howett.net/plist v0.0.0-20201026045517-117a925f2150 h1:s7O/9fwMNd6O1yXyQ8zv+U7dfl8k+zdiLWAY8h7XdVI= | ||
howett.net/plist v0.0.0-20201026045517-117a925f2150/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.