QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
ImGuiTheme.h File Reference

The look of the ImGui interface: colors, spacing and font. More...

#include <imgui.h>
#include <filesystem>

Go to the source code of this file.

Namespaces

namespace  Quasar
 Contains all the engine code.
namespace  Quasar::ImGuiTheme
 The look of the ImGui interface.

Functions

void Quasar::ImGuiTheme::ApplyStyle (ImGuiStyle &style, float dpiScale)
 Replaces the colors, spacing and rounding of a style with the engine theme.
std::filesystem::path Quasar::ImGuiTheme::GetFontPath ()
 Returns where the engine font is expected: resources/fonts/Inter/Inter-Regular.ttf, in the folder of the executable.
bool Quasar::ImGuiTheme::LoadFont (ImFontAtlas &atlas, const std::filesystem::path &file)
 Loads a font file as the default font of an atlas, at FontSize.

Variables

constexpr float Quasar::ImGuiTheme::FontSize = 16.0f
 Height of the text in pixels on a standard screen, before the DPI scale.

Detailed Description

The look of the ImGui interface: colors, spacing and font.

Author
Kurogenshi
Date
2026-11-02