multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.41k stars 438 forks source link

Appearance color #2001

Open Inder00 opened 3 years ago

Inder00 commented 3 years ago

Describe the solution you'd like Add new function client-side getThemeColor() which allow to get theme color

Additional context

#include <winrt/Windows.UI.ViewManagement.h>

using namespace winrt::Windows::UI::ViewManagement;

if (RUNNING_ON_WINDOWS_10) {
  UISettings settings;
  auto background = settings.GetColorValue(UIColorType::Background);
  auto foreground = settings.GetColorValue(UIColorType::Foreground);
}

Source: https://stackoverflow.com/questions/51334674/how-to-detect-windows-10-light-dark-mode-in-win32-application

Lpsd commented 3 years ago

Why?

Inder00 commented 3 years ago

Why?

In my opinion, it would be a good idea to introduce this feature, so you could tweak the Server UI to the user's system settings.

DREFTHUN commented 3 years ago

What is somebody is running linux?

Disinterpreter commented 3 years ago

What is somebody is running linux?

how would you run MTA client on Linux?

DREFTHUN commented 3 years ago

My bad, wasn't thinking.