-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
新增: - static var theme: String = "blue" 表示当前主题。 - Color get_palette_color_by_name(name) 获取当前主题下代号 name 的颜色。 - Color get_palette_color_by_info(col_theme, name) 获取主题 col_theme 下 代号 name 的颜色。 - 其他函数和常量。 修改: - PALETTE 修改:PALETTE[col_theme][name]: Color 现在表示主题 col_theme 下代号 name 的颜色。 - void update_animation(...) 函数修改:现在该函数会先替换颜色,再根据 当前 theme 替换颜色(若颜色不在 PALETTE 中则不替换)。 BREAKING CHANGE: 原 PALETTE 废用,update_animation 函数更改。 原先使用 PALETTE 的情况下,考虑用 get_palette_color_by_name 或 get_palette_color_by_info 替代。
- Loading branch information
Showing
1 changed file
with
91 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters