Files
Viper_VRTE/fltk/_cfl_theme.vp
T

22 lines
873 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================
# fltk/_cfl_theme.vp — Fl_Theme(C++ 主题库)→ Viper extern FFI
#
# 对应 Fl_Theme/fltk_theme.cpp 导出的 C 函数(手工维护,gen_ffi 不覆盖)。
# 链接需 libfltk_theme.a(见 project.vpj linker.static_libs)+
# libcfltk2.a + libfltk_images.a(Fl_SVG_Image)。
# ============================================================
import t, c
# 应用深色主题(flat 控件 + BLACK 色板)
extern def Fl_Theme_apply_dark()
# 应用 Metro 主题(metro 控件 + 蓝灰配色)
extern def Fl_Theme_apply_metro()
# 设置 flat 控件圆角半径(默认 5;应用主题前调用)
extern def Fl_Theme_set_border_radius(radius: int)
# 仅应用 flat / metro 控件绘制方案(不改颜色)
extern def Fl_Theme_apply_flat_scheme()
extern def Fl_Theme_apply_metro_scheme()