From 52e15e642258a56166c62efe33fd40a773f97fec Mon Sep 17 00:00:00 2001 From: Chandler J Date: Sat, 27 Jan 2024 13:59:22 -0700 Subject: rofi initializer progress --- src/update_rofi.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/update_rofi.py') diff --git a/src/update_rofi.py b/src/update_rofi.py index fb2100c..3232397 100644 --- a/src/update_rofi.py +++ b/src/update_rofi.py @@ -9,16 +9,16 @@ def updateRofiTheme(config_path: str, colors: list, compliments: list) -> None: bg = color_engine.hexToRGB(colors[1]) fg = color_engine.hexToRGB(compliments[1]) lbg = color_engine.hexToRGB(colors[0]) - lfg = color_engine.hexToRGB(colors[0]) + lfg = color_engine.hexToRGB(colors[2]) for i,line in enumerate(data): - if 'background: ' in line and i == 23: - data[i] = ' background: rgba({}, {}, {}, 70%);\n'.format(bg[0], bg[1], bg[2]) - if 'foreground: ' in line and i == 28: - data[i] = ' foreground: rgba({}, {}, {}, 100%);\n'.format(fg[0], fg[1], fg[2]) - if 'lightbg: ' in line and i == 11: - data[i] = ' lightbg: rgba({}, {}, {}, 100%);\n'.format(lbg[0], lbg[1], lbg[2]) - if 'lightfg: ' in line and i == 7: - data[i] = ' lightfg: rgba({}, {}, {}, 100%);\n'.format(lfg[0], lfg[1], lfg[2]) + if 'rice-background: ' in line: + data[i] = ' rice-background: rgba({}, {}, {}, 70%);\n'.format(bg[0], bg[1], bg[2]) + if 'rice-foreground: ' in line: + data[i] = ' rice-foreground: rgba({}, {}, {}, 100%);\n'.format(fg[0], fg[1], fg[2]) + if 'rice-lightbg: ' in line: + data[i] = ' rice-lightbg: rgba({}, {}, {}, 100%);\n'.format(lbg[0], lbg[1], lbg[2]) + if 'rice-lightfg: ' in line: + data[i] = ' rice-lightfg: rgba({}, {}, {}, 100%);\n'.format(lfg[0], lfg[1], lfg[2]) with open(config_path, 'w') as file: file.writelines(data) -- cgit v1.2.3