This commit is contained in:
Binondi
2024-12-14 21:37:34 +05:30
19 changed files with 482 additions and 246 deletions

View File

@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">
<path android:fillColor="#00000000"
android:pathData="M7.7,6.36L3.533,11.36C3.224,11.731 3.224,12.269 3.533,12.64L7.7,17.64C7.89,17.868 8.172,18 8.468,18H18C19.657,18 21,16.657 21,15V9C21,7.343 19.657,6 18,6H8.468C8.172,6 7.89,6.132 7.7,6.36Z"
android:strokeColor="@color/textColor" android:strokeLineCap="round"
android:strokeLineJoin="round" android:strokeWidth="2"/>
<path android:fillColor="#00000000"
android:pathData="M15,10L13,12M13,12L11,14M13,12L11,10M13,12L15,14"
android:strokeColor="@color/textColor"
android:strokeLineCap="round"
android:strokeLineJoin="round"
android:strokeWidth="2"/>
</vector>

View File

@@ -47,18 +47,6 @@
app:cornerRadius="15dp"
style="@style/Widget.MaterialComponents.Button.OutlinedButton"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/btnParentheses"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_rowWeight="1"
android:layout_columnWeight="1"
android:textSize="30sp"
android:layout_margin="4dp"
android:text="( )"
app:cornerRadius="15dp"
style="@style/Widget.MaterialComponents.Button.OutlinedButton"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/btnPercent"
android:layout_width="0dp"
@@ -81,8 +69,20 @@
android:layout_margin="4dp"
android:text="÷"
app:cornerRadius="15dp"
style="@style/Widget.MaterialComponents.Button"/>
style="@style/Widget.MaterialComponents.Button.OutlinedButton"/>
<com.google.android.material.button.MaterialButton
android:id="@+id/cut"
android:layout_height="0dp"
android:layout_width="0dp"
android:layout_rowWeight="1"
android:layout_columnWeight="1"
android:textSize="30sp"
android:layout_margin="4dp"
app:icon="@drawable/backspace"
app:iconSize="30dp"
app:cornerRadius="15dp"/>
<!-- Row 2 -->
<com.google.android.material.button.MaterialButton
android:id="@+id/btn7"

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<!-- Material You dynamic colors -->
<color name="primary">@android:color/system_accent1_600</color>
<color name="on_primary">@android:color/system_accent1_0</color>
<color name="primary_container">@android:color/system_accent1_100</color>
<color name="on_primary_container">@android:color/system_accent1_900</color>
<color name="secondary">@android:color/system_accent2_600</color>
<color name="on_secondary">@android:color/system_accent2_0</color>
<color name="secondary_container">@android:color/system_accent2_100</color>
<color name="on_secondary_container">@android:color/system_accent2_900</color>
<color name="surface">@android:color/system_neutral1_50</color>
<color name="on_surface">@android:color/system_neutral1_900</color>
<color name="textColor">#ffffff</color>
</resources>

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.Theme.Calculator" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Primary brand color -->
<item name="colorPrimary">@android:color/system_accent1_600</item>
<item name="colorPrimaryVariant">@android:color/system_accent1_700</item>
<item name="colorOnPrimary">@color/white</item>
<item name="fontFamily">@font/ubuntu_regular</item>
<!-- Secondary brand color -->
<item name="colorSecondary">@android:color/system_accent2_600</item>
<item name="colorSecondaryVariant">@android:color/system_accent2_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color -->
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<!-- Enable window decor fitting -->
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
</resources>

View File

@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.Theme.Calculator" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Primary brand color -->
<item name="colorPrimary">@android:color/system_accent1_600</item>
<item name="colorPrimaryVariant">@android:color/system_accent1_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color -->
<item name="colorSecondary">@android:color/system_accent2_600</item>
<item name="colorSecondaryVariant">@android:color/system_accent2_700</item>
<item name="colorOnSecondary">@color/black</item>
<item name="fontFamily">@font/ubuntu_regular</item>
<!-- Status bar color -->
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<!-- Enable window decor fitting -->
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowLightNavigationBar">true</item>
</style>
</resources>

View File

@@ -16,4 +16,5 @@
<color name="surface">@android:color/system_neutral1_50</color>
<color name="on_surface">@android:color/system_neutral1_900</color>
<color name="textColor">#000000</color>
</resources>

View File

@@ -5,6 +5,7 @@
<item name="colorPrimary">@android:color/system_accent1_600</item>
<item name="colorPrimaryVariant">@android:color/system_accent1_700</item>
<item name="colorOnPrimary">@color/white</item>
<item name="android:textColor"></item>
<item name="fontFamily">@font/ubuntu_regular</item>
<!-- Secondary brand color -->