From 875fea88eebf727b9aee46722bfcc096ed6be6b1 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Thu, 18 Dec 2025 01:32:38 +0800 Subject: [PATCH] [chore] adjust main window title font size --- src/gui/panels/local_peer_panel.cpp | 1 + src/gui/panels/recent_connections_panel.cpp | 1 + src/gui/panels/remote_peer_panel.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/gui/panels/local_peer_panel.cpp b/src/gui/panels/local_peer_panel.cpp index 62a9803..04a13e2 100644 --- a/src/gui/panels/local_peer_panel.cpp +++ b/src/gui/panels/local_peer_panel.cpp @@ -30,6 +30,7 @@ int Render::LocalWindow() { ImGui::SetCursorPos( ImVec2(io.DisplaySize.x * 0.045f, io.DisplaySize.y * 0.02f)); + ImGui::SetWindowFontScale(0.9f); ImGui::TextColored( ImVec4(0.0f, 0.0f, 0.0f, 0.5f), "%s", localization::local_desktop[localization_language_index_].c_str()); diff --git a/src/gui/panels/recent_connections_panel.cpp b/src/gui/panels/recent_connections_panel.cpp index afda069..9881761 100644 --- a/src/gui/panels/recent_connections_panel.cpp +++ b/src/gui/panels/recent_connections_panel.cpp @@ -26,6 +26,7 @@ int Render::RecentConnectionsWindow() { ImGui::SetCursorPos( ImVec2(io.DisplaySize.x * 0.045f, io.DisplaySize.y * 0.02f)); + ImGui::SetWindowFontScale(0.9f); ImGui::TextColored( ImVec4(0.0f, 0.0f, 0.0f, 0.5f), "%s", localization::recent_connections[localization_language_index_].c_str()); diff --git a/src/gui/panels/remote_peer_panel.cpp b/src/gui/panels/remote_peer_panel.cpp index 07d7e31..c7d7bd7 100644 --- a/src/gui/panels/remote_peer_panel.cpp +++ b/src/gui/panels/remote_peer_panel.cpp @@ -31,6 +31,7 @@ int Render::RemoteWindow() { ImGui::SetCursorPos( ImVec2(io.DisplaySize.x * 0.057f, io.DisplaySize.y * 0.02f)); + ImGui::SetWindowFontScale(0.9f); ImGui::TextColored( ImVec4(0.0f, 0.0f, 0.0f, 0.5f), "%s", localization::remote_desktop[localization_language_index_].c_str());