use an inline function to reduce code duplication when getting styles in chameleon.zig
this pr replaces the repeated calls to
```zig
const style = wrapStyle(@field(Styles, @src().fn_name));
comptime return .{
.level = self.level,
.visible_always = self.visible_always,
.open = self.open ++ style[0],
.close = self.close ++ style[1],
};
```
with the function
```zig
Utils.getStyle(self, @src().fn_name);
```
to reduce a lot of code duplication when getting the styles from styles.zig
合并状态:未合并 关闭于 2024-07-17 1 条评论