From 7d39ee93a6d354e727c7534a18663f1d00d46b0f Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 20 Aug 2026 01:57:44 +0200 Subject: refactor: trailing return types in core --- src/core/theme_manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/theme_manager.cpp') 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; -- cgit v1.3