satdump/src-core/core/style.h
2024-01-24 14:29:33 -05:00

46 lines
No EOL
1,022 B
C++

#pragma once
#include "dll_export.h"
#include "imgui/imgui.h"
#include <string>
namespace style
{
struct Theme
{
bool light_mode = false;
std::string font = "Roboto-Medium";
float font_size = 16.0f;
ImColor red;
ImColor green;
ImColor blue;
ImColor yellow;
ImColor orange;
ImColor cyan;
ImColor fuchsia;
ImColor magenta;
ImColor lavender;
ImColor light_green;
ImColor light_cyan;
ImColor constellation;
ImColor plot_bg;
ImColor fft_graduations;
ImColor widget_bg;
ImColor frame_bg;
ImColor overlay_bg;
ImColor freq_highlight;
};
SATDUMP_DLL extern Theme theme;
SATDUMP_DLL extern ImFont *baseFont;
SATDUMP_DLL extern ImFont *bigFont;
//SATDUMP_DLL extern ImFont *hugeFont;
void setStyle();
void beginDisabled();
void endDisabled();
void setFonts(float dpi_scaling);
float macos_framebuffer_scale();
}