1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Add new setting to enable/disable dark mode in main menu. Add core funcs to set sky/cloud colors

This commit is contained in:
Zenon Seth 2025-06-07 22:05:38 +01:00
parent aba2b6638e
commit 8d6d1ff6ac
13 changed files with 119 additions and 35 deletions

View file

@ -66,8 +66,6 @@ public:
class RenderingEngine
{
public:
static const video::SColor MENU_SKY_COLOR;
RenderingEngine(MyEventReceiver *eventReceiver);
~RenderingEngine();
@ -140,6 +138,11 @@ public:
return m_device->run();
}
void setMenuSkyColor(video::SColor &color);
void setMenuCloudsColor(video::SColor &color);
const video::SColor getMenuSkyColor();
const video::SColor getMenuCloudsColor();
// FIXME: this is still global when it shouldn't be
static ShadowRenderer *get_shadow_renderer()
{
@ -160,6 +163,9 @@ public:
}
private:
video::SColor m_menu_sky_color = video::SColor(255, 140, 186, 250);
video::SColor m_menu_clouds_color = video::SColor(255, 240, 240, 255);
static void settingChangedCallback(const std::string &name, void *data);
v2u32 _getWindowSize() const;