QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
ImGuiTheme.h
Go to the documentation of this file.
1#pragma once
2
7
8#include <imgui.h>
9
10#include <filesystem>
11
15{
17 inline constexpr float FontSize = 16.0f;
18
26 void ApplyStyle(ImGuiStyle& style, float dpiScale);
27
31 std::filesystem::path GetFontPath();
32
40 bool LoadFont(ImFontAtlas& atlas, const std::filesystem::path& file);
41}
The look of the ImGui interface.
Definition ImGuiTheme.h:15
std::filesystem::path GetFontPath()
Returns where the engine font is expected: resources/fonts/Inter/Inter-Regular.ttf,...
constexpr float FontSize
Height of the text in pixels on a standard screen, before the DPI scale.
Definition ImGuiTheme.h:17
void ApplyStyle(ImGuiStyle &style, float dpiScale)
Replaces the colors, spacing and rounding of a style with the engine theme.
bool LoadFont(ImFontAtlas &atlas, const std::filesystem::path &file)
Loads a font file as the default font of an atlas, at FontSize.