mirror of https://github.com/readrops/Readrops.git
Add true black background for dark theme
This commit is contained in:
parent
a169da8178
commit
8f093eb4a2
|
@ -10,6 +10,7 @@ import static com.readrops.app.utils.ReadropsKeys.SETTINGS;
|
||||||
import static com.readrops.app.utils.ReadropsKeys.SYNCING;
|
import static com.readrops.app.utils.ReadropsKeys.SYNCING;
|
||||||
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.res.Configuration;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
|
@ -760,10 +761,12 @@ public class MainActivity extends AppCompatActivity implements SwipeRefreshLayou
|
||||||
|
|
||||||
private void startAboutActivity() {
|
private void startAboutActivity() {
|
||||||
Libs.ActivityStyle activityStyle;
|
Libs.ActivityStyle activityStyle;
|
||||||
if (SharedPreferencesManager.readString(SharedPreferencesManager.SharedPrefKey.DARK_THEME).equals(getString(R.string.theme_value_light))) {
|
int uiMode = getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK;
|
||||||
activityStyle = Libs.ActivityStyle.LIGHT_DARK_TOOLBAR;
|
|
||||||
} else {
|
if (uiMode == Configuration.UI_MODE_NIGHT_YES) {
|
||||||
activityStyle = Libs.ActivityStyle.DARK;
|
activityStyle = Libs.ActivityStyle.DARK;
|
||||||
|
} else {
|
||||||
|
activityStyle = Libs.ActivityStyle.LIGHT_DARK_TOOLBAR;
|
||||||
}
|
}
|
||||||
|
|
||||||
new LibsBuilder()
|
new LibsBuilder()
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
android:id="@+id/notif_permission_account_layout"
|
android:id="@+id/notif_permission_account_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@color/md_white_1000"
|
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
<item name="colorAccent">@color/colorAccent</item>
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
|
||||||
|
<item name="android:colorBackground">@android:color/black</item>
|
||||||
|
<item name="material_drawer_background">@android:color/black</item>
|
||||||
|
<item name="android:windowBackground">@android:color/black</item>
|
||||||
|
|
||||||
<item name="actionModeBackground">@color/colorPrimary</item>
|
<item name="actionModeBackground">@color/colorPrimary</item>
|
||||||
<item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
|
<item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue