Skip to content

Commit acd30fa

Browse files
authored
light theme will now use light navigation bar (#722)
1 parent 2b54d40 commit acd30fa

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

app/src/main/res/values-v23/themes.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020

2121
<style name="AppTheme.Dark" parent="AppTheme.BaseDark">
2222
<item name="android:windowLightStatusBar">false</item>
23+
<item name="android:navigationBarColor">@color/black</item>
2324
</style>
2425

2526
<style name="AppTheme.Light" parent="AppTheme.BaseLight">
2627
<item name="android:windowLightStatusBar">true</item>
28+
<item name="android:navigationBarColor">@color/white</item>
2729
</style>
2830

2931
</resources>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<!--
4+
~ Copyright (c) 2020 DuckDuckGo
5+
~
6+
~ Licensed under the Apache License, Version 2.0 (the "License");
7+
~ you may not use this file except in compliance with the License.
8+
~ You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
19+
<resources>
20+
21+
<style name="AppTheme.Dark" parent="AppTheme.BaseDark">
22+
<item name="android:windowLightStatusBar">false</item>
23+
<item name="android:windowLightNavigationBar">false</item>
24+
<item name="android:navigationBarColor">@color/black</item>
25+
</style>
26+
27+
<style name="AppTheme.Light" parent="AppTheme.BaseLight">
28+
<item name="android:windowLightStatusBar">true</item>
29+
<item name="android:windowLightNavigationBar">true</item>
30+
<item name="android:navigationBarColor">@color/white</item>
31+
</style>
32+
33+
</resources>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<color name="midnight">#161616</color>
4242
<color name="almostBlackDark">#222222</color>
4343
<color name="almostBlack">#333333</color>
44+
<color name="black">#000000</color>
4445

4546
<color name="charcoalGrey">#383838</color>
4647
<color name="charcoalGreyTwoSemiTransparent">#d6333339</color>

0 commit comments

Comments
 (0)