[fix] keep desktop UI readable under dark system themes, refs #103

This commit is contained in:
dijunkun
2026-09-27 02:34:14 +08:00
parent bbbcfb9d6f
commit 94760b2a3c
+3 -1
View File
@@ -42,8 +42,10 @@ rule("slint")
local outputs = target:data("slint.outputs")[sourcefile] local outputs = target:data("slint.outputs")[sourcefile]
local depfile = outputs.header .. ".d" local depfile = outputs.header .. ".d"
-- Slint writes the -o path literally into each generated #include. -- Slint writes the -o path literally into each generated #include.
-- The custom UI uses fixed light backgrounds. Keep default text and
-- standard widgets light as well, regardless of the system theme.
local argv = {sourcefile, "-f", "cpp", "-o", path.absolute(outputs.header), local argv = {sourcefile, "-f", "cpp", "-o", path.absolute(outputs.header),
"--depfile", depfile, "--style", "fluent", "--depfile", depfile, "--style", "fluent-light",
"--embed-resources=embed-files", "--cpp-namespace", "crossdesk::ui"} "--embed-resources=embed-files", "--cpp-namespace", "crossdesk::ui"}
local missing_output = not os.isfile(outputs.header) local missing_output = not os.isfile(outputs.header)
for _, cppfile in ipairs(outputs.sources) do for _, cppfile in ipairs(outputs.sources) do