style dark dialogs (#864)

This commit is contained in:
Konrad Pozniak 2018-09-29 19:44:50 +02:00 committed by GitHub
parent 323c58a125
commit bf00cfcc4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -16,7 +16,6 @@
package com.keylesspalace.tusky package com.keylesspalace.tusky
import android.animation.ArgbEvaluator import android.animation.ArgbEvaluator
import android.app.AlertDialog
import android.arch.lifecycle.Observer import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders import android.arch.lifecycle.ViewModelProviders
import android.content.Context import android.content.Context
@ -35,6 +34,7 @@ import android.support.v4.app.Fragment
import android.support.v4.content.ContextCompat import android.support.v4.content.ContextCompat
import android.support.v4.view.ViewCompat import android.support.v4.view.ViewCompat
import android.support.v4.widget.TextViewCompat import android.support.v4.widget.TextViewCompat
import android.support.v7.app.AlertDialog
import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.LinearLayoutManager
import android.view.Menu import android.view.Menu
import android.view.MenuItem import android.view.MenuItem

View File

@ -18,6 +18,7 @@
<item name="android:actionMenuTextColor">@color/text_color_primary_dark</item> <item name="android:actionMenuTextColor">@color/text_color_primary_dark</item>
<item name="bottomSheetDialogTheme">@style/AppTheme.BottomSheetDialog.Dark</item> <item name="bottomSheetDialogTheme">@style/AppTheme.BottomSheetDialog.Dark</item>
<item name="alertDialogTheme">@style/nightDialogTheme</item>
<item name="window_background">@color/window_background_dark</item> <item name="window_background">@color/window_background_dark</item>
<item name="custom_tab_toolbar">@color/custom_tab_toolbar_dark</item> <item name="custom_tab_toolbar">@color/custom_tab_toolbar_dark</item>
@ -85,4 +86,9 @@
<item name="windowActionBarOverlay">true</item> <item name="windowActionBarOverlay">true</item>
</style> </style>
<style name="nightDialogTheme" parent="Theme.AppCompat.Dialog.Alert">
<item name="android:colorBackground">@color/color_primary_dark_dark</item>
<item name="colorAccent">@color/primary</item>
</style>
</resources> </resources>