Skip to content

Commit

Permalink
Update customization files
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Apr 22, 2020
1 parent 7edc037 commit fb25e70
Show file tree
Hide file tree
Showing 9 changed files with 135 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/BaseFramesSplashScreenTheme"
android:theme="@style/MyApp.SplashScreen"
tools:ignore="UnusedAttribute">

<activity
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/kotlin/dev/jahir/blueprint/app/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@ class MainActivity : BottomNavigationBlueprintActivity() {
destroyChecker() // Important
return if (BuildConfig.DEBUG) null else super.getLicenseChecker()
}

override fun defaultTheme(): Int = R.style.MyApp_Default
override fun amoledTheme(): Int = R.style.MyApp_Default_Amoled
}
5 changes: 5 additions & 0 deletions app/src/main/res/values/blueprint_setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
-->
<bool name="xml_drawable_enabled">false</bool>

<!--
Set to true if your icon pack includes adaptive icons. false otherwise
-->
<bool name="includes_adaptive_icons">false</bool>

<!-- Icon Pack designer/owner e-mail -->
<string name="email">[email protected]</string>

Expand Down
12 changes: 0 additions & 12 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- Theme Independent Colors -->
<color name="wallpaper_overlay">#1a000000</color>
<color name="white">#fff</color>
<color name="black">#000</color>
<color name="transparent">#00000000</color>
<color name="viewer_bars_colors">#80000000</color>
<color name="dividers">#1f000000</color>

<!-- Light Theme Colors -->

<color name="primary">#ffffff</color>
<color name="primaryDark">#fafafa</color>
<color name="onPrimary">#de000000</color>
Expand All @@ -26,7 +16,6 @@
<color name="onBackground">#de000000</color>

<!-- Dark Theme Colors -->

<color name="darkThemePrimary">#212121</color>
<color name="darkThemePrimaryDark">#000000</color>
<color name="darkThemeOnPrimary">#ffffff</color>
Expand All @@ -42,7 +31,6 @@
<color name="darkThemeOnBackground">#b3ffffff</color>

<!-- Amoled Theme Colors -->

<color name="amoledThemePrimary">#000000</color>
<color name="amoledThemePrimaryDark">#000000</color>
<color name="amoledThemeOnPrimary">#ffffff</color>
Expand Down
9 changes: 8 additions & 1 deletion app/src/main/res/values/dashboard_setup.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="utf-8"?><!--suppress CheckTagEmptyBody -->
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation,ExtraTranslation">

<!--
Do you want to show a custom logo in toolbar?
Create a new drawable and put its name here (without extension)
Note: it will only be shown in the main section
-->
<string name="toolbar_logo"></string>

<!--
Do you want notifications to be enabled for all your users?
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/values/icon_pack.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

<!-- Make sure to put at least 8 icons -->
<string-array name="icons_preview">
<item>adaptive_one</item>
<item>adaptive_two</item>
<item>adaptive_three</item>
<item>amber_circle</item>
<item>amber_rectangle</item>
<item>amber_square</item>
Expand All @@ -24,6 +27,7 @@
<!-- Make sure the filters names are the same as the other arrays -->
<string-array name="icon_filters">
<item>all</item>
<item>adaptive</item>
<item>amber</item>
<item>blue</item>
<item>purple</item>
Expand All @@ -48,6 +52,12 @@
<item>red_square</item>
</string-array>

<string-array name="adaptive">
<item>adaptive_one</item>
<item>adaptive_two</item>
<item>adaptive_three</item>
</string-array>

<string-array name="amber">
<item>amber_circle</item>
<item>amber_rectangle</item>
Expand Down
34 changes: 34 additions & 0 deletions app/src/main/res/values/shape_styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Learn more about Shape Theming and what you can do at:
https://material.io/develop/android/theming/shape/
Important: do NOT change the style names, just the attributes/properties
-->

<style name="ShapeAppearance.Frames.SmallComponent" parent="ShapeAppearance.MaterialComponents.SmallComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/small_components_corner_size</item>
</style>

<style name="ShapeAppearance.Frames.MediumComponent" parent="ShapeAppearance.MaterialComponents.MediumComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/medium_components_corner_size</item>
</style>

<style name="ShapeAppearance.Frames.LargeComponent" parent="ShapeAppearance.MaterialComponents.LargeComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/large_components_corner_size</item>
</style>

<style name="ShapeAppearance.Frames.CardView" parent="ShapeAppearance.Frames.MediumComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">@dimen/cards_corner_size</item>
</style>

<style name="ShapeAppearance.Blueprint.IconsPreview" parent="ShapeAppearance.Frames.MediumComponent">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">0dp</item>
</style>

</resources>
48 changes: 48 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Learn how to setup this file at:
https://github.com/jahirfiquitiva/Frames/wiki/Setting-custom-styles
-->
<style name="MyApp" />

<!--
Splash screen theme follow device's theme
You can change the parent to any of these:
- Frames.SplashScreen
- Frames.SplashScreen.Amoled
-->
<style name="MyApp.SplashScreen" parent="Frames.SplashScreen">
<item name="customFontBold">@font/manrope_bold_fam</item>
<item name="customFontNormal">@font/manrope_normal_fam</item>
</style>

<!-- Don't change the parent style -->
<style name="MyApp.Default" parent="Blueprint.Default">
<item name="bottomNavigationStyle">@style/MyApp.BottomNavigationView</item>
<item name="customFontBold">@font/manrope_bold_fam</item>
<item name="customFontNormal">@font/manrope_normal_fam</item>
</style>

<!-- Don't change the parent style -->
<style name="MyApp.Default.Amoled" parent="Blueprint.Default.Amoled">
<item name="bottomNavigationStyle">@style/MyApp.BottomNavigationView</item>
<item name="customFontBold">@font/manrope_bold_fam</item>
<item name="customFontNormal">@font/manrope_normal_fam</item>
</style>

<!-- Don't change the parent style -->
<style name="MyApp.BottomNavigationView" parent="Widget.Blueprint.BottomNavigationView">
<!--
Switch bottom navigation labels visibility style
You can use any of there:
- auto
- labeled
- unlabeled
- selected
Learn more: https://developer.android.com/reference/com/google/android/material/bottomnavigation/LabelVisibilityMode
-->
<item name="labelVisibilityMode">labeled</item>
</style>

</resources>
26 changes: 26 additions & 0 deletions app/src/main/res/values/supported_launchers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="ExtraTranslation">
<string-array name="supported_launchers">
<item>action</item>
<item>adw</item>
<item>adwex</item>
<item>apex</item>
<item>atom</item>
<item>go</item>
<item>googlenow</item>
<item>holo</item>
<item>holoics</item>
<item>lg</item>
<item>lawnchair</item>
<item>lineageos</item>
<item>lucid</item>
<item>niagara</item>
<item>nova</item>
<item>pixel</item>
<item>posidon</item>
<item>smart</item>
<item>smartpro</item>
<item>solo</item>
<item>tsf</item>
</string-array>
</resources>

0 comments on commit fb25e70

Please sign in to comment.