Commit Graph

11 Commits

Author SHA1 Message Date
tomFlowee dfabcde813 Use Basic QQ Controls theme
The non-themed import basically is just a proxy using some
auto-detection to find out which theme to use.
As the app only uses the basic theme, this is what we'll import.
2025-06-19 15:09:36 +02:00
tomFlowee 95ca9d02ce Add a small keyboard to unlock
The default now is a "small" one at the bottom that users will be able
to use with their thumbs. A common input way.
For fat-fingered people we keep the current full screen input widget,
easy to toggle by the button at the top which now is a 3-state and on
top of that gets rememebered between instantiations.
2025-02-05 16:39:43 +01:00
tomFlowee 5e9b2770aa Add red-flash on incorrect password 2024-10-23 11:45:57 +02:00
tomFlowee 6312a468af Improve the entry of pin and numbers. 2024-02-14 00:02:53 +01:00
tomFlowee 347a23bc72 Make the PIN panel take more space
This makes entering the PIN much easier simply because we use as much
space on the screen as there is available.
2024-02-12 23:20:36 +01:00
tomFlowee 8db23ba624 Provide a screen to unlock encrypted wallets.
This detects that the currently selected wallet is fully encryted and if
it is, it shows a password request page on top of the current screen.
The default setup aims to have people type a PIN in numbers to unlock
the wallet, but we also provide a way to make it use a textual password
instead.
2023-06-27 20:39:11 +02:00
tomFlowee 7e375f50b5 Bugfix how we handle numbers from user input
This is a long overdue cleanup around the ideas of entering
numbers in Flowee Pay.

The core dataclass BitcoinValue now keeps track where the number
came from, either user input or some calculation. This allows
us to have the Fiat and the Coin price stay in sync without weird
problems.
The one we type uses a string, the price field that we are not typing in
is then a slave and we follow the auto-generated number as the
source.

This solves a host of known issues:

* Editing of value objects is much more consistnnt and predictable now.
* Switching to a different fiat type now properly re-calculates the
  values that are slaved. So if the primary is a BCH value then the fiat
  value gets the new exhange rate instantly applied.
* Switching to a different fiat type properly applies having a separator
  So if you go from euro to Japanese yen, we now remove the separator
  and the numbers behind it.
* Changing the app setting from BCH to mBCH now properly updates all
  amounts. Notice that the user-typed string wins, if you typed 2 and
  then change to mBCH we assume you wanted 2, not 2000.
* Paste now works more logcally.
* Cursor is no longer sometimes invisible, requiring backspace to make
  it show up.

And last we now protect against too large numbers. It is seen as an
error to type a number above 21 million BCH.

Fixes #19
2023-06-23 10:35:35 +02:00
tomFlowee 4c96b5ee44 Make numerickeyboard have a static height for keys.
This makes the layout look more square and not so cramped.
Make sure that the layouts of the payment pages still fit at the same
time.
2023-05-17 23:26:54 +02:00
tomFlowee 9c5476d2cc Remove dead code.
Seems to have been forgotten on refactor.
2023-05-17 22:44:31 +02:00
tomFlowee 5d2671b772 Handle fast tapping on the keyboard
This solves the UX issue where tapping a certain button fast in
sequence, we only acted on every other one.
Turns out, half were registered as 'double clicks'.
2023-04-19 15:04:39 +02:00
tomFlowee 8bc4e70d09 Move widgets to their own files
Allow them to be re-used.
2023-03-11 22:59:10 +01:00