config: allow booleans for background-blur-radius

This commit is contained in:
Leah Amelia Chen
2025-01-04 14:11:35 +08:00
committed by Mitchell Hashimoto
parent cd90821b93
commit f2c357a209
5 changed files with 127 additions and 13 deletions

View File

@@ -533,7 +533,7 @@ fn parsePackedStruct(comptime T: type, v: []const u8) !T {
return result;
}
fn parseBool(v: []const u8) !bool {
pub fn parseBool(v: []const u8) !bool {
const t = &[_][]const u8{ "1", "t", "T", "true" };
const f = &[_][]const u8{ "0", "f", "F", "false" };