Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
Message
Commits
6d28d134
Commit
6d28d134
authored
Oct 29, 2020
by
Mohit Mali
Browse files
Fixed white color of app
parent
863a79e5
Pipeline
#81469
passed with stage
in 18 minutes and 57 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt
View file @
6d28d134
...
...
@@ -178,12 +178,10 @@ class MainActivity : QkThemedActivity(), MainView {
}
// Miscellaneous views
syncingProgress
?.
progressTintList
=
ColorStateList
.
valueOf
(
getColor
(
R
.
color
.
tools_theme
))
syncingProgress
?.
progressTintList
=
ColorStateList
.
valueOf
(
resources
.
getColor
(
R
.
color
.
tools_theme
))
syncingProgress
?.
indeterminateTintList
=
ColorStateList
.
valueOf
(
getColor
(
R
.
color
.
tools_theme
))
compose
.
setBackgroundTint
(
getColor
(
R
.
color
.
tools_theme
))
// Set the FAB compose icon color
compose
.
setTint
(
getColor
(
R
.
color
.
whit
e
))
compose
.
setTint
(
getColor
(
R
.
color
.
tools_them
e
))
itemTouchCallback
.
adapter
=
conversationsAdapter
conversationsAdapter
.
autoScrollToStart
(
recyclerView
)
...
...
presentation/src/main/java/com/moez/QKSMS/feature/widget/WidgetProvider.kt
View file @
6d28d134
...
...
@@ -121,7 +121,7 @@ class WidgetProvider : AppWidgetProvider() {
remoteViews
.
setInt
(
R
.
id
.
toolbar
,
"setColorFilter"
,
context
.
getColorCompat
(
when
{
night
&&
black
->
R
.
color
.
black
night
&&
!
black
->
R
.
color
.
toolbarDark
else
->
R
.
color
.
toolbarLight
else
->
R
.
color
.
colorPrimary
}))
remoteViews
.
setTextColor
(
R
.
id
.
title
,
context
.
getColorCompat
(
when
(
night
)
{
...
...
presentation/src/main/res/layout/main_activity.xml
View file @
6d28d134
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2019 Moez Bhatti <moez.bhatti@gmail.com>
~
~ This file is part of QKSMS.
...
...
@@ -98,10 +97,8 @@
android:elevation=
"8dp"
android:padding=
"16dp"
android:src=
"@drawable/ic_add_black_24dp"
android:tint=
"@color/white"
app:layout_constraintBottom_toTopOf=
"@id/bottom"
app:layout_constraintEnd_toEndOf=
"parent"
tools:backgroundTint=
"@color/tools_theme"
/>
app:layout_constraintEnd_toEndOf=
"parent"
/>
<View
android:layout_width=
"0dp"
...
...
presentation/src/main/res/values/colors.xml
View file @
6d28d134
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2019 Moez Bhatti <moez.bhatti@gmail.com>
~
~ This file is part of QKSMS.
...
...
@@ -27,7 +26,7 @@
<color
name=
"statusBarLight"
>
#FFFFFF
</color>
<color
name=
"statusBarDark"
>
#1d262b
</color>
<color
name=
"toolbarLight"
>
#FFFFFF
</color>
<color
name=
"toolbarLight"
>
@color/colorPrimary
</color>
<color
name=
"toolbarDark"
>
#1d262b
</color>
<color
name=
"toolbarTranslucent"
>
#88000000
</color>
<color
name=
"toolbarSearchBackgroundLight"
>
#0D000000
</color>
...
...
@@ -67,5 +66,7 @@
<color
name=
"switchTrackDisabledDark"
>
#383838
</color>
<!-- This colour should only ever be used for attrs with the tools tag -->
<color
name=
"tools_theme"
>
@lineageos.platform:color/color_default_primary
</color>
<color
name=
"tools_theme"
>
@lineageos.platform:color/color_default_accent
</color>
<color
name=
"colorPrimary"
>
@lineageos.platform:color/color_default_primary
</color>
<color
name=
"colorPrimaryDark"
>
@lineageos.platform:color/color_default_primary_dark
</color>
</resources>
presentation/src/main/res/values/themes.xml
View file @
6d28d134
...
...
@@ -44,8 +44,9 @@
<item
name=
"android:windowContentTransitions"
>
true
</item>
<item
name=
"actionBarPopupTheme"
>
@style/PopupTheme
</item>
<item
name=
"bubbleColor"
>
@color/bubbleLight
</item>
<item
name=
"colorPrimary"
>
@color/toolbarLight
</item>
<item
name=
"colorPrimaryDark"
>
@color/statusBarLight
</item>
<item
name=
"colorPrimary"
>
@color/colorPrimary
</item>
<item
name=
"colorPrimaryDark"
>
@color/colorPrimaryDark
</item>
<item
name=
"colorAccent"
>
@color/tools_theme
</item>
<item
name=
"composeBackground"
>
@color/backgroundLight
</item>
<item
name=
"selectableItemBackground"
>
@drawable/ripple
</item>
<item
name=
"switchThumbEnabled"
>
@color/switchThumbEnabledLight
</item>
...
...
@@ -62,8 +63,8 @@
<item
name=
"android:windowBackground"
>
@android:color/transparent
</item>
<item
name=
"actionBarPopupTheme"
>
@style/PopupTheme
</item>
<item
name=
"bubbleColor"
>
@color/bubbleLight
</item>
<item
name=
"colorPrimary"
>
@color/
toolbarLight
</item>
<item
name=
"colorPrimaryDark"
>
@color/
statusBarLight
</item>
<item
name=
"colorPrimary"
>
@color/
colorPrimary
</item>
<item
name=
"colorPrimaryDark"
>
@color/
colorPrimaryDark
</item>
<item
name=
"composeBackground"
>
@color/backgroundLight
</item>
<item
name=
"selectableItemBackground"
>
@drawable/ripple
</item>
<item
name=
"windowActionBar"
>
false
</item>
...
...
Write
Preview
Supports
Markdown
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