-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
242 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
# Notification Shade Transparency | ||
# Translucent Shade | ||
### Previously known as "Notification Shade Transparency" | ||
|
||
**Compatible with Android 12+** | ||
**Compatible with Android 12+, AOSP-based only, GUI application available** | ||
|
||
![Dark theme preview](notifshade15d.png "Screenshot of the module working on Android 15, dark theme")![Light theme preview](notifshade15l.png "Screenshot of the module working on Android 15, light theme") | ||
![Dark theme preview on Android 15](notifshade15d.png)![Light theme preview on Android 15](notifshade15l.png) | ||
|
||
## To-Do | ||
- [x] GUI | ||
- [x] QS tiles part | ||
- [ ] Tint coloring | ||
|
||
## Older systems preview | ||
![Light theme preview on Android 13](notifshade13.png)![Preview on Android 12 without tint](notifshade.png "Preview on Android 12 without tint") | ||
|
||
### License | ||
This project is licensed under the Apache License, Version 2.0 (the "License"). See [LICENSE](LICENSE) for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools"> | ||
|
||
<application | ||
android:name=".App"> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:exported="true" | ||
android:theme="@style/Theme.Material3.DayNight.NoActionBar" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
</activity> | ||
|
||
<meta-data | ||
tools:replace="android:value" | ||
android:name="xposeddescription" | ||
android:value="Lets you set up the translucency of your shade the way you want it to be" /> | ||
</application> | ||
|
||
</manifest> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<vector | ||
android:height="108dp" | ||
android:width="108dp" | ||
android:viewportHeight="108" | ||
android:viewportWidth="108" | ||
xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="@android:color/system_accent1_600" | ||
android:pathData="M0,0h108v108h-108z"/> | ||
</vector> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/main" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context=".MainActivity"> | ||
|
||
<com.google.android.material.appbar.AppBarLayout | ||
android:id="@+id/appBarLayout" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:fitsSystemWindows="true" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent"> | ||
|
||
<com.google.android.material.appbar.CollapsingToolbarLayout | ||
style="?attr/collapsingToolbarLayoutMediumStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="?attr/collapsingToolbarLayoutMediumSize"> | ||
|
||
<com.google.android.material.appbar.MaterialToolbar | ||
android:layout_width="match_parent" | ||
android:layout_height="?android:attr/actionBarSize" | ||
android:elevation="0dp" | ||
app:title="@string/settings" /> | ||
</com.google.android.material.appbar.CollapsingToolbarLayout> | ||
</com.google.android.material.appbar.AppBarLayout> | ||
|
||
<ImageView | ||
android:id="@+id/shade" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginTop="16dp" | ||
android:contentDescription="@string/settings" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/appBarLayout" | ||
app:srcCompat="@drawable/shade" /> | ||
|
||
<com.google.android.material.slider.Slider | ||
android:id="@+id/behind" | ||
android:layout_width="0dp" | ||
android:layout_height="0dp" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginEnd="16dp" | ||
app:layout_constraintEnd_toEndOf="@+id/shade" | ||
app:layout_constraintStart_toStartOf="@+id/shade" | ||
app:layout_constraintTop_toTopOf="@+id/shade" | ||
android:valueFrom="0.0" | ||
android:valueTo="1.0" | ||
android:value="1.0" | ||
app:labelBehavior="floating" | ||
app:thumbHeight="32dp" | ||
android:tag="behind_alpha"> | ||
|
||
</com.google.android.material.slider.Slider> | ||
|
||
<com.google.android.material.slider.Slider | ||
android:id="@+id/notif" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginEnd="16dp" | ||
app:layout_constraintBottom_toBottomOf="@+id/shade" | ||
app:layout_constraintEnd_toEndOf="@+id/shade" | ||
app:layout_constraintStart_toStartOf="@+id/shade" | ||
app:layout_constraintTop_toBottomOf="@+id/behind" | ||
android:valueFrom="0.0" | ||
android:valueTo="1.0" | ||
android:value="1.0" | ||
android:tag="notif_alpha"/> | ||
|
||
<com.google.android.material.materialswitch.MaterialSwitch | ||
android:id="@+id/auto" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginEnd="16dp" | ||
android:checked="true" | ||
android:layoutDirection="rtl" | ||
android:text="@string/auto" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toEndOf="@+id/shade" | ||
app:layout_constraintTop_toTopOf="@+id/shade" /> | ||
|
||
<TextView | ||
android:id="@+id/problem" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="24dp" | ||
android:layout_marginEnd="24dp" | ||
android:gravity="center_horizontal" | ||
android:text="@string/problem" | ||
android:textSize="20sp" | ||
android:visibility="visible" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/shade" /> | ||
|
||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="settings">Shade Settings</string> | ||
<string name="auto">Auto</string> | ||
<string name="problem">"It looks like the module was not instantiated properly.\nTry manually ticking SystemUI in LSPosed and reboot.\nIf it still doesn't work, there may be a problem with LSPosed.\nLimited functionality available"</string> | ||
</resources> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.