From 1f5ce2438982860529e43f8ddf093164b920724a Mon Sep 17 00:00:00 2001 From: ailurux Date: Tue, 10 Sep 2024 15:58:03 +1000 Subject: Rename set_style to set_subject --- luals-stubs/theme.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'luals-stubs/theme.lua') diff --git a/luals-stubs/theme.lua b/luals-stubs/theme.lua index 4a945cb3..5ad1d558 100644 --- a/luals-stubs/theme.lua +++ b/luals-stubs/theme.lua @@ -15,11 +15,12 @@ function theme.load_theme(filename) end --- @param theme function theme.set(theme) end ---- Set the style name (similar in concept to a css selector) for an object ---- This will set any styles associated with that style name on the object +--- Set the subject (similar in concept to a css class) of an object. +--- This will set any styles within the theme associated with that subject +--- on the given object --- @param obj Object The object to set a particular style on --- @param style string The name of the style to apply to this object -function theme.set_style(obj, style) end +function theme.set_subject(obj, subject_name) end --- Returns the filename of the saved theme --- @return string -- cgit v1.2.3