mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
cb71fb2822
The fact that the rescaling in the settings gave different results from what we got after a restart really should have been a dead giveaway that the code was fundamentally flawed. With this, if the user picks smaller, regular, or larger they now always get the same, consistent values for gridUnit and font sizes. This also gives up on the idea that we can just force the gridUnit to be smaller to make things work if the font (which drives the gridUnit) is too big for a screen. That fundamentally cannot work and gives a horrible UI experience. So instead simply warn the user and continue with matching font / gridUnit, which will still give a bad experience, but at least we told the user about it and didn't pretend this was ok or fixable. Finally, this gets the factors right when switching from smaller to larger or back, without stopping at regular on the way. One odd side effect of this code is that under certain conditions (number of columns changes) the display window when running mobile on desktop will resize. That's kind of odd, but as that is not /really/ our target platform, for now I'd consider it acceptable. But it does deserve more investigation. Signed-off-by: Dirk Hohndel <dirk@hohndel.org> |
||
---|---|---|
.. | ||
icons | ||
About.qml | ||
CloudCredentials.qml | ||
CopySettings.qml | ||
DiveDetails.qml | ||
DiveDetailsEdit.qml | ||
DiveDetailsView.qml | ||
DiveList.qml | ||
DivePlannerEdit.qml | ||
DivePlannerManager.qml | ||
DivePlannerSetup.qml | ||
DivePlannerView.qml | ||
DiveSummary.qml | ||
DownloadedDiveDelegate.qml | ||
DownloadFromDiveComputer.qml | ||
Export.qml | ||
GpsList.qml | ||
HintsTextEdit.qml | ||
Log.qml | ||
main.qml | ||
MapPage.qml | ||
mobile-resources.qrc | ||
qmldir | ||
qtquickcontrols2.conf | ||
RecoverCache.qml | ||
Settings.qml | ||
SsrfSwitch.qml | ||
SsrfTextField.qml | ||
StartPage.qml | ||
StatisticsPage.qml | ||
TemplateButton.qml | ||
TemplateCheckBox.qml | ||
TemplateComboBox.qml | ||
TemplateEditComboBox.qml | ||
TemplateLabel.qml | ||
TemplateLabelSmall.qml | ||
TemplateLine.qml | ||
TemplatePage.qml | ||
TemplateRadioButton.qml | ||
TemplateSection.qml | ||
TemplateSlimComboBox.qml | ||
TemplateSpinBox.qml | ||
TemplateTextField.qml | ||
TemplateTitle.qml | ||
ThemeTest.qml | ||
TripDetails.qml |