Minor fixup for default appearance recent commit

.. missing header broke build on MacOS

.. default width for mainwindow corrected
This commit is contained in:
Mark Liversedge
2023-05-25 11:24:26 +01:00
parent 47688ba754
commit c01797b422
2 changed files with 6 additions and 3 deletions

View File

@@ -757,9 +757,10 @@ GSettings::defaultAppearanceSettings()
// leave 12% of the screen free to the left and right of the main window
// and same number of pixels above and below
returning.windowsize.setWidth(screensize.width() * 0.88);
double margin = (screensize.width() - returning.windowsize.width()) / 2;
returning.windowsize.setHeight(screensize.height() - (margin * 2));
double width = screensize.width() * 0.88;
double margin = (screensize.width() - width) / 2.0;
returning.windowsize.setWidth(screensize.width() - margin);
returning.windowsize.setHeight(screensize.height() - margin);
returning.windowsize.setX(margin);
returning.windowsize.setY(margin);

View File

@@ -31,6 +31,8 @@
#include "GcSideBarItem.h"
#include "GcWindowRegistry.h"
#include "Settings.h"
class AthleteTab;
class ViewSplitter;
class Context;