From a5f58ca985c5a7935eea6fd673ac5acbfe63f4d8 Mon Sep 17 00:00:00 2001 From: geeseven <2334728+geeseven@users.noreply.github.com> Date: Sun, 20 Dec 2020 20:55:27 -0600 Subject: [PATCH 1/2] add support for GraphQL --- resources/graphql.ascii | 25 +++++++++++++++++++++++++ src/onefetch/language.rs | 1 + 2 files changed, 26 insertions(+) create mode 100644 resources/graphql.ascii diff --git a/resources/graphql.ascii b/resources/graphql.ascii new file mode 100644 index 000000000..5e75d2aa7 --- /dev/null +++ b/resources/graphql.ascii @@ -0,0 +1,25 @@ +{0} {} +{0} {}{}{} +{0} {}{}{} +{0} {}{}{}{}{} +{0} {}{} {}{}{} {}{} +{0} {}{} {}{} {} {} {}{} {}{} +{0} {}{}{}{} {} {} {}{}{}{} +{0} {}{}{}{} {} {} {}{}{}{} +{0} {}{}{} {} {} {}{}{} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {}{} {}{} +{0} {}{}{} {}{}{} +{0} {}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{} +{0} {}{}{}{} {}{}{}{} +{0} {}{} {}{} {}{} {}{} +{0} {}{} {} {}{} +{0} {}{}{}{}{} +{0} {}{}{} +{0} {}{}{} +{0} {} diff --git a/src/onefetch/language.rs b/src/onefetch/language.rs index 7857ac8e2..21a2dceb3 100644 --- a/src/onefetch/language.rs +++ b/src/onefetch/language.rs @@ -180,6 +180,7 @@ define_languages! { { FortranModern, "f90.ascii", "Fortran", define_colors!( [Color::White, Color::Green, Color::Cyan, Color::Yellow, Color::Red] ), "fortran" }, { FSharp, "fsharp.ascii", "F#", define_colors!( [Color::Cyan, Color::Cyan] ), "f#" }, { Go, "go.ascii", "Go", define_colors!( [Color::Cyan, Color::White, Color::Yellow] : [Color::TrueColor{ r:116, g:205, b:221 }, Color::TrueColor{ r:255, g:255, b:255 }, Color::TrueColor{ r:246, g:210, b:162 }] ) }, + { Graphql, "graphql.ascii", "GraphQL", define_colors!( [Color::Magenta] ) }, { Groovy, "groovy.ascii", "Groovy", define_colors!( [Color::Cyan, Color::White] ) }, { Haskell, "haskell.ascii", "Haskell", define_colors!( [Color::Cyan, Color::Magenta, Color::Blue] : [Color::TrueColor{ r:69, g:58, b:98 }, Color::TrueColor{ r:94, g:80, b:134 }, Color::TrueColor{ r:143, g:78, b:139 }] ) }, { HolyC, "holyc.ascii", "HolyC", define_colors!( [Color::Yellow, Color::Cyan, Color::White] : [Color::TrueColor{ r:251, g:254 ,b:103}, Color::TrueColor{ r:11, g:68 ,b:157}, Color::TrueColor{ r:255, g:255 ,b:255} ]) }, From b69e84e750323641bbfbe985c06cdf871877d46c Mon Sep 17 00:00:00 2001 From: o2sh Date: Mon, 21 Dec 2020 13:22:03 +0100 Subject: [PATCH 2/2] make graphql logo more symetrical --- resources/graphql.ascii | 46 +++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/resources/graphql.ascii b/resources/graphql.ascii index 5e75d2aa7..aa81e1e03 100644 --- a/resources/graphql.ascii +++ b/resources/graphql.ascii @@ -1,25 +1,21 @@ -{0} {} -{0} {}{}{} -{0} {}{}{} -{0} {}{}{}{}{} -{0} {}{} {}{}{} {}{} -{0} {}{} {}{} {} {} {}{} {}{} -{0} {}{}{}{} {} {} {}{}{}{} -{0} {}{}{}{} {} {} {}{}{}{} -{0} {}{}{} {} {} {}{}{} -{0} {} {} {} {} -{0} {} {} {} {} -{0} {} {} {} {} -{0} {} {} {} {} -{0} {} {} {} {} -{0} {} {} {} {} -{0} {}{} {}{} -{0} {}{}{} {}{}{} -{0} {}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{} -{0} {}{}{}{} {}{}{}{} -{0} {}{} {}{} {}{} {}{} -{0} {}{} {} {}{} -{0} {}{}{}{}{} -{0} {}{}{} -{0} {}{}{} -{0} {} +{0} {}{}{} +{0} {}{}{}{} +{0} {}{}{}{} +{0} {} {}{}{} {} +{0} {}{}{} {} {} {} {} {}{}{} +{0} {}{}{}{} {} {} {}{}{}{} +{0} {}{}{}{} {} {} {}{}{}{} +{0} {}{}{} {} {} {}{}{} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {} {} {} {} +{0} {}{}{} {}{}{} +{0} {}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{}{} +{0} {}{}{}{} {}{}{}{} +{0} {}{}{} {} {} {}{}{} +{0} {} {}{}{} {} +{0} {}{}{}{} +{0} {}{}{}{} +{0} {}{}{}