[apps/settings] Engineering notation selection

This commit is contained in:
Léa Saviot
2019-08-07 17:12:47 +02:00
committed by Émilie Feral
parent 8af50eca90
commit ab86fa84de
10 changed files with 19 additions and 8 deletions

View File

@@ -63,10 +63,15 @@ Layout PreferencesController::layoutForPreferences(I18n::Message message) {
// Display Mode format
case I18n::Message::Decimal:
return LayoutHelper::String("12.34", 5, k_layoutFont);
return LayoutHelper::String("123.45", 5, k_layoutFont);
case I18n::Message::Scientific:
{
const char * text = "1.234ᴇ1";
const char * text = "1.2345ᴇ2";
return LayoutHelper::String(text, strlen(text), k_layoutFont);
}
case I18n::Message::Engineering:
{
const char * text = "12.345ᴇ3";
return LayoutHelper::String(text, strlen(text), k_layoutFont);
}