poetaster / harbour-concretemixer

An engineering app for your construction site. Calculate the right amount of cement, sand, gravel and water for any concrete project and desired strength.
GNU General Public License v3.0
0 stars 3 forks source link

Feature request: Make bag size configurable #8

Open sebix opened 2 weeks ago

sebix commented 2 weeks ago

The bag number calculation is currently fixed on 50kg bags.

https://github.com/poetaster/harbour-concretemixer/blob/a706564d913e051237dc568aef251f05a27d897f/qml/pages/FirstPage.qml#L625-L629

In our region, at least, the standard bag size is now 40kg (not (only) because of shrinkflation, but also to reduce the loads on the spine).

There seems to be already a settings page prepared in the code (qml/pages/Settings.qml), but it's inactive and doesn't seem to set anything yet. I guess this page can be reactivated to configure the bag size and possibly other values.

poetaster commented 2 weeks ago

The bag number calculation is currently fixed on 50kg bags.

https://github.com/poetaster/harbour-concretemixer/blob/a706564d913e051237dc568aef251f05a27d897f/qml/pages/FirstPage.qml#L625-L629

In our region, at least, the standard bag size is now 40kg (not (only) because of shrinkflation, but also to reduce the loads on the spine).

There seems to be already a settings page prepared in the code (qml/pages/Settings.qml), but it's inactive and doesn't seem to set anything yet. I guess this page can be reactivated to configure the bag size and possibly other values.

I'll add a configuration option in the next week or two. We can also buy 20kg sacks here which is what I've used in the past couple of years.