Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Show wallpaper in background
Browse files Browse the repository at this point in the history
  • Loading branch information
jamal2362 committed Dec 22, 2023
1 parent 7c51b49 commit 88c9ee3
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_all_apps.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorControlNormal"
android:tint="@color/text_color"
android:viewportWidth="24"
android:viewportHeight="24">
<path
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_all_apps_oval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<shape android:shape="oval">
<solid android:color="@color/shortcut_button" />
<stroke
android:width="3dp"
android:width="2dp"
android:color="@color/shortcut_outline" />
</shape>
</item>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_assistant_oval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<shape android:shape="oval">
<solid android:color="@color/shortcut_button" />
<stroke
android:width="3dp"
android:width="2dp"
android:color="@color/shortcut_outline" />
</shape>
</item>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_settings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorControlNormal"
android:tint="@color/text_color"
android:viewportWidth="24"
android:viewportHeight="24">
<path
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_settings_oval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<shape android:shape="oval">
<solid android:color="@color/shortcut_button" />
<stroke
android:width="3dp"
android:width="2dp"
android:color="@color/shortcut_outline" />
</shape>
</item>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_web_search.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorControlNormal"
android:tint="@color/text_color"
android:viewportWidth="24"
android:viewportHeight="24">
<path
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_web_search_oval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<shape android:shape="oval">
<solid android:color="@color/shortcut_button" />
<stroke
android:width="3dp"
android:width="2dp"
android:color="@color/shortcut_outline" />
</shape>
</item>
Expand Down
9 changes: 6 additions & 3 deletions app/src/main/res/values-night-v31/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
<color name="accent_color">@android:color/system_accent1_100</color>

<!-- Background color -->
<color name="background_color">@android:color/system_neutral2_900</color>
<color name="background_color">@android:color/system_neutral1_900</color>

<!-- Dialog button color -->
<color name="background_pressed">@android:color/system_accent2_600</color>
<color name="background_selected">@android:color/system_accent2_700</color>

<!-- Shortcut background color -->
<color name="shortcut_button">@android:color/system_accent2_800</color>
<color name="shortcut_button">#4D000000</color>

<!-- Shortcut outline background color -->
<color name="shortcut_outline">@android:color/system_accent2_700</color>
<color name="shortcut_outline">#80FFFFFF</color>

<!-- Text color -->
<color name="text_color">@android:color/system_neutral2_100</color>
</resources>
7 changes: 5 additions & 2 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
<color name="background_color">#FF1F2630</color>

<!-- Shortcut background color -->
<color name="shortcut_button">#FF2E3948</color>
<color name="shortcut_button">#4D000000</color>

<!-- Shortcut outline background color -->
<color name="shortcut_outline">#FF3B495D</color>
<color name="shortcut_outline">#80FFFFFF</color>

<!-- Text color -->
<color name="text_color">#FFC5C6D0</color>
</resources>
7 changes: 4 additions & 3 deletions app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.Material3.DayNight.NoActionBar">
<item name="colorPrimary">@color/accent_color</item>
<item name="android:windowBackground">@color/background_color</item>
<item name="android:statusBarColor">@color/background_color</item>
<item name="android:navigationBarColor">@color/background_color</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowShowWallpaper">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="materialAlertDialogTheme">@style/ThemeOverlay.App.MaterialAlertDialog</item>
<item name="snackbarStyle">@style/Widget.App.Material3.Snackbar</item>
<item name="snackbarTextViewStyle">@style/Widget.App.Material3.Snackbar.TextView</item>
Expand Down
9 changes: 6 additions & 3 deletions app/src/main/res/values-v31/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
<color name="accent_color">@android:color/system_accent1_600</color>

<!-- Background color -->
<color name="background_color">@android:color/system_neutral2_50</color>
<color name="background_color">@android:color/system_neutral2_10</color>

<!-- Dialog button color -->
<color name="background_pressed">@android:color/system_neutral2_100</color>
<color name="background_selected">@android:color/system_neutral2_200</color>

<!-- Shortcut background color -->
<color name="shortcut_button">@android:color/system_accent1_100</color>
<color name="shortcut_button">#4DFFFFFF</color>

<!-- Shortcut outline background color -->
<color name="shortcut_outline">@android:color/system_accent1_200</color>
<color name="shortcut_outline">#80000000</color>

<!-- Text color -->
<color name="text_color">@android:color/system_neutral2_800</color>
</resources>
7 changes: 5 additions & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
<color name="background_selected">#300D47A1</color>

<!-- Shortcut background color -->
<color name="shortcut_button">#FFBBDEFB</color>
<color name="shortcut_button">#4DFFFFFF</color>

<!-- Shortcut outline background color -->
<color name="shortcut_outline">#FF9ED0F9</color>
<color name="shortcut_outline">#80000000</color>

<!-- Text color -->
<color name="text_color">#FF45464F</color>

<!-- Google Assistant color -->
<color name="google_blue">#FF4285F4</color>
Expand Down
10 changes: 6 additions & 4 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.Material3.DayNight.NoActionBar">
<item name="colorPrimary">@color/accent_color</item>
<item name="android:windowBackground">@color/background_color</item>
<item name="android:statusBarColor">@color/background_color</item>
<item name="android:navigationBarColor">@color/background_color</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowShowWallpaper">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowLightNavigationBar">true</item>
<item name="materialAlertDialogTheme">@style/ThemeOverlay.App.MaterialAlertDialog</item>
Expand All @@ -25,6 +26,7 @@

<style name="ToolbarTextAppearance" parent="@android:style/TextAppearance">
<item name="android:textSize">40sp</item>
<item name="android:textColor">@color/text_color</item>
</style>

<style name="TextMediumDialog">
Expand All @@ -43,7 +45,7 @@
<style name="TextMediumCard">
<item name="android:textSize">16sp</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">?attr/colorControlNormal</item>
<item name="android:textColor">@color/text_color</item>
<item name="android:textAlignment">center</item>
<item name="android:ellipsize">end</item>
<item name="android:text">@android:string/untitled</item>
Expand Down

0 comments on commit 88c9ee3

Please sign in to comment.