summaryrefslogtreecommitdiff
path: root/src/tangara/lua
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-09-13 10:17:34 +1000
committerjacqueline <me@jacqueline.id.au>2024-09-13 10:17:34 +1000
commit1106012bde558dab5e192c2129178d44f80b9e4e (patch)
tree12e57cd25efda02a1c6dd58250b3fe8a644434de /src/tangara/lua
parentd8b9e65e68214b4aa2bb24ddae3602d5788bc469 (diff)
parenta174d76aa16e09ddfc2ce67393c92ed947a817a5 (diff)
downloadtangara-fw-1106012bde558dab5e192c2129178d44f80b9e4e.tar.gz
Merge branch 'main' into jqln/tts
Diffstat (limited to 'src/tangara/lua')
-rw-r--r--src/tangara/lua/lua_theme.cpp10
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}};