Skip to content

Added a calculator bar seperate from search bar with a history of equations#1904

Open
svind1er wants to merge 4 commits intoshedaniel:19.x-1.21.5from
svind1er:19.x-1.21.5
Open

Added a calculator bar seperate from search bar with a history of equations#1904
svind1er wants to merge 4 commits intoshedaniel:19.x-1.21.5from
svind1er:19.x-1.21.5

Conversation

@svind1er
Copy link

Added the ability to do calculations in the GUI in its own bar, it will keep track of the last 5 equations. Can be added to a config screen later down the line.

svind1er added 4 commits June 22, 2025 23:11
Introduces OverlayCalculatorField, a calculator input field with result display and history, to the overlay UI. Integrates the widget into ScreenOverlayImpl, handling its rendering, input, and focus logic. Adds SearchCalculatorUtil for parsing and evaluating mathematical expressions, including support for suffixes like k, m, b, and t.
When copying the calculator result to the clipboard, commas are now replaced with spaces. Big numbers copied to clipboard can now be used in the next equation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant