neu-rah / ArduinoMenu

Arduino generic menu/interactivity system
GNU Lesser General Public License v2.1
948 stars 191 forks source link

Make numeric edit field tuning/non-tuning characters modifiable. #370

Open regnaDkciN opened 2 years ago

regnaDkciN commented 2 years ago

I've never been satisfied with the default tuning/non -tuning characters used when editing numeric fields. It would be a simple matter to enable changing of these characters. For example, in items.cpp add the following at line 3: const char fieldBase::TunningCursor = ">"; const char fieldBase::NonTunningCursor = ":";

Then change line 392 of items.cpp to: out.print((root.navFocus==this&&sel)?(tunning ? TunningCursor : NonTunningCursor) :" ");

Finally, add the following 2 lines after line 165 of items.h static const char TunningCursor; static const char NonTunningCursor;

With these changes, a user can easily change the tuning/non -tuning characters as desired.