Commit 1359c8fa authored by Niklas Fix's avatar Niklas Fix 🎓

adapt styles to dark mode

parent 5c585730
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme"
parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="android:windowBackground">@color/light_grey_material</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:alertDialogStyle">@style/DialogStyle</item>
<item name="android:splitMotionEvents">false</item>
<item name="android:windowEnableSplitTouch">false</item>
</style>
<style name="WhiteTheme"
parent="AppTheme">
<item name="android:windowLightStatusBar">true</item>
......@@ -29,7 +19,7 @@
<item name="android:statusBarColor">@color/colorPrimary</item>
<item name="android:textColor">@color/darkText</item>
<item name="android:itemBackground">@color/white</item>
<!--item name="preferenceTheme">@style/AkamuPreferenceThemeOverlay</item-->
<item name="android:textColorSecondary">@color/textLight</item>
</style>
</resources>
\ No newline at end of file
......@@ -2,15 +2,15 @@
<!-- === BASE APPLICATION THEME === -->
<style name="AppTheme"
parent="Theme.AppCompat.Light.NoActionBar">
parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/darkGrey</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:alertDialogStyle">@style/DialogStyle</item>
<item name="alertDialogTheme">@style/DialogStyle</item>
<item name="android:splitMotionEvents">false</item>
<item name="android:windowEnableSplitTouch">false</item>
<item name="android:windowAnimationStyle">@style/WindowAnimationFadeInOut</item>
<!--<item name="android:windowBackground">@color/activityBackground</item> -->
<item name="preferenceTheme">@style/AkamuPreferenceStyle</item>
<item name="autoCompleteTextViewStyle">@style/AkamuAutoCompleteTextViewStyle</item>
</style>
<!-- === BUTTON STYLES === -->
......@@ -19,8 +19,10 @@
<item name="android:textColor">#ffffff</item>
<item name="android:textStyle">bold</item>
</style>
<style name="AppButtonRed">
<item name="android:background">@drawable/button_circle_ripple_red</item>
<item name="android:background">@drawable/button_circle_ripple_red
</item>
<item name="android:textColor">#ffffff</item>
<item name="android:textStyle">bold</item>
</style>
......@@ -32,7 +34,8 @@
</style>
<style name="CircularButton">
<item name="android:background">?selectableItemBackgroundBorderless</item>
<item name="android:background">?selectableItemBackgroundBorderless
</item>
<item name="android:padding">5dp</item>
</style>
......@@ -48,8 +51,9 @@
<!-- === DIALOG STYLES === -->
<style name="DialogStyle"
parent="Theme.AppCompat.Light.Dialog">
parent="Theme.AppCompat.Dialog.Alert">
<item name="windowNoTitle">false</item>
<item name="android:windowTitleStyle">@style/AkamuDialogTitleStyle</item>
<item name="contentInsetStart">6dp</item>
<item name="contentInsetEnd">6dp</item>
<item name="android:windowFrame">@null</item>
......@@ -60,25 +64,13 @@
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan
</item>
<item name="android:backgroundDimEnabled">true</item>
<item name="android:background">@android:color/transparent</item>
</style>
<!-- === TEXT INPUT STYLES === -->
<!--style name="TextAppearence.App.TextInputLayout"
parent="Widget.MaterialComponents.TextInputLayout.FilledBox">
<item name="android:textColor">@color/white</item>
<item name="android:textSize">12sp</item>
<item name="colorControlNormal">@color/white</item>
<item name="colorControlActivated">@color/white</item>
<item name="android:textColorHint">@color/white</item>
<item name="android:background">@color/white</item>
<item name="colorAccent">@color/textDialogColor</item>
<item name="colorControlNormal">@color/textDialogColor</item>
<item name="textColorAlertDialogListItem">@color/darkText</item>
</style>
<style name="TextAppearence.App.TextInputLayout.Error"
parent="@android:style/TextAppearance">
<item name="android:textColor">@color/colorPrimaryDark</item>
<item name="android:textSize">12sp</item>
</style-->
<!-- CUSTOM EDITTEXT -->
<style name="AkamuEditText">
<item name="colorAccent">@color/textWhite</item>
</style>
......@@ -121,12 +113,18 @@
<item name="android:windowExitAnimation">@anim/fade_out</item>
</style>
<style name="AkamuPreferenceThemeOverlay" parent="PreferenceThemeOverlay">
<item name="preferenceStyle">@style/AkamuPreferenceStyle</item>
<style name="AkamuPreferenceStyle">
<item name="android:textColor">@color/darkText</item>
<!--item name="android:tint">@color/textLight</item-->
</style>
<style name="AkamuDialogTitleStyle">
<item name="android:textColor">@color/textDialogColor</item>
<item name="android:textSize">18sp</item>
</style>
<style name="AkamuPreferenceStyle" parent="Preference">
<!--item name="android:textColor">@color/darkText</item-->
<item name="android:background">@color/colorPrimary</item>
<style name="AkamuAutoCompleteTextViewStyle" parent="Widget.AppCompat.AutoCompleteTextView">
<item name="android:textColor">@color/textLight</item>
<item name="android:textColorHint">@color/textLight</item>
</style>
</resources>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment