imgui-platform-kit 2.0.0
Cross-platform Dear ImGui application framework
Loading...
Searching...
No Matches
themes.h File Reference

Colour themes for the user interface and a runtime theme selector. More...

#include "imgui.h"
#include <functional>
#include <string>
#include <unordered_map>
Include dependency graph for themes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  imgui_kit
 

Enumerations

enum class  imgui_kit::Theme {
  imgui_kit::Light , imgui_kit::Dark , imgui_kit::Classic , imgui_kit::AdobeInspired ,
  imgui_kit::BlackDevil , imgui_kit::BootstrapDark , imgui_kit::Cherry , imgui_kit::ClassicSteam ,
  imgui_kit::CleanDarkRed , imgui_kit::Comfy , imgui_kit::DuckRed , imgui_kit::Darcula ,
  imgui_kit::DarkRuda , imgui_kit::Darky , imgui_kit::DeepDark , imgui_kit::DiscordDark ,
  imgui_kit::EnemyMouse , imgui_kit::EverForest , imgui_kit::FutureDark , imgui_kit::Gold ,
  imgui_kit::GreenFont , imgui_kit::GreenLeaf , imgui_kit::HazyDark , imgui_kit::MaterialFlat ,
  imgui_kit::Microsoft , imgui_kit::Modern , imgui_kit::Moonlight , imgui_kit::Photoshoop ,
  imgui_kit::PurpleComfy , imgui_kit::QuickMinimal , imgui_kit::RedFont , imgui_kit::RedOni ,
  imgui_kit::RoundedVisualStudio , imgui_kit::SoftCherry , imgui_kit::SonicRiders , imgui_kit::Unreal ,
  imgui_kit::VisualStudio , imgui_kit::Windark , imgui_kit::LedSynthmaster
}
 Available colour themes. More...
 

Functions

void imgui_kit::showImGuiKitThemeSelector (bool *p_open=nullptr)
 Shows a window that lets the user switch themes at runtime.
 
Theme appliers

Apply the corresponding theme to the current ImGui context by setting ImGui::GetStyle().

Usually called indirectly through the themes map or StyleParameters::apply() rather than directly. Light, Dark and Classic have no applier here; they use the ImGui built-ins (ImGui::StyleColorsLight/Dark/Classic).

void imgui_kit::applyAdobeInspiredTheme ()
 
void imgui_kit::applyBlackDevilTheme ()
 
void imgui_kit::applyBootstrapDarkTheme ()
 
void imgui_kit::applyCherryTheme ()
 
void imgui_kit::applyClassicSteamTheme ()
 
void imgui_kit::applyCleanDarkRedTheme ()
 
void imgui_kit::applyComfyTheme ()
 
void imgui_kit::applyDuckRedTheme ()
 
void imgui_kit::applyDarculaTheme ()
 
void imgui_kit::applyDarkRudaTheme ()
 
void imgui_kit::applyDarkyTheme ()
 
void imgui_kit::applyDeepDarkTheme ()
 
void imgui_kit::applyDiscordDarkTheme ()
 
void imgui_kit::applyEnemyMouseTheme ()
 
void imgui_kit::applyEverForestTheme ()
 
void imgui_kit::applyFutureDarkTheme ()
 
void imgui_kit::applyGoldTheme ()
 
void imgui_kit::applyGreenFontTheme ()
 
void imgui_kit::applyGreenLeafTheme ()
 
void imgui_kit::applyHazyDarkTheme ()
 
void imgui_kit::applyMaterialFlatTheme ()
 
void imgui_kit::applyMicrosoftTheme ()
 
void imgui_kit::applyModernTheme ()
 
void imgui_kit::applyMoonlightTheme ()
 
void imgui_kit::applyPhotoshoopTheme ()
 
void imgui_kit::applyPurpleComfyTheme ()
 
void imgui_kit::applyQuickMinimalTheme ()
 
void imgui_kit::applyRedFontTheme ()
 
void imgui_kit::applyRedOniTheme ()
 
void imgui_kit::applyRoundedVisualStudioTheme ()
 
void imgui_kit::applySoftCherryTheme ()
 
void imgui_kit::applySonicRidersTheme ()
 
void imgui_kit::applyUnrealTheme ()
 
void imgui_kit::applyVisualStudioTheme ()
 
void imgui_kit::applyWindarkTheme ()
 
void imgui_kit::applyLedSynthmasterTheme ()
 

Variables

const std::unordered_map< Theme, std::string > imgui_kit::themeNames
 Human-readable display name for each Theme value.
 
std::unordered_map< Theme, std::function< void()> > imgui_kit::themes
 Maps each Theme value to the function that applies it.
 

Detailed Description

Colour themes for the user interface and a runtime theme selector.

Select a theme via imgui_kit::StyleParameters::theme, or let the user switch at runtime with showImGuiKitThemeSelector().