diff options
| author | ailurux <ailuruxx@gmail.com> | 2024-09-10 15:58:03 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2024-09-10 15:58:03 +1000 |
| commit | 1f5ce2438982860529e43f8ddf093164b920724a (patch) | |
| tree | 18408e0a0bc1189c48df389739dfe87bfeef2364 /src/tangara/lua | |
| parent | 50d6efada5bfa2b23a3e1830051475e95d33eb53 (diff) | |
| download | tangara-fw-1f5ce2438982860529e43f8ddf093164b920724a.tar.gz | |
Rename set_style to set_subject
Diffstat (limited to 'src/tangara/lua')
| -rw-r--r-- | src/tangara/lua/lua_theme.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tangara/lua/lua_theme.cpp b/src/tangara/lua/lua_theme.cpp index 03578778..372712b3 100644 --- a/src/tangara/lua/lua_theme.cpp +++ b/src/tangara/lua/lua_theme.cpp @@ -22,12 +22,12 @@ namespace lua { -static auto set_style(lua_State* L) -> int { - // Get the object and class name from the stack - std::string class_name = luaL_checkstring(L, -1); +static auto set_subject(lua_State* L) -> int { + // Get the object and subject name from the stack + std::string subject_name = luaL_checkstring(L, -1); lv_obj_t* obj = luavgl_to_obj(L, -2); if (obj != NULL) { - ui::themes::Theme::instance()->ApplyStyle(obj, class_name); + ui::themes::Theme::instance()->ApplyStyle(obj, subject_name); } return 0; } @@ -107,7 +107,7 @@ static auto theme_filename(lua_State* L) -> int { } static const struct luaL_Reg kThemeFuncs[] = {{"set", set_theme}, - {"set_style", set_style}, + {"set_subject", set_subject}, {"load_theme", load_theme}, {"theme_filename", theme_filename}, {NULL, NULL}}; |
