mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-23 14:18:52 +01:00
Tint hamburger icon
This commit is contained in:
@@ -87,11 +87,12 @@ class MainActivity : QkActivity<MainViewModel>(), MainView {
|
|||||||
override fun onCreate(savedInstanceState: Bundle?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
super.onCreate(savedInstanceState)
|
super.onCreate(savedInstanceState)
|
||||||
setContentView(R.layout.main_activity)
|
setContentView(R.layout.main_activity)
|
||||||
ActionBarDrawerToggle(this, drawerLayout, toolbar, 0, 0).syncState()
|
|
||||||
requestPermissions()
|
requestPermissions()
|
||||||
viewModel.bindView(this)
|
viewModel.bindView(this)
|
||||||
toolbarSearch.setHint(R.string.title_conversations)
|
toolbarSearch.setHint(R.string.title_conversations)
|
||||||
|
|
||||||
|
val toggle = ActionBarDrawerToggle(this, drawerLayout, toolbar, 0, 0).apply { syncState() }
|
||||||
|
|
||||||
recyclerView.setHasFixedSize(true)
|
recyclerView.setHasFixedSize(true)
|
||||||
recyclerView.layoutManager = LinearLayoutManager(this)
|
recyclerView.layoutManager = LinearLayoutManager(this)
|
||||||
|
|
||||||
@@ -116,8 +117,10 @@ class MainActivity : QkActivity<MainViewModel>(), MainView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
disposables += colors.theme
|
disposables += colors.theme
|
||||||
.doOnNext { color -> compose.setBackgroundTint(color) }
|
.subscribe { color -> compose.setBackgroundTint(color) }
|
||||||
.subscribe()
|
|
||||||
|
disposables += colors.textSecondary
|
||||||
|
.subscribe { color -> toggle.drawerArrowDrawable.color = color }
|
||||||
|
|
||||||
disposables += Observables
|
disposables += Observables
|
||||||
.combineLatest(colors.theme, colors.textSecondary, { theme, textSecondary ->
|
.combineLatest(colors.theme, colors.textSecondary, { theme, textSecondary ->
|
||||||
|
|||||||
Reference in New Issue
Block a user