diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-09-13 10:17:34 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-09-13 10:17:34 +1000 |
| commit | 1106012bde558dab5e192c2129178d44f80b9e4e (patch) | |
| tree | 12e57cd25efda02a1c6dd58250b3fe8a644434de /src/tangara/lua/lua_theme.cpp | |
| parent | d8b9e65e68214b4aa2bb24ddae3602d5788bc469 (diff) | |
| parent | a174d76aa16e09ddfc2ce67393c92ed947a817a5 (diff) | |
| download | tangara-fw-1106012bde558dab5e192c2129178d44f80b9e4e.tar.gz | |
Merge branch 'main' into jqln/tts
Diffstat (limited to 'src/tangara/lua/lua_theme.cpp')
| -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}}; |
