151 Commits

Author SHA1 Message Date
Sad Ellie
fe81601fa8 Merge branch 'light-goldenrod-yellow'
# Conflicts:
#	core/ui/src/main/java/com/sadellie/unitto/core/ui/Formatter.kt
#	feature/calculator/src/main/java/com/sadellie/unitto/feature/calculator/CalculatorScreen.kt
#	feature/calculator/src/main/java/com/sadellie/unitto/feature/calculator/components/HistoryList.kt
#	feature/converter/src/main/java/com/sadellie/unitto/feature/converter/components/MyTextField.kt
#	feature/converter/src/main/java/com/sadellie/unitto/feature/converter/components/TopScreen.kt
#	feature/unitslist/src/main/java/com/sadellie/unitto/feature/unitslist/RightSideScreen.kt
2023-05-15 16:03:27 +03:00
Sad Ellie
9156473d7a Dependencies bump (hell) 2023-05-15 15:50:29 +03:00
Sad Ellie
8f1847618a Tiny fixes
* New Token-based System™ for input
* Unmathematical/Unethical/Cursed percentage support
* New Expression Evaluator™ that is not a dumpster fire
* Cursor in Converter input text field
* Removed garbage code (-200 KB)

proper fix for #12
closes #44
closes #52

this is a squashed commit
2023-05-15 13:16:51 +03:00
Sad Ellie
570a89f769 Don't diplay NaN
closes #47
2023-04-21 11:54:34 +03:00
Sad Ellie
5e87cce22d Changed settings icon
closes #43
2023-04-20 12:07:13 +03:00
Sad Ellie
931235deb0 Fix expression value is not used 2023-04-02 20:20:41 +03:00
Sad Ellie
4c20c6c0b8 Fixes for responsive ui
squashed commit

closes: #24 and #34
2023-04-02 19:42:04 +03:00
Sad Ellie
6cf49812b7 Merge branch 'master' into feature/auto-size-text
# Conflicts:
#	feature/calculator/src/main/java/com/sadellie/unitto/feature/calculator/CalculatorScreen.kt
#	feature/calculator/src/main/java/com/sadellie/unitto/feature/calculator/components/CalculatorKeyboard.kt
2023-03-27 15:15:16 +03:00
Sad Ellie
f7cfd65639 Save Angle mode 2023-03-27 14:49:55 +03:00
Sad Ellie
07fdb03ab3 The most responsive UI
- Auto-size text field (animated)
- Auto-size keyboard
- Auto-size buttons
- Fix cursor
2023-03-27 13:06:12 +03:00
Sad Ellie
dadf6f2a22 Fix cursor position for grouping symbols (#27)
Cursor is now correctly placed when grouping symbol appears/disappears
2023-03-12 20:07:57 +03:00
Sad Ellie
7150fc9133 Refactor formatter 2023-02-28 21:37:02 +04:00
Sad Ellie
2bcc6dec2c Scrollable output 2023-02-28 14:00:05 +04:00
Sad Ellie
2212bd84fb Fixed log function 2023-02-28 13:04:19 +04:00
Sad Ellie
b3d1b22b24 Fix icons for converter buttons 2023-02-27 23:10:52 +04:00
Sad Ellie
dff7f51d64 Code clean up 2023-02-27 15:36:40 +04:00
Sad Ellie
00357d0906 Inverse buttons 2023-02-27 14:50:30 +04:00
Sad Ellie
61aff9c3ae Introduce Token object 2023-02-27 11:22:08 +04:00
Sad Ellie
eeda3cc6ed Safer cursor handling 2023-02-27 00:28:26 +04:00
Sad Ellie
4be56ccb0d Fix action item click crash 2023-02-27 00:27:57 +04:00
Sad Ellie
fa1ec777cd Keyboard buttons refactor
+ Fixed vibrations
+ Fixed fractional button icon
2023-02-26 20:23:57 +04:00
Sad Ellie
d6db240222 Cursor color 2023-02-26 19:47:15 +04:00
Sad Ellie
cb878fb171 Landscape mode support for calculator 2023-02-26 19:18:05 +04:00
Sad Ellie
6fb4c712ff Swap input with output when evaluating expression 2023-02-26 16:57:12 +04:00
Sad Ellie
65e6f7545e Copy from output and history 2023-02-26 16:55:56 +04:00
Sad Ellie
a1333f5746 No more strange hardcoded symbols for TextFieldController 2023-02-26 15:36:46 +04:00
Sad Ellie
ce614aa172 Fixed expression evaluation ("=" click) 2023-02-26 15:12:34 +04:00
Sad Ellie
df44a33415 Copy to clipboard without formatting 2023-02-25 23:34:34 +04:00
Sad Ellie
74cc7336fb Filter text from clipboard 2023-02-25 23:21:15 +04:00
Sad Ellie
942ea853f0 Remove formatting when evaluating 2023-02-25 17:03:30 +04:00
Sad Ellie
827a42bf49 Navigation drawer instead of tools screen 2023-02-25 16:26:11 +04:00
Sad Ellie
afbd918265 Delete by token length 2023-02-24 23:05:56 +04:00
Sad Ellie
81f750402a Expression formatting and cursor fixes
P.S. This commit is a mess, lots of hardcoded stuff and weird decisions.
2023-02-24 19:05:06 +04:00
Sad Ellie
1a6d6fdce4 Paste from history 2023-02-22 23:46:38 +04:00
Sad Ellie
6b45eb7bec Format output in calculator 2023-02-22 19:28:41 +04:00
Sad Ellie
0bd711c3b9 Use velocity before snap in drag down animation 2023-02-22 19:21:27 +04:00
Sad Ellie
9553760a72 Cut from textfield 2023-02-22 17:14:13 +04:00
Sad Ellie
f92488f336 Start screen option 2023-02-22 10:19:06 +04:00
Sad Ellie
30b97ef821 Settings button in calculator 2023-02-22 02:08:06 +04:00
Sad Ellie
951523a235 Improved navigation
- Clear back stack when navigating between tools
- Added unit converter to tools screen
- Disabled epoch converter until ready
2023-02-22 02:00:02 +04:00
Sad Ellie
185f8452a8 CenterAlignedTopAppBar in screen template 2023-02-21 19:40:41 +04:00
Sad Ellie
ef0db15f11 Text paddings 2023-02-21 19:14:06 +04:00
Sad Ellie
95a401581d Clear history UX/UI improved
- Show clear history button only when history view is fully expanded
- History view placeholder
- AlertDialog closes after clearing history
- List item height callback is called only once
2023-02-21 18:59:06 +04:00
Sad Ellie
4dff86b2e2 Better (?) icons sizing 2023-02-21 14:38:19 +04:00
Sad Ellie
5be0d7d5e3 Improved calculator design
- Added background for input fields,
- Added background for history
- Added drag handle
- Fixed padding
2023-02-21 13:01:43 +04:00
Sad Ellie
39f4997c73 Calculator history (#2):
this is a squashed commit
2023-02-20 18:46:45 +04:00
Sad Ellie
db95fbacfc Icons in Keyboard buttons 2023-02-15 20:29:08 +04:00
Sad Ellie
684d7f2d9a Paste text in calculator 2023-02-15 14:27:23 +04:00
Sad Ellie
a70970a238 No more sad button labels( 2023-02-12 17:02:46 +04:00
Sad Ellie
776dd63381 Improved calculator buttons 2023-02-12 16:09:46 +04:00