Fix Theme for Streaming: No Action Bar

This commit is contained in:
Schoumi 2024-05-29 01:46:20 +02:00
parent a804a36f9e
commit f0f633af9a
2 changed files with 13 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name="fr.mobdev.peertubelive.activity.StreamActivity" android:screenOrientation="portrait"/> <activity android:name="fr.mobdev.peertubelive.activity.StreamActivity" android:screenOrientation="portrait" android:theme="@style/AppThemeStream"/>
<activity android:name="fr.mobdev.peertubelive.activity.CreateLiveActivity" /> <activity android:name="fr.mobdev.peertubelive.activity.CreateLiveActivity" />
</application> </application>

View File

@ -1,7 +1,6 @@
<resources> <resources>
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorSecondary">@color/colorSecondary</item> <item name="colorSecondary">@color/colorSecondary</item>
@ -9,16 +8,26 @@
<item name="alertDialogTheme">@style/DialogButton</item> <item name="alertDialogTheme">@style/DialogButton</item>
<!--<item name="android:editTextColor">@color/colorAccent</item>--> <!--<item name="android:editTextColor">@color/colorAccent</item>-->
</style> </style>
<style name="AppThemeStream" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorSecondary">@color/colorSecondary</item>
<item name="colorOnSecondary">@color/colorOnSecondary</item>
<item name="alertDialogTheme">@style/DialogButton</item>
<!--<item name="android:editTextColor">@color/colorAccent</item>-->
</style>
<style name="DialogButton" parent="Theme.AppCompat.DayNight.Dialog.Alert"> <style name="DialogButton" parent="Theme.AppCompat.DayNight.Dialog.Alert">
<item name="buttonBarNegativeButtonStyle">@style/buttonStyle</item> <item name="buttonBarNegativeButtonStyle">@style/buttonStyle</item>
<item name="buttonBarPositiveButtonStyle">@style/buttonStyle</item> <item name="buttonBarPositiveButtonStyle">@style/buttonStyle</item>
<item name="buttonBarNeutralButtonStyle">@style/buttonStyle</item> <item name="buttonBarNeutralButtonStyle">@style/buttonStyle</item>
</style> </style>
<style name="buttonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog"> <style name="buttonStyle" parent="Widget.AppCompat.Button.ButtonBar.AlertDialog">
<item name="android:textColor">@color/colorSecondary</item> <item name="android:textColor">@color/colorSecondary</item>
</style> </style>
<style name="AppTheme.Light" parent="Theme.MaterialComponents.Light.NoActionBar"> <style name="AppTheme.Light" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="floatingActionButtonStyle">@style/floatingActionButtonStyle</item> <item name="floatingActionButtonStyle">@style/floatingActionButtonStyle</item>
</style> </style>
@ -28,6 +37,7 @@
<item name="colorSecondary">@color/colorPrimary</item> <item name="colorSecondary">@color/colorPrimary</item>
<item name="colorOnSecondary">@color/colorOnSecondary</item> <item name="colorOnSecondary">@color/colorOnSecondary</item>
</style> </style>
<style name="floatingActionButtonStyle" parent="Widget.MaterialComponents.FloatingActionButton"> <style name="floatingActionButtonStyle" parent="Widget.MaterialComponents.FloatingActionButton">
<item name="materialThemeOverlay">@style/customFabColor</item> <item name="materialThemeOverlay">@style/customFabColor</item>
</style> </style>