mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-28 08:42:43 +08:00
[fix] keep desktop UI readable under dark system themes, refs #103
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user