Commit 367b09fd authored by Joey Rizzoli's avatar Joey Rizzoli

Jelly: support dark mode

Change-Id: I011d0a781731f90123e3c5ee15f3c79d06a23a6f
Signed-off-by: Joey Rizzoli's avatarJoey <joey@lineageos.org>
parent b785ba8b
......@@ -19,6 +19,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:fillColor="@color/inverted"
android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/>
</vector>
......@@ -19,6 +19,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:fillColor="@color/inverted"
android:pathData="M19,9h-4V3H9v6H5l7,7 7,-7zM5,18v2h14v-2H5z"/>
</vector>
......@@ -19,6 +19,6 @@
android:viewportHeight="24"
android:viewportWidth="24">
<path
android:fillColor="#000"
android:fillColor="@color/inverted"
android:pathData="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z" />
</vector>
\ No newline at end of file
......@@ -30,7 +30,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:maxLines="1" />
android:singleLine="true" />
<TextView
android:id="@+id/row_history_summary"
......
......@@ -35,7 +35,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="2dp"
app:cardBackgroundColor="@color/cardview_light_background"
app:cardBackgroundColor="@color/card_background"
app:cardElevation="2dp"
app:contentPadding="2dp">
......@@ -82,9 +82,9 @@
android:nextFocusUp="@id/url_bar"
android:paddingStart="4dp"
android:popupElevation="2dp"
android:popupBackground="@android:color/white"
android:popupBackground="@color/primary"
android:selectAllOnFocus="true"
android:textColor="@android:color/black"
android:textColor="@color/inverted"
tools:ignore="RtlSymmetry" />
<ImageButton
......
......@@ -27,7 +27,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="2dp"
app:cardBackgroundColor="@color/cardview_light_background"
app:cardBackgroundColor="@color/card_background"
app:cardElevation="2dp"
app:contentPadding="2dp">
......@@ -51,7 +51,7 @@
android:nextFocusUp="@id/search_menu_edit"
android:paddingStart="4dp"
android:selectAllOnFocus="true"
android:textColor="@android:color/black"
android:textColor="@color/inverted"
android:textColorHint="@android:color/darker_gray"
tools:ignore="RtlSymmetry" />
......@@ -65,7 +65,7 @@
android:background="@null"
android:gravity="center_vertical"
android:maxLines="1"
android:textColor="@android:color/black"
android:textColor="@color/inverted"
android:textSize="12sp" />
<View
......@@ -76,7 +76,7 @@
android:layout_marginTop="8dp"
android:layout_toStartOf="@+id/search_menu_prev"
android:alpha="0.1"
android:background="#000000" />
android:background="@color/inverted" />
<ImageButton
android:id="@id/search_menu_prev"
......
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2018 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<bool name="is_theme_light">false</bool>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2017 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<color name="colorPrimary">#303030</color>
<color name="colorPrimaryDark">#212121</color>
<color name="primary">#000000</color>
<color name="inverted">#ffffff</color>
<color name="menu_icon">#fafafa</color>
<color name="empty_image">#8b8b8b</color>
<color name="empty_background">#4e4e4e</color>
<color name="empty_text">#8b8b8b</color>
<color name="history_last_hour">#303030</color>
<color name="history_today">#212121</color>
<color name="history_this_week">#111111</color>
<color name="history_this_month">#090909</color>
<color name="history_earlier">#050505</color>
<color name="card_background">@color/cardview_dark_background</color>
<color name="shortcut_circle">#0a0a0a</color>
</resources>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2018 The LineageOS Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<bool name="is_theme_light">true</bool>
</resources>
\ No newline at end of file
......@@ -21,6 +21,9 @@
<color name="colorIncognito">#000b4d</color>
<color name="colorDelete">#F44336</color>
<color name="primary">#ffffff</color>
<color name="inverted">#000000</color>
<color name="menu_icon">#333333</color>
<color name="empty_image">#b1b1b1</color>
......@@ -33,5 +36,7 @@
<color name="history_this_month">#eeeeee</color>
<color name="history_earlier">#e5e5e5</color>
<color name="card_background">@color/cardview_light_background</color>
<color name="shortcut_circle">#f5f5f5</color>
</resources>
......@@ -15,11 +15,11 @@
-->
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:windowLightStatusBar">@bool/is_theme_light</item>
</style>
<style name="AppTheme.NoActionBar">
......
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