Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
26a78790
Commit
26a78790
authored
Dec 20, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix night mode text colors
Fix #2037, #2038.
parent
d30705ea
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
2 deletions
+30
-2
mobile/src/main/res/color/nav_item_tint.xml
mobile/src/main/res/color/nav_item_tint.xml
+5
-0
mobile/src/main/res/layout/layout_main.xml
mobile/src/main/res/layout/layout_main.xml
+2
-0
plugin/src/main/res/color/mtrl_text_btn_text_color_selector.xml
.../src/main/res/color/mtrl_text_btn_text_color_selector.xml
+19
-0
plugin/src/main/res/values-night/colors.xml
plugin/src/main/res/values-night/colors.xml
+1
-0
plugin/src/main/res/values/colors.xml
plugin/src/main/res/values/colors.xml
+3
-2
No files found.
mobile/src/main/res/color/nav_item_tint.xml
0 → 100644
View file @
26a78790
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:color=
"@color/color_primary_text"
android:state_checked=
"true"
/>
<item
android:color=
"?android:attr/textColorPrimary"
/>
</selector>
mobile/src/main/res/layout/layout_main.xml
View file @
26a78790
...
@@ -124,6 +124,8 @@
...
@@ -124,6 +124,8 @@
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_height=
"match_parent"
android:layout_gravity=
"start"
android:layout_gravity=
"start"
app:itemIconTint=
"@color/nav_item_tint"
app:itemTextColor=
"@color/nav_item_tint"
app:headerLayout=
"@layout/navigation_header"
app:headerLayout=
"@layout/navigation_header"
app:menu=
"@menu/navigation_main"
/>
app:menu=
"@menu/navigation_main"
/>
</androidx.drawerlayout.widget.DrawerLayout>
</androidx.drawerlayout.widget.DrawerLayout>
plugin/src/main/res/color/mtrl_text_btn_text_color_selector.xml
0 → 100644
View file @
26a78790
<?xml version="1.0" encoding="utf-8"?>
<!--
Source: https://github.com/material-components/material-components-android/blob/79239aab18b85cc3a6a9de98d797b97a96d59bbc/lib/java/com/google/android/material/button/res/color/mtrl_text_btn_text_color_selector.xml
Copyright 2017 The Android Open Source 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.
-->
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:color=
"@color/color_primary_text"
android:state_enabled=
"true"
/>
<item
android:alpha=
"0.38"
android:color=
"?attr/colorOnSurface"
/>
</selector>
plugin/src/main/res/values-night/colors.xml
View file @
26a78790
...
@@ -3,5 +3,6 @@
...
@@ -3,5 +3,6 @@
<color
name=
"color_primary"
>
@color/material_primary_800
</color>
<color
name=
"color_primary"
>
@color/material_primary_800
</color>
<color
name=
"color_primary_dark"
>
@color/material_primary_900
</color>
<color
name=
"color_primary_dark"
>
@color/material_primary_900
</color>
<color
name=
"color_primary_text"
>
@color/material_primary_300
</color>
</resources>
</resources>
\ No newline at end of file
plugin/src/main/res/values/colors.xml
View file @
26a78790
...
@@ -18,7 +18,8 @@
...
@@ -18,7 +18,8 @@
<color
name=
"material_primary_900"
>
@color/material_blue_grey_900
</color>
<color
name=
"material_primary_900"
>
@color/material_blue_grey_900
</color>
<color
name=
"material_accent_200"
>
@color/material_green_a700
</color>
<color
name=
"material_accent_200"
>
@color/material_green_a700
</color>
<color
name=
"color_primary"
>
@color/material_blue_grey_500
</color>
<color
name=
"color_primary"
>
@color/material_primary_500
</color>
<color
name=
"color_primary_dark"
>
@color/material_blue_grey_700
</color>
<color
name=
"color_primary_dark"
>
@color/material_primary_700
</color>
<color
name=
"color_primary_text"
>
@color/material_primary_500
</color>
</resources>
</resources>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment