Fixed styles for SU screen

This commit is contained in:
Viktor De Pasquale 2019-04-26 19:34:22 +02:00
parent 750c42caf1
commit d9cded0fc9
4 changed files with 24 additions and 2 deletions

View File

@ -44,7 +44,7 @@
android:exported="false" android:exported="false"
android:directBootAware="true" android:directBootAware="true"
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:theme="@style/SuRequest" /> android:theme="@style/MagiskTheme.SU" />
<!-- Receiver --> <!-- Receiver -->

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorSecondary">#FFC107</color>
<color name="colorSecondaryDark">#AD8305</color>
<color name="dividerGray">#888888</color>
<color name="colorText">#FFFFFF</color>
<color name="colorTextInactive">#ADADAD</color>
<color name="colorTextInverse">#1D1D1D</color>
<color name="colorTextTinted">#FFFFFF</color>
<color name="colorCardStroke">#2AFFFFFF</color>
<color name="colorCardStrokeInverse">#2AE4E4E4</color>
<color name="colorBackground">#313131</color>
<color name="colorTintedBackground">@color/colorPrimary</color>
</resources>

View File

@ -3,6 +3,8 @@
<style name="ThemeFoundation" parent="Theme.MaterialComponents.NoActionBar" /> <style name="ThemeFoundation" parent="Theme.MaterialComponents.NoActionBar" />
<style name="MagiskTheme.SUFoundation" parent="Theme.MaterialComponents.Dialog" />
<style name="MagiskTheme" parent="ThemeFoundation.Colored.ExtraProps"> <style name="MagiskTheme" parent="ThemeFoundation.Colored.ExtraProps">
<!--All of these attributes are deprecated and will be removed--> <!--All of these attributes are deprecated and will be removed-->
<item name="cardStyle">@style/CardViewStyle.Dark</item> <item name="cardStyle">@style/CardViewStyle.Dark</item>

View File

@ -32,7 +32,9 @@
<item name="android:windowBackground">@android:color/black</item> <item name="android:windowBackground">@android:color/black</item>
</style> </style>
<style name="MagiskTheme.SU" parent="Theme.AppCompat.Dialog"> <style name="MagiskTheme.SUFoundation" parent="Theme.MaterialComponents.Light.Dialog" />
<style name="MagiskTheme.SU" parent="MagiskTheme.SUFoundation">
<item name="android:windowBackground">@android:color/transparent</item> <item name="android:windowBackground">@android:color/transparent</item>
<item name="android:colorBackgroundCacheHint">@null</item> <item name="android:colorBackgroundCacheHint">@null</item>
<item name="android:windowIsFloating">true</item> <item name="android:windowIsFloating">true</item>