Skip to content

Add iOS-style calculator with Sora font and custom app icon#1

Merged
danascape merged 7 commits intoPVOT-OSS:mainfrom
sxivansx:main
Mar 28, 2026
Merged

Add iOS-style calculator with Sora font and custom app icon#1
danascape merged 7 commits intoPVOT-OSS:mainfrom
sxivansx:main

Conversation

@sxivansx
Copy link
Copy Markdown
Collaborator

  • Calculator with ViewModel, separate keypad view, and display screen
  • iOS-inspired dark theme: black background, orange operators, gray keys
  • Sora font (Thin/Light/Regular/Medium) for all UI text
  • Minimalist adaptive launcher icon (orange + and white = signs)
  • Fixed-size circular buttons computed from screen width for uniform layout

@danascape
Copy link
Copy Markdown
Member

  • divide the main commit in separate commit diffs, while implementing features, theme, logic, etc

onBackground = Color(0xFF1C1B1F),
onSurface = Color(0xFF1C1B1F),
*/
private val CalculatorColorScheme = darkColorScheme(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inherit design-system here

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, will look into how to inherit PVOT lib

import androidx.compose.ui.unit.sp
import org.prauga.pvotcalculator.R

val SoraFamily = FontFamily(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to implement this in PvotLib and use from there

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will get back on this asap

@danascape
Copy link
Copy Markdown
Member

Post screenshots as well

@danascape
Copy link
Copy Markdown
Member

@sxivansx rebase the PR, to make workflow pass and artifact generation

@sxivansx
Copy link
Copy Markdown
Collaborator Author

image

Required for ViewModel integration with Jetpack Compose.
Supports basic arithmetic (+, −, ×, ÷), percent, sign toggle,
backspace, clear, and chained operations with expression tracking.
Black background, dark gray digit buttons, light gray function buttons,
orange operator buttons. Forces dark-only color scheme.
Includes Thin, Light, Regular, and Medium weights.
Applied across all Material typography text styles.
Circular buttons with fixed sizing computed from screen width.
iOS layout: function row, 3 digit rows, wide zero button.
Communicates via callback lambdas for full decoupling.
CalculatorScreen combines display area (expression + result) with
the keypad view. MainActivity sets edge-to-edge dark system bars.
Orange plus sign and white equals sign on dark background.
Centered within adaptive icon safe zone to avoid clipping.
@danascape
Copy link
Copy Markdown
Member

@sxivansx we can merge this for now, Ill redo your changes, but in future, we have to draft the layout for Tablet and foldable as well

@danascape danascape merged commit 93b75fd into PVOT-OSS:main Mar 28, 2026
1 check passed
@danascape
Copy link
Copy Markdown
Member

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