Skip to content

Calculator: PVOT icon and UI - #14

Merged
danascape merged 7 commits into
PVOT-OSS:mainfrom
sxivansx:feat/pvot-ui
Oct 29, 2026
Merged

danascape merged 7 commits into
PVOT-OSS:mainfrom
sxivansx:feat/pvot-ui

Conversation

@sxivansx

@sxivansx sxivansx commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Ports the PvotCalculator design (the Compose app from feat/light-mode, #12) onto the ExactCalculator main as a restyle. All keys and features stay: parentheses, del, the advanced pad and history.

Commits

  • Update the app icon: the 2×2 + − × = icon from feat: Update app icon to new calculator design #8. Fixes its = path, which drew a solid box, and adds a monochrome layer for themed icons.
  • Add the Sora font: 4 weights plus font/sora.xml. OFL-1.1 is added to LICENSES/ and the font files are annotated in REUSE.toml.
  • Use the PVOT color palette: fixed light and dark colors. Dark: #000 background, #333 digits, #A5A5A5 function keys. Light: #F2F2F7 background, white digits, #D4D4D2 function keys. Operators are #FF9F0A in both. values{,-night}-v34/color.xml is removed so dynamic color no longer overrides the palette.
  • Color the parentheses and percent keys as functions: () and % are gray like AC; ÷ × − + = are orange.
  • Use Sora for the display and keypad: thin display text, regular keys, medium labels.
  • Use a readable error color on the new background: errors used Material's fixed #B00020, which is about 2.9:1 contrast on pure black. They now use #D70015 (light) and #FF453A (dark).
  • Match the window background to the palette: the window background is now the calculator background, so cold starts and edge-to-edge (Android 15) no longer flash Material's default surface color.

The palette is plain XML colors, not PvotLib: PvotLib is Compose-only and this app uses Views.

Context and rules for this repo live in PVOT-OSS/apps-skills calculator/.

Test plan

  • ./gradlew assembleDebug and assembleRelease (R8 + resource shrinking keeps the fonts)
  • Lint: no new issues from these changes (the existing MissingTranslation and MissingSuperCall errors are unchanged)
  • reuse lint passes for the new files (on macOS, the encoding detection flags two existing values-kn/values-te files that CI passes)
  • Portrait, light and dark, on a Redmi M2101K6P (Android 13)
  • Landscape, light and dark
  • History panel, light and dark
  • Error state (1÷0) and a long scrolling result (1÷7)

@danascape

Copy link
Copy Markdown
Member

@sxivansx can post screenshots and app icon real quick?

@sxivansx

Copy link
Copy Markdown
Member Author

yup sharing

@danascape danascape mentioned this pull request Oct 29, 2026
1 of 4 tasks
@sxivansx

Copy link
Copy Markdown
Member Author

Screenshots from a Redmi (Android 13), debug build of this branch.

App icon: adaptive icon, and the monochrome layer for themed icons

Portrait: light / dark

Landscape: light / dark

1÷7=, 1÷0=, history: light on top, dark below

@danascape

Copy link
Copy Markdown
Member

@sxivansx try to change density for a tablet and a foldable UI

@danascape

Copy link
Copy Markdown
Member

rebase

Assisted-By: LLM
Signed-off-by: Shivansh Pandey <shivanshp987@gmail.com>
Assisted-By: LLM
Signed-off-by: Shivansh Pandey <shivanshp987@gmail.com>
Assisted-By: LLM
Signed-off-by: Shivansh Pandey <shivanshp987@gmail.com>
Assisted-By: LLM
Signed-off-by: Shivansh Pandey <shivanshp987@gmail.com>
Assisted-By: LLM
Signed-off-by: Shivansh Pandey <shivanshp987@gmail.com>
Assisted-By: LLM
Signed-off-by: Shivansh Pandey <shivanshp987@gmail.com>
Assisted-By: LLM
Signed-off-by: Shivansh Pandey <shivanshp987@gmail.com>
@danascape
danascape merged commit f008b6e into PVOT-OSS:main Oct 29, 2026
1 check passed
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.

2 participants