subsurface/mobile-widgets/qml
Dirk Hohndel cb71fb2822 mobile/UI: correctly scale UI without restart
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>
2021-01-19 12:35:29 -08:00
..
icons mobile UI: six new icons 2020-03-10 09:25:57 -07:00
About.qml mobile/UI: fix theming of About page 2020-12-23 09:44:39 -08:00
CloudCredentials.qml mobile/UI: cloud credentials follow our theming 2020-12-20 17:08:21 -08:00
CopySettings.qml Mobile: UI for selecting what to copy-paste 2018-12-21 09:13:37 +02:00
DiveDetails.qml mobile/UI: don't try to set the combobox index 2021-01-01 11:35:39 -08:00
DiveDetailsEdit.qml mobile/cleanup: remove more noisy debug output 2021-01-13 16:16:31 -08:00
DiveDetailsView.qml mobile/UI: add signal to redraw profile 2021-01-10 15:57:39 -08:00
DiveList.qml mobile/cleanup: remove more noisy debug output 2021-01-13 16:16:31 -08:00
DivePlannerEdit.qml mobile-widgets/qml: use Kirigami Units instead of hardcoded values 2020-01-24 20:20:41 -08:00
DivePlannerManager.qml mobile-widgets/qml: use Kirigami Units instead of hardcoded values 2020-01-24 20:20:41 -08:00
DivePlannerSetup.qml Mobile UI: fix typo in disabled planner setup 2020-03-04 08:03:44 -08:00
DivePlannerView.qml mobile-widgets/qml: use Kirigami Units instead of hardcoded values 2020-01-24 20:20:41 -08:00
DiveSummary.qml mobile/UI: small adjustments, using the slim combo box 2021-01-12 08:31:35 -08:00
DownloadedDiveDelegate.qml mobile/UI: consolidate to a single check box 2021-01-01 11:35:39 -08:00
DownloadFromDiveComputer.qml mobile/UI: consolidate to a single check box 2021-01-01 11:35:39 -08:00
Export.qml mobile/export: fix invalid reference 2020-03-12 07:07:48 -07:00
GpsList.qml QML UI, trivial: set proper background color GPS list 2018-10-07 17:43:34 +03:00
HintsTextEdit.qml Mobile QML UI: bump Kirigami imports to 2.4 2018-10-01 05:29:46 -07:00
Log.qml mobile-widgets/qml: columnWidth undefined 2020-01-18 12:44:05 -08:00
main.qml mobile/UI: correctly scale UI without restart 2021-01-19 12:35:29 -08:00
MapPage.qml Mobile: don't make sub-pages fill the parent 2019-10-13 11:32:27 -07:00
mobile-resources.qrc mobile/UI: add another variation of the combo box 2021-01-12 08:31:35 -08:00
qmldir mobile-widgets/qml: add qmldir to include map-widget 2019-11-26 09:44:13 -08:00
qtquickcontrols2.conf QML UI: Fully port dive edit to Kirigami2 2017-04-01 09:35:51 +02:00
RecoverCache.qml mobile: add option to merge local cloud cache data 2020-06-07 19:47:52 -07:00
Settings.qml mobile/UI: correctly scale UI without restart 2021-01-19 12:35:29 -08:00
SsrfSwitch.qml Mobile UI: make SsrfSwitch resizable 2018-10-21 14:43:41 -04:00
SsrfTextField.qml mobile/cleanup: remove more noisy debug output 2021-01-13 16:16:31 -08:00
StartPage.qml mobile/UI: cloud credentials follow our theming 2020-12-20 17:08:21 -08:00
StatisticsPage.qml mobile/cleanup: remove more noisy debug output 2021-01-13 16:16:31 -08:00
TemplateButton.qml mobile/UI: offer more font sizes 2021-01-19 12:35:29 -08:00
TemplateCheckBox.qml mobile/UI: consolidate to a single check box 2021-01-01 11:35:39 -08:00
TemplateComboBox.qml mobile/UI: make the comboboxes slightly more modern looking 2021-01-12 08:31:35 -08:00
TemplateEditComboBox.qml mobile/UI: add template for editable combo box 2021-01-01 11:35:39 -08:00
TemplateLabel.qml mobile: reduce vertical white space around labels 2020-05-14 12:57:08 -07:00
TemplateLabelSmall.qml mobile: add smaller, vertically dense template label 2020-05-14 12:57:08 -07:00
TemplateLine.qml mobile-widgets/qml: add TemplateLine 2020-01-19 11:50:19 -08:00
TemplatePage.qml mobile UI: set correct width for TeplatePage 2020-02-06 21:45:00 -08:00
TemplateRadioButton.qml mobile UI: style check boxes and radio boxes 2020-12-20 10:51:18 -08:00
TemplateSection.qml mobile-widgets: update design of TemplateSection 2020-01-25 17:25:54 -08:00
TemplateSlimComboBox.qml mobile/UI: add another variation of the combo box 2021-01-12 08:31:35 -08:00
TemplateSpinBox.qml mobile/UI: improve theming of spin box 2020-12-23 09:44:39 -08:00
TemplateTextField.qml mobile-widgets/qml: add TemplateTextField 2020-01-19 11:50:10 -08:00
TemplateTitle.qml mobile-widgets/qml: correct spelling error 2020-01-27 14:25:03 -08:00
ThemeTest.qml mobile/UI: add visualization of font size vs gridUnit 2021-01-19 12:35:29 -08:00
TripDetails.qml mobile/UI: initialize Kirigami theme to use our colors 2020-12-23 09:44:39 -08:00