#pragma once #include #include namespace NXKit { enum class UIUserInterfaceStyle { unspecified, light, dark }; class UITraitCollection { public: std::shared_ptr copy(); UIUserInterfaceStyle userInterfaceStyle() const { return _userInterfaceStyle; } NXFloat displayScale() const { return _displayScale; } static std::shared_ptr current() { return _current; } static void setCurrent(std::shared_ptr current) { _current = current; } private: friend bool applicationRunLoop(); static std::shared_ptr _current; UIUserInterfaceStyle _userInterfaceStyle = UIUserInterfaceStyle::unspecified; NXFloat _displayScale = 1; }; }