diff options
| author | hachem <im@hachem.wtf> | 2026-08-20 01:57:44 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-20 02:10:49 +0200 |
| commit | 7d39ee93a6d354e727c7534a18663f1d00d46b0f (patch) | |
| tree | a188023b61d14dcb859e08e6f8f8dd30df11780f /src/core/theme_manager.cpp | |
| parent | dce67620b95a9555c7db950196b22f1bb88a307b (diff) | |
refactor: trailing return types in core
Diffstat (limited to 'src/core/theme_manager.cpp')
| -rw-r--r-- | src/core/theme_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/theme_manager.cpp b/src/core/theme_manager.cpp index db48e12..4ae025f 100644 --- a/src/core/theme_manager.cpp +++ b/src/core/theme_manager.cpp @@ -4,7 +4,7 @@ namespace Donut { Theme ThemeManager::s_current_theme = Theme::Dark; - void ThemeManager::set_theme(Theme theme) + auto ThemeManager::set_theme(Theme theme) -> void { s_current_theme = theme; @@ -22,7 +22,7 @@ namespace Donut } } - void ThemeManager::apply_dark_theme() + auto ThemeManager::apply_dark_theme() -> void { ImGuiStyle& style = ImGui::GetStyle(); ImVec4* colors = style.Colors; @@ -111,7 +111,7 @@ namespace Donut style.DisabledAlpha = 0.6f; } - void ThemeManager::apply_light_theme() + auto ThemeManager::apply_light_theme() -> void { ImGuiStyle& style = ImGui::GetStyle(); ImVec4* colors = style.Colors; @@ -200,7 +200,7 @@ namespace Donut style.DisabledAlpha = 0.6f; } - void ThemeManager::apply_blue_theme() + auto ThemeManager::apply_blue_theme() -> void { ImGuiStyle& style = ImGui::GetStyle(); ImVec4* colors = style.Colors; |
