Application: minor style changes.

This commit is contained in:
Guillaume Jacquemin 2024-04-14 10:25:23 +02:00
parent e10e457ad8
commit 2f70aa7672
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A
3 changed files with 8 additions and 12 deletions

View file

@ -174,7 +174,7 @@ void
Application::viewportEvent(ViewportEvent& event) {
GL::defaultFramebuffer.setViewport({{}, event.framebufferSize()});
const Vector2 size = Vector2{windowSize()}/dpiScaling();
const auto size = Vector2{windowSize()}/dpiScaling();
_imgui.relayout(size, windowSize(), framebufferSize());
}

View file

@ -29,11 +29,8 @@
namespace mbst {
void
Application::handleFileAction(efsw::WatchID watch_id,
const std::string&,
const std::string& filename,
efsw::Action action,
std::string old_filename)
Application::handleFileAction(efsw::WatchID watch_id, const std::string&, const std::string& filename,
efsw::Action action, std::string old_filename)
{
SDL_Event event;
SDL_zero(event);

View file

@ -58,8 +58,7 @@ Application::initialiseGui() {
LOG_INFO("Initialising Dear ImGui.");
auto ctx = ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO();
auto& io = ImGui::GetIO();
const auto size = Vector2{windowSize()}/dpiScaling();
@ -94,7 +93,7 @@ Application::initialiseGui() {
io.IniFilename = nullptr;
ImGuiStyle& style = ImGui::GetStyle();
auto& style = ImGui::GetStyle();
style.WindowTitleAlign = {0.5f, 0.5f};
style.FrameRounding = 3.2f;