Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Mon Aug 30, 2021 4:12 pm Post subject: |
|
|
Easiest is don't change any font info. If you do, it also contains font color which then gets loaded back when the form is loaded, overriding the dark mode white font color
But alternatively, you can use this simple lua script to adjust font colors to white when dark mode is enabled. It'll keep working on older versions of CE as well as it first checks if the darkMode function is available
| Code: |
function fixFontColor(c, newColor)
local i
if c.Font then
c.Font.Color=newColor
end
for i=0,c.ComponentCount-1 do
fixFontColor(c.Component[i], newColor)
end
end
if darkMode and darkMode() then
fixFontColor(formname, clWhite)
end
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|