Skip to content

Commit 830e71f

Browse files
committed
make dark mode dark
1 parent 45e5d0c commit 830e71f

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

app/src/main/java/eu/faircode/netguard/ApplicationEx.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public WindowInsetsCompat onApplyWindowInsets(@NonNull View v, @NonNull WindowIn
158158
// This way the padding area shows the window background (primary color)
159159
if (content.getChildCount() > 0) {
160160
View child = content.getChildAt(0);
161-
child.setBackgroundColor(dark ? Color.parseColor("#ff121212") : Color.WHITE);
161+
child.setBackgroundColor(dark ? Color.BLACK : Color.WHITE);
162162
}
163163

164164
return insets;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
4+
<item name="colorPrimary">@color/colorPrimary</item>
5+
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
6+
<item name="colorAccent">@color/colorAccent</item>
7+
<item name="android:windowBackground">@color/black</item>
8+
<item name="android:colorBackground">@color/black</item>
9+
</style>
10+
</resources>
11+

app/src/main/res/values/colors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<resources>
22
<color name="colorTrackerControl">#B71C1C</color>
3+
<color name="black">#000000</color>
34

45
<color name="colorPrimary">#B71C1C</color>
56
<color name="colorPrimaryDark">#7f0000</color>

0 commit comments

Comments
 (0)