Skip to content

Commit

Permalink
Added themes xml
Browse files Browse the repository at this point in the history
  • Loading branch information
binayshaw7777 committed Mar 4, 2024
1 parent f137d81 commit 066396a
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 9 deletions.
11 changes: 2 additions & 9 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,11 @@
<activity
android:name=".presentation.introduction.onboarding.OnboardingScreen"
android:exported="false" />
<activity
android:name=".presentation.introduction.SplashActivity"
android:configChanges="uiMode"
android:exported="true"
android:screenOrientation="portrait">

<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
<activity
android:name=".presentation.introduction.SplashScreen"
android:exported="true"
android:theme="@style/SplashTheme"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down Expand Up @@ -88,6 +80,7 @@
<activity
android:name=".presentation.MainActivity"
android:exported="true"
android:theme="@style/MainTheme"
android:screenOrientation="portrait">
<meta-data
android:name="android.app.lib_name"
Expand Down
13 changes: 13 additions & 0 deletions app/src/main/res/drawable/rounded_app_icon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="160dp"
android:height="160dp"
android:viewportWidth="160"
android:viewportHeight="160">
<path
android:pathData="M80,0L80,0A80,80 0,0 1,160 80L160,80A80,80 0,0 1,80 160L80,160A80,80 0,0 1,0 80L0,80A80,80 0,0 1,80 0z"
android:fillColor="#000000"/>
<path
android:pathData="M77.14,74.93C77.1,101.96 76.7,105.32 73.04,109.37C71.4,111.19 71.41,111.19 75.4,110.55C83.92,109.19 89.48,105.45 92.37,99.13C93.85,95.88 94.03,93.02 94.04,72.28L94.06,49.06H85.62H77.18L77.14,74.93ZM52.22,94.1C45.9,100.4 52.4,111.06 60.86,108.28C64.76,107 66.51,104.37 66.51,99.8C66.51,92.29 57.61,88.74 52.22,94.1Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/splash_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@color/white" />
<item
android:width="160dp"
android:height="160dp"
android:drawable="@drawable/rounded_app_icon"
android:gravity="center" />
</layer-list>
11 changes: 11 additions & 0 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
<item name="android:statusBarColor">@color/white_and_black</item>
<!-- Customize your theme here. -->
</style>

<style name="MainTheme" parent="Theme.Material3.Dark.NoActionBar">
<!--Other app theme properties-->
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>

<style name="SplashTheme" parent="MainTheme">
<item name="android:windowBackground">@drawable/splash_background</item>
</style>

<style name="BottomSheetDialogTheme" parent="Theme.Design.Light.BottomSheetDialog">
<item name="bottomSheetStyle">@style/BottomSheetStyle</item>
<item name="android:windowIsFloating">false</item>
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
<!-- Customize your theme here. -->
</style>

<style name="MainTheme" parent="Theme.Material3.Light.NoActionBar">
<!--Other app theme properties-->
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
</style>

<style name="SplashTheme" parent="MainTheme">
<item name="android:windowBackground">@drawable/splash_background</item>
</style>

<style name="BottomSheetStyle" parent="Widget.Design.BottomSheet.Modal">
<item name="android:background">@drawable/modal_drawable</item>
</style>
Expand Down

0 comments on commit 066396a

Please sign in to comment.