fix "monochrome" terminal colors #406

This commit is contained in:
end-4
2024-04-14 15:20:17 +07:00
parent 7b7467b33c
commit 72121dac20
3 changed files with 44 additions and 0 deletions
@@ -26,6 +26,9 @@ else
lightdark=$(sed -n '1p' $colormodefile)
transparency=$(sed -n '2p' $colormodefile)
materialscheme=$(sed -n '3p' $colormodefile)
if [ "$materialscheme" = "monochrome" ]; then
terminalscheme="$HOME/.config/ags/scripts/templates/terminal/scheme-monochrome.json"
fi
fi
backend="material" # color generator backend
if [ ! -f "$HOME/.cache/ags/user/colorbackend.txt" ]; then
@@ -134,6 +134,9 @@ if args.termscheme is not None:
primary_color_argb = hex_to_argb(material_colors['primary_paletteKeyColor'])
for color, val in term_source_colors.items():
if(args.scheme == 'monochrome') :
term_colors[color] = val
continue
if args.blend_bg_fg and color == "term0":
harmonized = boost_chroma_tone(hex_to_argb(material_colors['surfaceContainerLow']), 1.2, 0.95)
elif args.blend_bg_fg and color == "term15":
@@ -0,0 +1,38 @@
{
"dark": {
"term0": "#080808",
"term1": "#FFB8B8",
"term2": "#B7FADA",
"term3": "#FFFAA7",
"term4": "#C9C9FC",
"term5": "#FFB8FF",
"term6": "#B8B8FF",
"term7": "#FFFFFF",
"term8": "#404040",
"term9": "#FFB8B8",
"term10": "#B7FADA",
"term11": "#FFFAA7",
"term12": "#C9C9FC",
"term13": "#FFB8FF",
"term14": "#B8B8FF",
"term15": "#FFFFFF"
},
"light": {
"term0": "#FFFFFF",
"term1": "#AD0000",
"term2": "#2A3F35",
"term3": "#C2B608",
"term4": "#281C6D",
"term5": "#700070",
"term6": "#8CEBE3",
"term7": "#070707",
"term8": "#aaaaaa",
"term9": "#AD0000",
"term10": "#2A3F35",
"term11": "#C2B608",
"term12": "#281C6D",
"term13": "#700070",
"term14": "#8CEBE3",
"term15": "#070707"
}
}