Skip to content

Commit

Permalink
style: 默认颜色修改
Browse files Browse the repository at this point in the history
底部操作条更明显
  • Loading branch information
gedoor committed Feb 9, 2020
1 parent bad4038 commit 194343d
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import io.legado.app.R
import io.legado.app.constant.Theme
import io.legado.app.lib.theme.ATH
import io.legado.app.ui.filechooser.adapter.FileAdapter
import io.legado.app.ui.filechooser.adapter.PathAdapter
import io.legado.app.utils.*
Expand Down Expand Up @@ -90,8 +89,7 @@ class FileChooserDialog : DialogFragment(),

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
ATH.applyBackgroundTint(view)
ATH.applyBackgroundTint(rv_path)
view.setBackgroundResource(R.color.background_card)
arguments?.let {
requestCode = it.getInt("requestCode")
mode = it.getInt("mode", FILE)
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/item_bg_dark.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<color xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/item_bg_color" />
android:color="@color/md_grey_800" />
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/item_bg_light.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<color xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/md_grey_100" />
android:color="@color/md_grey_200" />
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_arrange_book.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background"
android:background="@color/background_menu"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_book_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background"
android:background="@color/background_menu"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_import_book.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background"
android:background="@color/background_menu"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_rss_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background"
android:background="@color/background_menu"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/dialog_change_source.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
android:id="@+id/tool_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background"
android:background="@color/background_menu"
android:elevation="5dp"
app:displayHomeAsUp="false"
app:fitStatusBar="false"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/dialog_file_chooser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<androidx.appcompat.widget.Toolbar
android:id="@+id/tool_bar"
android:background="@color/background_menu"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/dialog_font_select.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<androidx.appcompat.widget.Toolbar
android:id="@+id/tool_bar"
android:background="@color/background_menu"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/dialog_recycler_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

<androidx.appcompat.widget.Toolbar
android:id="@+id/tool_bar"
android:background="@color/background_menu"
android:layout_width="match_parent"
android:layout_height="wrap_content" />

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/dialog_replace_edit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

<androidx.appcompat.widget.Toolbar
android:id="@+id/tool_bar"
android:background="@color/background_menu"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:title="@string/replace_rule_edit" />
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<color name="colorPrimaryDark">@color/md_blue_grey_700</color>
<color name="colorAccent">@color/md_deep_orange_800</color>

<color name="background">@color/md_grey_800</color>
<color name="background_card">#353535</color>
<color name="background_menu">#282828</color>
<color name="background">@color/md_grey_900</color>
<color name="background_card">@color/md_grey_850</color>
<color name="background_menu">@color/md_grey_800</color>

<color name="night_mask">#69000000</color>

Expand Down
7 changes: 3 additions & 4 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@

<color name="lightBlue_color">#FF578FCC</color>
<color name="shine_color">#FF212227</color>
<color name="item_bg_color">#FF272731</color>

<color name="error">#eb4333</color>
<color name="success">#439b53</color>

<color name="night_mask">#00000000</color>

<color name="background">@color/md_grey_100</color>
<color name="background_card">#dedede</color>
<color name="background_menu">#fcfcfc</color>
<color name="background">@color/md_grey_50</color>
<color name="background_card">@color/md_grey_100</color>
<color name="background_menu">@color/md_grey_200</color>
<color name="transparent">#00000000</color>

<color name="transparent30">#30000000</color>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</style>

<style name="AppTheme.AppBarOverlay.Dark" parent="ThemeOverlay.AppCompat.Dark">
<item name="colorAccent">@color/md_grey_100</item>
<item name="colorAccent">@color/md_grey_50</item>
</style>

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light">
Expand Down
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,21 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
},
"description": "[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gedoor/legado.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/gedoor/legado/issues"
},
"homepage": "https://github.com/gedoor/legado#readme"
}

0 comments on commit 194343d

Please sign in to comment.