piggz / harbour-amazfish

Amazfit Bip support for SailfishOS
GNU General Public License v3.0
103 stars 51 forks source link

Use native component for TimePicker #330

Closed jmlich closed 7 months ago

jmlich commented 7 months ago

Ubuntu touch provides native date picker which can be used for time: https://ubports.gitlab.io/docs/api-docs/lomiriuserinterfacetoolkit/qml-lomiri-components-pickers-datepicker.html

import Lomiri.Components.Pickers 1.0
DatePicker {
   mode: "Hours|Minutes"
}

In the end it looks like this: Screenshot_ubuntu20 04_2024-01-14_15:34:50 Screenshot_ubuntu20 04_2024-01-14_15:34:09