AsteroidOS / asteroid-settings

Default settings app for AsteroidOS
GNU General Public License v3.0
9 stars 18 forks source link

Add uptime #74

Closed beroset closed 1 year ago

beroset commented 1 year ago

Inspired by https://github.com/AsteroidOS/asteroid-settings/pull/69 and a comment from @kido I decided to implement this using a sysinfo() call which also gets us freeram and totalram without any additional work. I also added some changes to make it easier to translate strings, such as the screen dimensions. Right now it shows 400W x 400H which use the English abbreviations for height and width, but it's now possible to translate that into other languages.

beroset commented 1 year ago

I've refactored it completely to add a SysInfo object that can be called from QML.

FlorentRevest commented 1 year ago

Looking great now, thank you beroset!

Could you run add a commit that updates translation files too ? lupdate-qt5 -no-obsolete src/* i18n/*.h -ts i18n/*.ts So that weblate picks them up

beroset commented 1 year ago

Done and rebased.

FlorentRevest commented 1 year ago

Thank you!