fix: syntax issues

This commit is contained in:
huzibaca
2024-12-31 04:50:12 +08:00
parent 1b2f1b6106
commit 7d84279370
5 changed files with 6 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ impl SpeedRate {
// 修改颜色和阴影参数
let text_color = Rgba([255u8, 255u8, 255u8, 255u8]); // 纯白色
let shadow_color = Rgba([0u8, 0u8, 0u8, 180u8]); // 半透明黑色阴影
let base_size = (height as f32 * 0.5) as f32;
let base_size = height as f32 * 0.5;
let scale = Scale::uniform(base_size);
let up_text = format_bytes_speed(rate.up);