From 35f5e6eec9c91f6be04b04c5f7456ceae896ff8f Mon Sep 17 00:00:00 2001 From: Sadie Dotzler Date: Sun, 10 Apr 2022 21:51:21 -0700 Subject: [PATCH 1/2] flagcolorcodes page 1 --- hyfetch/presets.py | 128 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 127 insertions(+), 1 deletion(-) diff --git a/hyfetch/presets.py b/hyfetch/presets.py index 56e2ef03..fbf413aa 100644 --- a/hyfetch/presets.py +++ b/hyfetch/presets.py @@ -81,7 +81,7 @@ class ColorProfile: result += '\033[0m' return result - +_C = ColorProfile # for convenience, must remove PRESETS: dict[str, ColorProfile] = { 'rainbow': ColorProfile([ '#E50000', @@ -157,4 +157,130 @@ PRESETS: dict[str, ColorProfile] = { '#ABABAB', '#000000' ]), + # below sourced from https://www.flagcolorcodes.com/flags/pride + # goto f"https://www.flagcolorcodes.com/{preset}" for info + # todo: sane sorting + 'autosexual': _C([ + '#99D9EA', + '#7F7F7F' + ]), + 'intergender': _C([ + # todo: implement weighted spacing + '#900DC2', + '#900DC2', + '#FFE54F', + '#900DC2', + '#900DC2', + ]), + 'greygender': _C([ + '#B3B3B3', + '#B3B3B3', + '#FFFFFF', + '#062383', + '#062383', + '#FFFFFF', + '#535353', + '#535353', + ]), + 'akiosexual': _C([ + '#F9485E', + '#FEA06A', + '#FEF44C', + '#FFFFFF', + '#000000', + ]), + 'transmasculine': _C([ + '#FF8ABD', + '#CDF5FE', + '#9AEBFF', + '#74DFFF', + '#9AEBFF', + '#CDF5FE', + '#FF8ABD', + ]), + 'demifaun': _C([ + '#7F7F7F', + '#7F7F7F', + '#C6C6C6', + '#C6C6C6', + '#FCC688', + '#FFF19C', + '#FFFFFF', + '#8DE0D5', + '#9682EC', + '#C6C6C6', + '#C6C6C6', + '#7F7F7F', + '#7F7F7F', + ]), + 'neutrois': _C([ + '#FFFFFF', + '#1F9F00', + '#000000' + ]), + 'biromantic alt 2': _C([ + '#8869A5', + '#D8A7D8', + '#FFFFFF', + '#FDB18D', + '#151638', + ]), + 'biromantic alt 2': _C([ + '#740194', + '#AEB1AA', + '#FFFFFF', + '#AEB1AA', + '#740194', + ]), + 'autoromantic': _C([ # symbol interpreted + '#99D9EA', + '#99D9EA', + '#99D9EA', + '#99D9EA', + '#99D9EA', + '#000000', + '#3DA542', + '#3DA542', + '#000000', + '#7F7F7F', + '#7F7F7F', + '#7F7F7F', + '#7F7F7F', + '#7F7F7F', + ]), + # i didn't expect this one to work. cool! + 'boyflux alt 2': _C([ + '#E48AE4', + '#9A81B4', + '#55BFAB', + '#FFFFFF', + '#A8A8A8', + '#81D5EF', + '#81D5EF', + '#81D5EF', + '#81D5EF', + '#81D5EF', + '#69ABE5', + '#69ABE5', + '#69ABE5', + '#69ABE5', + '#69ABE5', + '#69ABE5', + '#69ABE5', + '#69ABE5', + '#69ABE5', + '#69ABE5', + '#5276D4', + '#5276D4', + '#5276D4', + '#5276D4', + '#5276D4', + '#5276D4', + '#5276D4', + '#5276D4', + '#5276D4', + '#5276D4', + ]), + + } From 29f771caec20392c8e95c190c01f26c0e4a05bb4 Mon Sep 17 00:00:00 2001 From: Sadie Dotzler Date: Sun, 10 Apr 2022 22:04:45 -0700 Subject: [PATCH 2/2] remove temporary alias --- hyfetch/presets.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/hyfetch/presets.py b/hyfetch/presets.py index fbf413aa..bc45d93e 100644 --- a/hyfetch/presets.py +++ b/hyfetch/presets.py @@ -81,7 +81,6 @@ class ColorProfile: result += '\033[0m' return result -_C = ColorProfile # for convenience, must remove PRESETS: dict[str, ColorProfile] = { 'rainbow': ColorProfile([ '#E50000', @@ -160,19 +159,19 @@ PRESETS: dict[str, ColorProfile] = { # below sourced from https://www.flagcolorcodes.com/flags/pride # goto f"https://www.flagcolorcodes.com/{preset}" for info # todo: sane sorting - 'autosexual': _C([ + 'autosexual': ColorProfile([ '#99D9EA', '#7F7F7F' ]), - 'intergender': _C([ - # todo: implement weighted spacing + 'intergender': ColorProfile([ + # todo: use weighted spacing '#900DC2', '#900DC2', '#FFE54F', '#900DC2', '#900DC2', ]), - 'greygender': _C([ + 'greygender': ColorProfile([ '#B3B3B3', '#B3B3B3', '#FFFFFF', @@ -182,14 +181,14 @@ PRESETS: dict[str, ColorProfile] = { '#535353', '#535353', ]), - 'akiosexual': _C([ + 'akiosexual': ColorProfile([ '#F9485E', '#FEA06A', '#FEF44C', '#FFFFFF', '#000000', ]), - 'transmasculine': _C([ + 'transmasculine': ColorProfile([ '#FF8ABD', '#CDF5FE', '#9AEBFF', @@ -198,7 +197,7 @@ PRESETS: dict[str, ColorProfile] = { '#CDF5FE', '#FF8ABD', ]), - 'demifaun': _C([ + 'demifaun': ColorProfile([ '#7F7F7F', '#7F7F7F', '#C6C6C6', @@ -213,26 +212,26 @@ PRESETS: dict[str, ColorProfile] = { '#7F7F7F', '#7F7F7F', ]), - 'neutrois': _C([ + 'neutrois': ColorProfile([ '#FFFFFF', '#1F9F00', '#000000' ]), - 'biromantic alt 2': _C([ + 'biromantic alt 2': ColorProfile([ '#8869A5', '#D8A7D8', '#FFFFFF', '#FDB18D', '#151638', ]), - 'biromantic alt 2': _C([ + 'biromantic alt 2': ColorProfile([ '#740194', '#AEB1AA', '#FFFFFF', '#AEB1AA', '#740194', ]), - 'autoromantic': _C([ # symbol interpreted + 'autoromantic': ColorProfile([ # symbol interpreted '#99D9EA', '#99D9EA', '#99D9EA', @@ -249,7 +248,7 @@ PRESETS: dict[str, ColorProfile] = { '#7F7F7F', ]), # i didn't expect this one to work. cool! - 'boyflux alt 2': _C([ + 'boyflux alt 2': ColorProfile([ '#E48AE4', '#9A81B4', '#55BFAB',