From 8570f47372f1393f1ff2c2129afee63fd6d7fbe5 Mon Sep 17 00:00:00 2001 From: J-Jamet Date: Mon, 10 Jul 2023 20:11:39 +0200 Subject: [PATCH] fix: Large pass to add Material 3 --- .../keepass/activities/EntryActivity.kt | 21 +- .../activities/legacy/DatabaseModeActivity.kt | 8 +- .../keepass/adapters/BreadcrumbAdapter.kt | 10 +- .../keepass/view/AddNodeButtonView.kt | 6 - .../kunzisoft/keepass/view/ToolbarAction.kt | 8 +- .../{SpecialModeView.kt => ToolbarSpecial.kt} | 10 +- .../res/color/color_on_button_primary.xml | 5 - ...or_on_primary.xml => color_on_primary.xml} | 2 +- app/src/main/res/color/color_primary.xml | 6 + app/src/main/res/color/color_secondary.xml | 6 + .../drawable-v21/background_button_small.xml | 22 -- ...button_small.xml => background_switch.xml} | 0 .../res/drawable/ic_info_hint_color_24dp.xml | 2 +- app/src/main/res/layout/activity_entry.xml | 18 +- .../main/res/layout/activity_entry_edit.xml | 10 +- .../res/layout/activity_file_selection.xml | 26 +- app/src/main/res/layout/activity_group.xml | 78 ++-- .../main/res/layout/activity_icon_picker.xml | 5 +- .../res/layout/activity_key_generator.xml | 5 +- .../res/layout/activity_main_credential.xml | 36 +- .../main/res/layout/fragment_color_picker.xml | 4 +- .../res/layout/fragment_entry_new_field.xml | 1 - .../layout/fragment_set_main_credential.xml | 3 - app/src/main/res/layout/item_breadcrumb.xml | 92 +++-- .../res/layout/item_breadcrumb_important.xml | 86 ++++ app/src/main/res/layout/item_file_info.xml | 369 +++++++++--------- app/src/main/res/layout/item_group.xml | 76 ---- .../main/res/layout/nav_header_database.xml | 9 +- .../main/res/layout/pref_dialog_duration.xml | 1 - .../res/layout/pref_dialog_input_list.xml | 4 +- .../res/layout/pref_dialog_input_numbers.xml | 1 - .../res/layout/pref_dialog_input_text.xml | 1 - app/src/main/res/layout/pref_dialog_text.xml | 1 - .../res/layout/preference_material_switch.xml | 1 - app/src/main/res/layout/toolbar_default.xml | 9 +- .../main/res/layout/view_button_add_node.xml | 45 +-- app/src/main/res/layout/view_button_lock.xml | 2 - .../main/res/layout/view_edit_date_time.xml | 1 - .../main/res/layout/view_main_credentials.xml | 6 +- .../main/res/layout/view_search_filters.xml | 9 +- app/src/main/res/values-v21/styles.xml | 24 +- app/src/main/res/values-v21/styles_divine.xml | 10 +- app/src/main/res/values-v23/styles.xml | 10 +- app/src/main/res/values-v23/styles_divine.xml | 25 -- app/src/main/res/values-v27/styles.xml | 4 +- app/src/main/res/values-v27/styles_divine.xml | 25 -- app/src/main/res/values/attrs.xml | 9 +- app/src/main/res/values/colors.xml | 62 +++ app/src/main/res/values/dimens.xml | 4 +- app/src/main/res/values/styles.xml | 343 ++++++++-------- app/src/main/res/values/styles_classic.xml | 50 +-- app/src/main/res/values/styles_divine.xml | 107 +---- app/src/main/res/values/styles_kunzite.xml | 50 +-- app/src/main/res/values/styles_moon.xml | 48 +-- app/src/main/res/values/styles_reply.xml | 50 +-- app/src/main/res/values/styles_simple.xml | 50 +-- app/src/main/res/values/styles_sun.xml | 50 +-- 57 files changed, 750 insertions(+), 1176 deletions(-) rename app/src/main/java/com/kunzisoft/keepass/view/{SpecialModeView.kt => ToolbarSpecial.kt} (85%) delete mode 100644 app/src/main/res/color/color_on_button_primary.xml rename app/src/main/res/color/{background_button_color_on_primary.xml => color_on_primary.xml} (74%) create mode 100644 app/src/main/res/color/color_primary.xml create mode 100644 app/src/main/res/color/color_secondary.xml delete mode 100644 app/src/main/res/drawable-v21/background_button_small.xml rename app/src/main/res/drawable/{background_button_small.xml => background_switch.xml} (100%) create mode 100644 app/src/main/res/layout/item_breadcrumb_important.xml delete mode 100644 app/src/main/res/layout/item_group.xml delete mode 100644 app/src/main/res/values-v23/styles_divine.xml delete mode 100644 app/src/main/res/values-v27/styles_divine.xml diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/EntryActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/EntryActivity.kt index 6cf47f501..1ebd24de2 100644 --- a/app/src/main/java/com/kunzisoft/keepass/activities/EntryActivity.kt +++ b/app/src/main/java/com/kunzisoft/keepass/activities/EntryActivity.kt @@ -21,7 +21,6 @@ package com.kunzisoft.keepass.activities import android.app.Activity import android.content.Intent import android.graphics.Color -import android.graphics.drawable.ColorDrawable import android.net.Uri import android.os.Bundle import android.os.Handler @@ -70,8 +69,6 @@ import com.kunzisoft.keepass.timeout.TimeoutHelper import com.kunzisoft.keepass.utils.UriUtil.openUrl import com.kunzisoft.keepass.utils.UuidUtil import com.kunzisoft.keepass.utils.getParcelableExtraCompat -import com.kunzisoft.keepass.view.changeControlColor -import com.kunzisoft.keepass.view.changeTitleColor import com.kunzisoft.keepass.view.hideByFading import com.kunzisoft.keepass.view.showActionErrorIfNeeded import com.kunzisoft.keepass.viewmodels.EntryViewModel @@ -113,8 +110,6 @@ class EntryActivity : DatabaseLockActivity() { private var mIcon: IconImage? = null private var mColorSecondary: Int = 0 - private var mControlColor: Int = 0 - private var mColorPrimary: Int = 0 private var mColorBackground: Int = 0 private var mBackgroundColor: Int? = null private var mForegroundColor: Int? = null @@ -147,16 +142,10 @@ class EntryActivity : DatabaseLockActivity() { // Retrieve the textColor to tint the toolbar val taColorSecondary = theme.obtainStyledAttributes(intArrayOf(R.attr.colorSecondary)) - val taControlColor = theme.obtainStyledAttributes(intArrayOf(R.attr.toolbarColorControl)) - val taColorPrimary = theme.obtainStyledAttributes(intArrayOf(R.attr.colorPrimary)) val taColorBackground = theme.obtainStyledAttributes(intArrayOf(android.R.attr.windowBackground)) mColorSecondary = taColorSecondary.getColor(0, Color.BLACK) - mControlColor = taControlColor.getColor(0, Color.BLACK) - mColorPrimary = taColorPrimary.getColor(0, Color.BLACK) mColorBackground = taColorBackground.getColor(0, Color.BLACK) taColorSecondary.recycle() - taControlColor.recycle() - taColorPrimary.recycle() taColorBackground.recycle() // Init Tags adapter @@ -225,10 +214,10 @@ class EntryActivity : DatabaseLockActivity() { this.mEntryIsHistory = entryIsHistory // Assign history dedicated view historyView?.visibility = if (entryIsHistory) View.VISIBLE else View.GONE + // TODO History badge + /* if (entryIsHistory) { - collapsingToolbarLayout?.contentScrim = - ColorDrawable(mColorSecondary) - } + }*/ val entryInfo = entryInfoHistory.entryInfo // Manage entry copy to start notification if allowed (at the first start) @@ -366,8 +355,6 @@ class EntryActivity : DatabaseLockActivity() { } private fun applyToolbarColors() { - appBarLayout?.setBackgroundColor(mBackgroundColor ?: mColorPrimary) - collapsingToolbarLayout?.contentScrim = ColorDrawable(mBackgroundColor ?: mColorPrimary) val backgroundDarker = if (mBackgroundColor != null) { ColorUtils.blendARGB(mBackgroundColor!!, Color.WHITE, 0.1f) } else { @@ -384,8 +371,6 @@ class EntryActivity : DatabaseLockActivity() { ) } } - toolbar?.changeControlColor(mForegroundColor ?: mControlColor) - collapsingToolbarLayout?.changeTitleColor(mForegroundColor ?: mControlColor) } override fun onCreateOptionsMenu(menu: Menu): Boolean { diff --git a/app/src/main/java/com/kunzisoft/keepass/activities/legacy/DatabaseModeActivity.kt b/app/src/main/java/com/kunzisoft/keepass/activities/legacy/DatabaseModeActivity.kt index 3ecb9eabf..2688700eb 100644 --- a/app/src/main/java/com/kunzisoft/keepass/activities/legacy/DatabaseModeActivity.kt +++ b/app/src/main/java/com/kunzisoft/keepass/activities/legacy/DatabaseModeActivity.kt @@ -9,7 +9,7 @@ import com.kunzisoft.keepass.activities.helpers.SpecialMode import com.kunzisoft.keepass.activities.helpers.TypeMode import com.kunzisoft.keepass.model.SearchInfo import com.kunzisoft.keepass.settings.PreferencesUtil -import com.kunzisoft.keepass.view.SpecialModeView +import com.kunzisoft.keepass.view.ToolbarSpecial /** @@ -20,7 +20,7 @@ abstract class DatabaseModeActivity : DatabaseActivity() { protected var mSpecialMode: SpecialMode = SpecialMode.DEFAULT private var mTypeMode: TypeMode = TypeMode.DEFAULT - private var mSpecialModeView: SpecialModeView? = null + private var mToolbarSpecial: ToolbarSpecial? = null override fun onBackPressed() { if (mSpecialMode != SpecialMode.DEFAULT) @@ -113,8 +113,8 @@ abstract class DatabaseModeActivity : DatabaseActivity() { ?: EntrySelectionHelper.retrieveSearchInfoFromIntent(intent) // To show the selection mode - mSpecialModeView = findViewById(R.id.special_mode_view) - mSpecialModeView?.apply { + mToolbarSpecial = findViewById(R.id.special_mode_view) + mToolbarSpecial?.apply { // Populate title val selectionModeStringId = when (mSpecialMode) { SpecialMode.DEFAULT, // Not important because hidden diff --git a/app/src/main/java/com/kunzisoft/keepass/adapters/BreadcrumbAdapter.kt b/app/src/main/java/com/kunzisoft/keepass/adapters/BreadcrumbAdapter.kt index e9fa81caf..5e39ebf00 100644 --- a/app/src/main/java/com/kunzisoft/keepass/adapters/BreadcrumbAdapter.kt +++ b/app/src/main/java/com/kunzisoft/keepass/adapters/BreadcrumbAdapter.kt @@ -39,10 +39,10 @@ class BreadcrumbAdapter(val context: Context) mShowNumberEntries = PreferencesUtil.showNumberEntries(context) mShowUUID = PreferencesUtil.showUUID(context) - // Retrieve the textColor to tint the icon - val taTextColor = context.theme.obtainStyledAttributes(intArrayOf(R.attr.colorOnPrimary)) - mIconColor = taTextColor.getColor(0, Color.WHITE) - taTextColor.recycle() + // Retrieve the color to tint the icon + val taIconColor = context.theme.obtainStyledAttributes(intArrayOf(R.attr.colorOnSurface)) + mIconColor = taIconColor.getColor(0, Color.WHITE) + taIconColor.recycle() } @SuppressLint("NotifyDataSetChanged") @@ -71,7 +71,7 @@ class BreadcrumbAdapter(val context: Context) override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BreadcrumbGroupViewHolder { return BreadcrumbGroupViewHolder(inflater.inflate( when (viewType) { - 0 -> R.layout.item_group + 0 -> R.layout.item_breadcrumb_important else -> R.layout.item_breadcrumb }, parent, false) ) diff --git a/app/src/main/java/com/kunzisoft/keepass/view/AddNodeButtonView.kt b/app/src/main/java/com/kunzisoft/keepass/view/AddNodeButtonView.kt index c69e5aae9..910abff0a 100644 --- a/app/src/main/java/com/kunzisoft/keepass/view/AddNodeButtonView.kt +++ b/app/src/main/java/com/kunzisoft/keepass/view/AddNodeButtonView.kt @@ -43,10 +43,8 @@ class AddNodeButtonView @JvmOverloads constructor(context: Context, var addButtonView: FloatingActionButton? = null private lateinit var addEntryView: View - private lateinit var textAddEntryView: View private lateinit var fabAddEntryView: View private lateinit var addGroupView: View - private lateinit var textAddGroupView: View private lateinit var fabAddGroupView: View private var addEntryEnable: Boolean = false @@ -81,10 +79,8 @@ class AddNodeButtonView @JvmOverloads constructor(context: Context, addButtonView = findViewById(R.id.add_button) addEntryView = findViewById(R.id.container_add_entry) - textAddEntryView = findViewById(R.id.text_add_entry) fabAddEntryView = findViewById(R.id.fab_add_entry) addGroupView = findViewById(R.id.container_add_group) - textAddGroupView = findViewById(R.id.text_add_group) fabAddGroupView = findViewById(R.id.fab_add_group) animationDuration = 300L @@ -205,14 +201,12 @@ class AddNodeButtonView @JvmOverloads constructor(context: Context, fun setAddGroupClickListener(onClickListener: OnClickListener) { if (addGroupEnable) { - textAddGroupView.setOnClickListener(onButtonClickListener(onClickListener)) fabAddGroupView.setOnClickListener(onButtonClickListener(onClickListener)) } } fun setAddEntryClickListener(onClickListener: OnClickListener) { if (addEntryEnable) { - textAddEntryView.setOnClickListener(onButtonClickListener(onClickListener)) fabAddEntryView.setOnClickListener(onButtonClickListener(onClickListener)) } } diff --git a/app/src/main/java/com/kunzisoft/keepass/view/ToolbarAction.kt b/app/src/main/java/com/kunzisoft/keepass/view/ToolbarAction.kt index 852bd9aa3..82f0fbfa1 100644 --- a/app/src/main/java/com/kunzisoft/keepass/view/ToolbarAction.kt +++ b/app/src/main/java/com/kunzisoft/keepass/view/ToolbarAction.kt @@ -31,14 +31,14 @@ import android.view.View import androidx.annotation.ColorInt import androidx.appcompat.view.ActionMode import androidx.appcompat.view.SupportMenuInflater -import androidx.appcompat.widget.Toolbar import androidx.core.content.ContextCompat +import com.google.android.material.appbar.MaterialToolbar import com.kunzisoft.keepass.R class ToolbarAction @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, - defStyle: Int = androidx.appcompat.R.attr.toolbarStyle) - : Toolbar(context, attrs, defStyle) { + defStyle: Int = R.attr.toolbarActionStyle) + : MaterialToolbar(context, attrs, defStyle) { private var mActionModeCallback: ActionMode.Callback? = null private val actionMode = NodeActionMode(this) @@ -47,7 +47,7 @@ class ToolbarAction @JvmOverloads constructor(context: Context, init { ContextCompat.getDrawable(context, R.drawable.ic_close_white_24dp)?.let { closeDrawable -> val typedValue = TypedValue() - context.theme.resolveAttribute(R.attr.colorControlNormal, typedValue, true) + context.theme.resolveAttribute(R.attr.colorOnSurface, typedValue, true) @ColorInt val colorControl = typedValue.data closeDrawable.colorFilter = PorterDuffColorFilter(colorControl, PorterDuff.Mode.SRC_ATOP) navigationIcon = closeDrawable diff --git a/app/src/main/java/com/kunzisoft/keepass/view/SpecialModeView.kt b/app/src/main/java/com/kunzisoft/keepass/view/ToolbarSpecial.kt similarity index 85% rename from app/src/main/java/com/kunzisoft/keepass/view/SpecialModeView.kt rename to app/src/main/java/com/kunzisoft/keepass/view/ToolbarSpecial.kt index 77ab72795..2da08e1dc 100644 --- a/app/src/main/java/com/kunzisoft/keepass/view/SpecialModeView.kt +++ b/app/src/main/java/com/kunzisoft/keepass/view/ToolbarSpecial.kt @@ -26,14 +26,14 @@ import android.util.AttributeSet import android.util.TypedValue import android.view.View import androidx.annotation.ColorInt -import androidx.appcompat.widget.Toolbar import androidx.core.content.ContextCompat +import com.google.android.material.appbar.MaterialToolbar import com.kunzisoft.keepass.R -class SpecialModeView @JvmOverloads constructor(context: Context, - attrs: AttributeSet? = null, - defStyle: Int = androidx.appcompat.R.attr.toolbarStyle) - : Toolbar(context, attrs, defStyle) { +class ToolbarSpecial @JvmOverloads constructor(context: Context, + attrs: AttributeSet? = null, + defStyle: Int = R.attr.toolbarSpecialStyle) + : MaterialToolbar(context, attrs, defStyle) { init { ContextCompat.getDrawable(context, R.drawable.ic_arrow_back_white_24dp)?.let { closeDrawable -> diff --git a/app/src/main/res/color/color_on_button_primary.xml b/app/src/main/res/color/color_on_button_primary.xml deleted file mode 100644 index f4e93d5d5..000000000 --- a/app/src/main/res/color/color_on_button_primary.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/app/src/main/res/color/background_button_color_on_primary.xml b/app/src/main/res/color/color_on_primary.xml similarity index 74% rename from app/src/main/res/color/background_button_color_on_primary.xml rename to app/src/main/res/color/color_on_primary.xml index 0a69948d9..2b7f79d15 100644 --- a/app/src/main/res/color/background_button_color_on_primary.xml +++ b/app/src/main/res/color/color_on_primary.xml @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/app/src/main/res/color/color_primary.xml b/app/src/main/res/color/color_primary.xml new file mode 100644 index 000000000..10fa45733 --- /dev/null +++ b/app/src/main/res/color/color_primary.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/color/color_secondary.xml b/app/src/main/res/color/color_secondary.xml new file mode 100644 index 000000000..678a86c7e --- /dev/null +++ b/app/src/main/res/color/color_secondary.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable-v21/background_button_small.xml b/app/src/main/res/drawable-v21/background_button_small.xml deleted file mode 100644 index c203f0917..000000000 --- a/app/src/main/res/drawable-v21/background_button_small.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/background_button_small.xml b/app/src/main/res/drawable/background_switch.xml similarity index 100% rename from app/src/main/res/drawable/background_button_small.xml rename to app/src/main/res/drawable/background_switch.xml diff --git a/app/src/main/res/drawable/ic_info_hint_color_24dp.xml b/app/src/main/res/drawable/ic_info_hint_color_24dp.xml index 8b2f56d36..2cc867c6d 100644 --- a/app/src/main/res/drawable/ic_info_hint_color_24dp.xml +++ b/app/src/main/res/drawable/ic_info_hint_color_24dp.xml @@ -4,6 +4,6 @@ android:viewportWidth="24.0" android:viewportHeight="24.0"> diff --git a/app/src/main/res/layout/activity_entry.xml b/app/src/main/res/layout/activity_entry.xml index 3dddbe998..c65634f15 100644 --- a/app/src/main/res/layout/activity_entry.xml +++ b/app/src/main/res/layout/activity_entry.xml @@ -36,14 +36,12 @@ + android:layout_height="wrap_content"> + android:paddingBottom="12dp"> - - + android:layout_height="wrap_content" + style="@style/KeepassDXStyle.Toolbar.Transparent" + app:layout_collapseMode="pin" /> - @@ -81,8 +80,7 @@ @@ -93,8 +91,6 @@ android:layout_height="wrap_content" android:contentDescription="@string/validate" android:src="@drawable/ic_check_white_24dp" - app:tint="?attr/colorOnSecondary" - app:fabSize="mini" app:fabCustomSize="@dimen/button_small_size" app:layout_constraintTop_toTopOf="@+id/entry_edit_bottom_bar" app:layout_constraintBottom_toTopOf="@+id/screenshot_mode_banner" diff --git a/app/src/main/res/layout/activity_file_selection.xml b/app/src/main/res/layout/activity_file_selection.xml index 1cd4bc087..5af9c85a0 100644 --- a/app/src/main/res/layout/activity_file_selection.xml +++ b/app/src/main/res/layout/activity_file_selection.xml @@ -27,11 +27,10 @@ android:importantForAutofill="noExcludeDescendants" tools:targetApi="o"> - + android:layout_height="wrap_content"> - + app:layout_collapseMode="pin"/> @@ -140,6 +137,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:layout_constraintBottom_toTopOf="@+id/screenshot_mode_banner" + android:background="?attr/colorSurface" android:orientation="horizontal" android:weightSum="2"> diff --git a/app/src/main/res/layout/activity_group.xml b/app/src/main/res/layout/activity_group.xml index a50de1cda..639bf826e 100644 --- a/app/src/main/res/layout/activity_group.xml +++ b/app/src/main/res/layout/activity_group.xml @@ -24,27 +24,23 @@ android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" - android:filterTouchesWhenObscured="true" - android:fitsSystemWindows="true"> + android:filterTouchesWhenObscured="true"> - - + style="@style/KeepassDXStyle.Title.OnSurface" /> - + - - + app:layout_constraintTop_toBottomOf="@+id/special_mode_view" + app:layout_constraintBottom_toTopOf="@+id/group_coordinator"> + android:id="@+id/database_color" + android:layout_width="12dp" + android:layout_height="12dp" + android:layout_gravity="center_vertical|start" + android:visibility="gone" + android:src="@drawable/background_rounded_square" + android:contentDescription="@string/content_description_database_color"/> + - + android:layout_height="wrap_content"> - + diff --git a/app/src/main/res/layout/activity_icon_picker.xml b/app/src/main/res/layout/activity_icon_picker.xml index ae77f2592..aa1578622 100644 --- a/app/src/main/res/layout/activity_icon_picker.xml +++ b/app/src/main/res/layout/activity_icon_picker.xml @@ -40,9 +40,8 @@ - + android:layout_height="wrap_content" /> + android:layout_height="wrap_content"> - + android:layout_height="wrap_content" + android:elevation="0dp" + app:elevation="0dp" + app:layout_collapseMode="pin"> - + @@ -112,7 +109,6 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginBottom="12dp" - android:elevation="4dp" app:layout_constraintWidth_percent="@dimen/content_percent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -120,16 +116,17 @@ - + + style="@style/KeepassDXStyle.Cardview.SurfaceContainer.High" + android:layout_margin="16dp"> - + @@ -169,7 +166,8 @@ + android:layout_height="wrap_content" + android:background="?attr/colorSurface"> diff --git a/app/src/main/res/layout/fragment_entry_new_field.xml b/app/src/main/res/layout/fragment_entry_new_field.xml index 5cb3e3528..e81ff2c25 100644 --- a/app/src/main/res/layout/fragment_entry_new_field.xml +++ b/app/src/main/res/layout/fragment_entry_new_field.xml @@ -71,7 +71,6 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - android:theme="?attr/switchAppearance" android:text="@string/protection" /> \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_set_main_credential.xml b/app/src/main/res/layout/fragment_set_main_credential.xml index 6fd0b7f9f..8587daa00 100644 --- a/app/src/main/res/layout/fragment_set_main_credential.xml +++ b/app/src/main/res/layout/fragment_set_main_credential.xml @@ -69,7 +69,6 @@ android:id="@+id/password_checkbox" android:layout_width="match_parent" android:layout_height="wrap_content" - android:theme="?attr/switchAppearance" android:text="@string/password"/> @@ -120,7 +119,6 @@ android:id="@+id/keyfile_checkbox" android:layout_width="match_parent" android:layout_height="wrap_content" - android:theme="?attr/switchAppearance" android:text="@string/entry_keyfile"/> . --> - - - + - - + android:orientation="horizontal" + android:gravity="center" + android:layout_gravity="center" + android:layout_marginHorizontal="5dp" + android:baselineAligned="false"> + + + + + diff --git a/app/src/main/res/layout/item_breadcrumb_important.xml b/app/src/main/res/layout/item_breadcrumb_important.xml new file mode 100644 index 000000000..6860c7481 --- /dev/null +++ b/app/src/main/res/layout/item_breadcrumb_important.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/item_file_info.xml b/app/src/main/res/layout/item_file_info.xml index e984ef17a..d319d907c 100644 --- a/app/src/main/res/layout/item_file_info.xml +++ b/app/src/main/res/layout/item_file_info.xml @@ -25,203 +25,216 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:background="?attr/colorPrimary" - android:elevation="4dp" + android:background="?attr/colorSurface" + android:paddingBottom="8dp" tools:targetApi="lollipop"> - - - - - - - - + + + + + + + + - - - + android:layout_height="wrap_content" + style="@style/KeepassDXStyle.Cardview.Surface" + android:layout_marginHorizontal="@dimen/card_view_margin_horizontal"> + + + + + - + android:layout_height="@dimen/item_file_info_height"> + + - + - + - + - - + + - + - + - - + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_group.xml b/app/src/main/res/layout/item_group.xml deleted file mode 100644 index 9bfc67eb3..000000000 --- a/app/src/main/res/layout/item_group.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - diff --git a/app/src/main/res/layout/nav_header_database.xml b/app/src/main/res/layout/nav_header_database.xml index 9ec685888..2bff74f3d 100644 --- a/app/src/main/res/layout/nav_header_database.xml +++ b/app/src/main/res/layout/nav_header_database.xml @@ -5,11 +5,10 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:background="?attr/colorPrimary" + android:background="?attr/colorSurface" android:gravity="bottom" android:orientation="vertical" android:layout_marginBottom="6dp" - android:elevation="4dp" android:paddingTop="36dp" android:paddingLeft="@dimen/default_margin" android:paddingRight="@dimen/default_margin" @@ -26,7 +25,7 @@ android:paddingLeft="8dp" android:paddingEnd="8dp" android:paddingRight="8dp" - style="@style/KeepassDXStyle.TextAppearance.Secondary.TextOnPrimary" + style="@style/KeepassDXStyle.Text.Info.OnSurface" android:textSize="11sp" tools:text="version" android:textIsSelectable="true" /> @@ -70,7 +69,7 @@ diff --git a/app/src/main/res/layout/pref_dialog_input_text.xml b/app/src/main/res/layout/pref_dialog_input_text.xml index 8d9c15a95..17feef324 100644 --- a/app/src/main/res/layout/pref_dialog_input_text.xml +++ b/app/src/main/res/layout/pref_dialog_input_text.xml @@ -43,7 +43,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/enable" - android:theme="?attr/switchAppearance" app:layout_constraintTop_toBottomOf="@+id/explanation_text" app:layout_constraintStart_toStartOf="parent" android:minHeight="48dp"/> diff --git a/app/src/main/res/layout/pref_dialog_text.xml b/app/src/main/res/layout/pref_dialog_text.xml index ca3ecadcb..51e484a30 100644 --- a/app/src/main/res/layout/pref_dialog_text.xml +++ b/app/src/main/res/layout/pref_dialog_text.xml @@ -42,7 +42,6 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/enable" - android:theme="?attr/switchAppearance" app:layout_constraintTop_toBottomOf="@+id/explanation_text" app:layout_constraintStart_toStartOf="parent" android:minHeight="48dp"/> diff --git a/app/src/main/res/layout/preference_material_switch.xml b/app/src/main/res/layout/preference_material_switch.xml index 8910bf5cb..1f03ffdcb 100644 --- a/app/src/main/res/layout/preference_material_switch.xml +++ b/app/src/main/res/layout/preference_material_switch.xml @@ -4,7 +4,6 @@ android:id="@+id/switchWidget" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:theme="?attr/switchAppearance" android:focusable="false" android:clickable="false" android:background="@null" /> \ No newline at end of file diff --git a/app/src/main/res/layout/toolbar_default.xml b/app/src/main/res/layout/toolbar_default.xml index d3bd36aa1..9225a7583 100644 --- a/app/src/main/res/layout/toolbar_default.xml +++ b/app/src/main/res/layout/toolbar_default.xml @@ -17,14 +17,9 @@ You should have received a copy of the GNU General Public License along with KeePassDX. If not, see . --> - \ No newline at end of file + android:layout_height="wrap_content" /> \ No newline at end of file diff --git a/app/src/main/res/layout/view_button_add_node.xml b/app/src/main/res/layout/view_button_add_node.xml index 303b38a5f..2232c2433 100644 --- a/app/src/main/res/layout/view_button_add_node.xml +++ b/app/src/main/res/layout/view_button_add_node.xml @@ -18,7 +18,6 @@ along with KeePassDX. If not, see . --> - - + style="@style/KeepassDXStyle.Fab.Menu" + android:text="@string/add_entry" /> - - + style="@style/KeepassDXStyle.Fab.Menu" + android:text="@string/add_group"/> \ No newline at end of file diff --git a/app/src/main/res/layout/view_button_lock.xml b/app/src/main/res/layout/view_button_lock.xml index f585c4a4d..a37e1d097 100644 --- a/app/src/main/res/layout/view_button_lock.xml +++ b/app/src/main/res/layout/view_button_lock.xml @@ -10,8 +10,6 @@ style="@style/KeepassDXStyle.Fab.Special" android:layout_width="wrap_content" android:layout_height="wrap_content" - app:fabSize="mini" - app:fabCustomSize="@dimen/button_small_size" app:useCompatPadding="false" android:layout_margin="8dp" android:contentDescription="@string/lock" diff --git a/app/src/main/res/layout/view_edit_date_time.xml b/app/src/main/res/layout/view_edit_date_time.xml index a357e311d..997d080da 100644 --- a/app/src/main/res/layout/view_edit_date_time.xml +++ b/app/src/main/res/layout/view_edit_date_time.xml @@ -36,6 +36,5 @@ android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="@+id/expiration_label" app:layout_constraintBottom_toBottomOf="@+id/expiration_label" - android:theme="?attr/switchAppearance" app:layout_constraintEnd_toEndOf="parent"/> \ No newline at end of file diff --git a/app/src/main/res/layout/view_main_credentials.xml b/app/src/main/res/layout/view_main_credentials.xml index 49af082a7..876e54a3b 100644 --- a/app/src/main/res/layout/view_main_credentials.xml +++ b/app/src/main/res/layout/view_main_credentials.xml @@ -27,8 +27,7 @@ android:layout_height="wrap_content" android:layout_toStartOf="@+id/password_checkbox" android:layout_toLeftOf="@+id/password_checkbox" - app:endIconMode="password_toggle" - app:endIconTint="?attr/colorSecondary"> + app:endIconMode="password_toggle"> @@ -90,7 +88,6 @@ android:layout_marginStart="12dp" android:layout_marginLeft="12dp" android:contentDescription="@string/content_description_keyfile_checkbox" - android:theme="?attr/switchAppearance" android:focusable="false" android:gravity="center_vertical" /> @@ -122,7 +119,6 @@ android:layout_marginStart="12dp" android:layout_marginLeft="12dp" android:contentDescription="@string/content_description_hardware_key_checkbox" - android:theme="?attr/switchAppearance" android:focusable="false" android:gravity="center_vertical" /> diff --git a/app/src/main/res/layout/view_search_filters.xml b/app/src/main/res/layout/view_search_filters.xml index 3565d8fc3..31b4a6a2d 100644 --- a/app/src/main/res/layout/view_search_filters.xml +++ b/app/src/main/res/layout/view_search_filters.xml @@ -5,13 +5,12 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:filterTouchesWhenObscured="true" - android:minHeight="?attr/actionBarSize" android:orientation="vertical"> + app:tint="?attr/colorOnSurface"/> - + + + - - - - diff --git a/app/src/main/res/values-v21/styles_divine.xml b/app/src/main/res/values-v21/styles_divine.xml index 450665471..30e5ba201 100644 --- a/app/src/main/res/values-v21/styles_divine.xml +++ b/app/src/main/res/values-v21/styles_divine.xml @@ -18,17 +18,11 @@ along with KeePassDX. If not, see . --> - - diff --git a/app/src/main/res/values-v23/styles.xml b/app/src/main/res/values-v23/styles.xml index fc794faf4..1165f14be 100644 --- a/app/src/main/res/values-v23/styles.xml +++ b/app/src/main/res/values-v23/styles.xml @@ -19,11 +19,11 @@ --> - + diff --git a/app/src/main/res/values-v23/styles_divine.xml b/app/src/main/res/values-v23/styles_divine.xml deleted file mode 100644 index 4b5fef5fd..000000000 --- a/app/src/main/res/values-v23/styles_divine.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - diff --git a/app/src/main/res/values-v27/styles.xml b/app/src/main/res/values-v27/styles.xml index 9b4b8f5c7..e0d3a8db2 100644 --- a/app/src/main/res/values-v27/styles.xml +++ b/app/src/main/res/values-v27/styles.xml @@ -19,11 +19,11 @@ --> diff --git a/app/src/main/res/values-v27/styles_divine.xml b/app/src/main/res/values-v27/styles_divine.xml deleted file mode 100644 index 251346395..000000000 --- a/app/src/main/res/values-v27/styles_divine.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 7b7f09221..25cfeffc9 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -18,12 +18,8 @@ along with KeePassDX. If not, see . --> - - - - - - + + @@ -31,7 +27,6 @@ - diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 484161cc2..bdc6eec81 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -125,4 +125,66 @@ #27343A #414445 + + #006E1C + #FFFFFF + #98F994 + #002204 + #8F4E00 + #FFFFFF + #FFDCC2 + #2E1500 + #835500 + #FFFFFF + #FFDDB4 + #291800 + #BA1A1A + #FFDAD6 + #FFFFFF + #410002 + #FCFDF6 + #1A1C19 + #FCFDF6 + #1A1C19 + #DEE5D8 + #424940 + #72796F + #F0F1EB + #2F312D + #7DDC7A + #000000 + #006E1C + #C2C9BD + #000000 + #7DDC7A + #00390A + #005313 + #98F994 + #FFB77B + #4C2700 + #6D3A00 + #FFDCC2 + #FFB953 + #452B00 + #633F00 + #FFDDB4 + #FFB4AB + #93000A + #690005 + #FFDAD6 + #1A1C19 + #E2E3DD + #1A1C19 + #E2E3DD + #424940 + #C2C9BD + #8C9388 + #1A1C19 + #E2E3DD + #006E1C + #000000 + #7DDC7A + #424940 + #000000 + diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index b56725db6..e991b4113 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -33,7 +33,9 @@ 48dp 0dp 1 - 160dp 16dp + 12dp + 48dp + 48dp 260 \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index ca3f0ac27..d59fa5e2b 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -27,7 +27,7 @@ - - - - - - - - - - - - - - - - - - - - - + - - - + - - - - - + + + + + + + + + @@ -441,27 +397,39 @@ ?attr/colorOnPrimary 8dp - - + + - - + + - - + + + @@ -602,22 +576,15 @@ - - - - diff --git a/app/src/main/res/values/styles_classic.xml b/app/src/main/res/values/styles_classic.xml index b81ccb2a7..13b52253f 100644 --- a/app/src/main/res/values/styles_classic.xml +++ b/app/src/main/res/values/styles_classic.xml @@ -37,11 +37,9 @@ @color/cyan_lightest @color/cyan_lightest @color/white_darkest - @color/grey_light - @style/KeepassDXStyle.Toolbar.Clear - @style/KeepassDXStyle.Toolbar.Home.Clear - @style/KeepassDXStyle.Toolbar.Special.Clear - @style/KeepassDXStyle.Toolbar.Action.Clear + @style/KeepassDXStyle.Toolbar.Clear + @style/KeepassDXStyle.Toolbar.Special.Clear + @style/KeepassDXStyle.Toolbar.Action.Clear @style/KeepassDXStyle.Toolbar.Popup.Clear @style/KeepassDXStyle.Clear.Dialog @style/KeepassDXStyle.Clear.Dialog @@ -61,8 +59,6 @@ @color/text_color_light @color/white_darkest @color/white_grey_lighter - - @style/KeepassDXStyle.Switch.Clear - - - @@ -126,10 +115,9 @@ @color/cyan_lightest @color/white_dark @color/black - @style/KeepassDXStyle.Toolbar.Dark - @style/KeepassDXStyle.Toolbar.Home.Dark - @style/KeepassDXStyle.Toolbar.Special.Dark - @style/KeepassDXStyle.Toolbar.Action.Dark + @style/KeepassDXStyle.Toolbar.Dark + @style/KeepassDXStyle.Toolbar.Special.Dark + @style/KeepassDXStyle.Toolbar.Action.Dark @style/KeepassDXStyle.Dark.Dialog @style/KeepassDXStyle.Dark.Dialog @style/KeepassDXStyle.Cardview.Dark @@ -140,8 +128,6 @@ @color/white @color/black_lighter @color/grey_darker - - @style/KeepassDXStyle.Switch.Dark - - - @@ -184,21 +163,4 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_divine.xml b/app/src/main/res/values/styles_divine.xml index c403c6d9d..b35efdef1 100644 --- a/app/src/main/res/values/styles_divine.xml +++ b/app/src/main/res/values/styles_divine.xml @@ -19,31 +19,25 @@ --> - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_kunzite.xml b/app/src/main/res/values/styles_kunzite.xml index 1b84baa56..72b537e7c 100644 --- a/app/src/main/res/values/styles_kunzite.xml +++ b/app/src/main/res/values/styles_kunzite.xml @@ -35,10 +35,9 @@ @color/purple_lighter @color/purple_lighter @color/white_purple - @style/KeepassDXStyle.Toolbar.Purple - @style/KeepassDXStyle.Toolbar.Home.Purple - @style/KeepassDXStyle.Toolbar.Special.Purple - @style/KeepassDXStyle.Toolbar.Action.Purple + @style/KeepassDXStyle.Toolbar.Purple + @style/KeepassDXStyle.Toolbar.Special.Purple + @style/KeepassDXStyle.Toolbar.Action.Purple @style/KeepassDXStyle.Toolbar.Popup.Purple @style/KeepassDXStyle.Purple.Dialog @style/KeepassDXStyle.Purple.Dialog @@ -50,8 +49,6 @@ @color/white_purple_light @color/purple_light @color/purple - - @style/KeepassDXStyle.Switch.Purple - - - @@ -119,11 +109,9 @@ @color/purple_lighter @color/purple_lighter @color/black_purple_dark - @color/white - @style/KeepassDXStyle.Toolbar.Purple.Dark - @style/KeepassDXStyle.Toolbar.Home.Purple.Dark - @style/KeepassDXStyle.Toolbar.Special.Purple.Dark - @style/KeepassDXStyle.Toolbar.Action.Purple.Dark + @style/KeepassDXStyle.Toolbar.Purple.Dark + @style/KeepassDXStyle.Toolbar.Special.Purple.Dark + @style/KeepassDXStyle.Toolbar.Action.Purple.Dark @style/KeepassDXStyle.Toolbar.Popup.Purple.Dark @style/KeepassDXStyle.Purple.Dark.Dialog @style/KeepassDXStyle.Purple.Dark.Dialog @@ -135,8 +123,6 @@ @color/white_purple_light @color/purple_dark @color/purple_darker - - @style/KeepassDXStyle.Switch.Purple.Dark - - - @@ -186,21 +165,4 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_moon.xml b/app/src/main/res/values/styles_moon.xml index de47f46b8..cb2bbebdb 100644 --- a/app/src/main/res/values/styles_moon.xml +++ b/app/src/main/res/values/styles_moon.xml @@ -35,11 +35,9 @@ @color/blue_white_dark @color/blue_white_dark @color/blue_white - @color/white - @style/KeepassDXStyle.Toolbar.Blue - @style/KeepassDXStyle.Toolbar.Home.Blue - @style/KeepassDXStyle.Toolbar.Special.Blue - @style/KeepassDXStyle.Toolbar.Action.Blue + @style/KeepassDXStyle.Toolbar.Blue + @style/KeepassDXStyle.Toolbar.Special.Blue + @style/KeepassDXStyle.Toolbar.Action.Blue @style/KeepassDXStyle.Blue.Dialog @style/KeepassDXStyle.Blue.Dialog @style/KeepassDXStyle.Cardview.Blue @@ -49,8 +47,6 @@ @color/white @color/blue_light @color/blue - - @style/KeepassDXStyle.Switch.Blue - - - @@ -111,10 +100,9 @@ @color/blue_white_dark @color/blue_white_dark @color/blue_black_dark - @style/KeepassDXStyle.Toolbar.Blue.Night - @style/KeepassDXStyle.Toolbar.Home.Blue.Night - @style/KeepassDXStyle.Toolbar.Special.Blue.Night - @style/KeepassDXStyle.Toolbar.Action.Blue.Night + @style/KeepassDXStyle.Toolbar.Blue.Night + @style/KeepassDXStyle.Toolbar.Special.Blue.Night + @style/KeepassDXStyle.Toolbar.Action.Blue.Night @style/KeepassDXStyle.Blue.Night.Dialog @style/KeepassDXStyle.Blue.Night.Dialog @style/KeepassDXStyle.Cardview.Blue.Night @@ -124,8 +112,6 @@ @color/white @color/blue_light @color/blue - - @style/KeepassDXStyle.Switch.Blue.Night - - - @@ -174,19 +153,4 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_reply.xml b/app/src/main/res/values/styles_reply.xml index a82763b93..45baa00f2 100644 --- a/app/src/main/res/values/styles_reply.xml +++ b/app/src/main/res/values/styles_reply.xml @@ -35,11 +35,9 @@ @color/reply_orange @color/reply_orange @color/reply_blue_lighter - @color/reply_blue_light - @style/KeepassDXStyle.Toolbar.Reply - @style/KeepassDXStyle.Toolbar.Home.Reply - @style/KeepassDXStyle.Toolbar.Special.Reply - @style/KeepassDXStyle.Toolbar.Action.Reply + @style/KeepassDXStyle.Toolbar.Reply + @style/KeepassDXStyle.Toolbar.Special.Reply + @style/KeepassDXStyle.Toolbar.Action.Reply @style/KeepassDXStyle.Toolbar.Popup.Reply @style/KeepassDXStyle.Reply.Dialog @style/KeepassDXStyle.Reply.Dialog @@ -50,8 +48,6 @@ @color/reply_black @color/reply_orange @color/reply_blue_light - - @style/KeepassDXStyle.Switch.Reply - - - @@ -120,10 +109,9 @@ @color/reply_blue_light @color/reply_blue_light @color/reply_black - @style/KeepassDXStyle.Toolbar.Reply.Night - @style/KeepassDXStyle.Toolbar.Home.Reply.Night - @style/KeepassDXStyle.Toolbar.Special.Reply.Night - @style/KeepassDXStyle.Toolbar.Action.Reply.Night + @style/KeepassDXStyle.Toolbar.Reply.Night + @style/KeepassDXStyle.Toolbar.Special.Reply.Night + @style/KeepassDXStyle.Toolbar.Action.Reply.Night @style/KeepassDXStyle.Toolbar.Popup.Reply.Night @style/KeepassDXStyle.Reply.Night.Dialog @style/KeepassDXStyle.Reply.Night.Dialog @@ -135,8 +123,6 @@ @color/reply_black @color/reply_orange @color/reply_blue_light - - @style/KeepassDXStyle.Switch.Reply.Night - - - @@ -186,21 +165,4 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_simple.xml b/app/src/main/res/values/styles_simple.xml index d4d7137b1..dff9ecaa9 100644 --- a/app/src/main/res/values/styles_simple.xml +++ b/app/src/main/res/values/styles_simple.xml @@ -37,11 +37,9 @@ @color/grey @color/grey @color/white_slight - @color/grey_light - @style/KeepassDXStyle.Toolbar.Simple - @style/KeepassDXStyle.Toolbar.Home.Simple - @style/KeepassDXStyle.Toolbar.Special.Simple - @style/KeepassDXStyle.Toolbar.Action.Simple + @style/KeepassDXStyle.Toolbar.Simple + @style/KeepassDXStyle.Toolbar.Special.Simple + @style/KeepassDXStyle.Toolbar.Action.Simple @style/KeepassDXStyle.Toolbar.Popup.Simple @style/KeepassDXStyle.Simple.Dialog @style/KeepassDXStyle.Simple.Dialog @@ -61,8 +59,6 @@ @color/text_color_light @color/blue_white @color/white_dark - - @style/KeepassDXStyle.Switch.Simple - - - @@ -126,10 +115,9 @@ @color/white @color/white_dark @color/grey_slight - @style/KeepassDXStyle.Toolbar.Simple.Night - @style/KeepassDXStyle.Toolbar.Home.Simple.Night - @style/KeepassDXStyle.Toolbar.Special.Simple.Night - @style/KeepassDXStyle.Toolbar.Action.Simple.Night + @style/KeepassDXStyle.Toolbar.Simple.Night + @style/KeepassDXStyle.Toolbar.Special.Simple.Night + @style/KeepassDXStyle.Toolbar.Action.Simple.Night @style/KeepassDXStyle.Simple.Night.Dialog @style/KeepassDXStyle.Simple.Night.Dialog @style/KeepassDXStyle.Cardview.Simple.Night @@ -140,8 +128,6 @@ @color/white @color/grey_black_slight @color/grey_darker - - @style/KeepassDXStyle.Switch.Simple.Night - - - @@ -184,21 +163,4 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles_sun.xml b/app/src/main/res/values/styles_sun.xml index 087d6abd1..39ff8702f 100644 --- a/app/src/main/res/values/styles_sun.xml +++ b/app/src/main/res/values/styles_sun.xml @@ -35,11 +35,9 @@ @color/red_lightest @color/red_lightest @color/red_white_light - @color/white - @style/KeepassDXStyle.Toolbar.Red - @style/KeepassDXStyle.Toolbar.Home.Red - @style/KeepassDXStyle.Toolbar.Special.Red - @style/KeepassDXStyle.Toolbar.Action.Red + @style/KeepassDXStyle.Toolbar.Red + @style/KeepassDXStyle.Toolbar.Special.Red + @style/KeepassDXStyle.Toolbar.Action.Red @style/KeepassDXStyle.Red.Dialog @style/KeepassDXStyle.Red.Dialog @style/KeepassDXStyle.Cardview.Red @@ -49,8 +47,6 @@ @color/white @color/red_lighter @color/red - - @style/KeepassDXStyle.Switch.Red - - - @@ -110,10 +99,9 @@ @color/red_lightest @color/red_lightest @color/red_black_dark - @style/KeepassDXStyle.Toolbar.Red.Night - @style/KeepassDXStyle.Toolbar.Home.Red.Night - @style/KeepassDXStyle.Toolbar.Special.Red.Night - @style/KeepassDXStyle.Toolbar.Action.Red.Night + @style/KeepassDXStyle.Toolbar.Red.Night + @style/KeepassDXStyle.Toolbar.Special.Red.Night + @style/KeepassDXStyle.Toolbar.Action.Red.Night @style/KeepassDXStyle.Red.Night.Dialog @style/KeepassDXStyle.Red.Night.Dialog @style/KeepassDXStyle.Cardview.Red.Night @@ -123,8 +111,6 @@ @color/white @color/red_lighter @color/red - - @style/KeepassDXStyle.Switch.Red.Night - - - @@ -173,21 +152,4 @@ - - - \ No newline at end of file