Loading presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt +7 −8 Original line number Diff line number Diff line Loading @@ -139,13 +139,11 @@ class MainActivity : QkThemedActivity(), MainView { } (syncing as? ViewStub)?.setOnInflateListener { _, _ -> syncingProgress?.progressTintList = ColorStateList.valueOf(getColor(R.color.tools_theme)) syncingProgress?.indeterminateTintList = ColorStateList.valueOf(getColor(R.color.tools_theme)) syncingProgress?.progressTintList = ColorStateList.valueOf(theme.blockingFirst().theme) syncingProgress?.indeterminateTintList = ColorStateList.valueOf(theme.blockingFirst().theme) } toggle.syncState() toolbar.setNavigationIcon(lineageos.platform.R.drawable.ic_hamburger) toolbar.navigationIcon?.setTint(resources.getColor(R.color.tools_theme)) toolbar.setNavigationOnClickListener { dismissKeyboard() homeIntent.onNext(Unit) Loading Loading @@ -185,7 +183,8 @@ class MainActivity : QkThemedActivity(), MainView { compose.setBackgroundTint(theme.theme) // Set the FAB compose icon color compose.setTint(getColor(R.color.tools_theme)) compose.setTint(theme.textPrimary) } // These theme attributes don't apply themselves on API 21 if (Build.VERSION.SDK_INT <= 22) { Loading Loading @@ -381,7 +380,7 @@ class MainActivity : QkThemedActivity(), MainView { override fun showDeleteDialog(conversations: List<Long>) { val count = conversations.size AlertDialog.Builder(this, R.style.customAlertDialog) AlertDialog.Builder(this) .setTitle(R.string.dialog_delete_title) .setMessage(resources.getQuantityString(R.plurals.dialog_delete_message, count, count)) .setPositiveButton(R.string.button_delete) { _, _ -> confirmDeleteIntent.onNext(conversations) } Loading @@ -396,7 +395,7 @@ class MainActivity : QkThemedActivity(), MainView { override fun showArchivedSnackbar() { Snackbar.make(drawerLayout, R.string.toast_archived, Snackbar.LENGTH_LONG).apply { setAction(R.string.button_undo) { undoArchiveIntent.onNext(Unit) } setActionTextColor(getColor(R.color.tools_theme)) setActionTextColor(colors.theme().theme) show() } } Loading presentation/src/main/res/values/strings.xml +20 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ <string name="title_archived">Archived</string> <string name="title_settings">Settings</string> <string name="title_notification_prefs">Notifications</string> <string name="title_theme">Theme</string> <string name="title_conversations">Search inbox…</string> <string name="title_compose">Type a name or number</string> Loading Loading @@ -102,6 +103,7 @@ <string name="compose_vcard_label">Contact card</string> <string name="compose_scheduled_for">Scheduled for</string> <string name="compose_scheduled_future">Selected time must be in the future!</string> <string name="compose_scheduled_plus">You must unlock QKSMS+ to use scheduled messaging</string> <string name="compose_scheduled_toast">Added to scheduled messages</string> <string name="compose_hint">Write a message…</string> <string name="compose_menu_copy">Copy text</string> Loading Loading @@ -140,6 +142,7 @@ <string name="info_copied_address">Address copied</string> <string name="info_name">Conversation title</string> <string name="info_notifications">Notifications</string> <string name="info_theme">Theme</string> <string name="info_archive">Archive</string> <string name="info_unarchive">Unarchive</string> <string name="info_block">Block</string> Loading @@ -157,6 +160,7 @@ <string name="backup_never">Never</string> <string name="backup_restore_title">Restore</string> <string name="backup_restore_summary">Select a backup</string> <string name="backup_restore_error_plus">Please unlock QKSMS+ to use backup and restore</string> <string name="backup_restore_error_backup">Backup in progress…</string> <string name="backup_restore_error_restore">Restore in progress…</string> <string name="backup_restore_confirm_title">Restore from backup</string> Loading Loading @@ -199,6 +203,7 @@ <string name="settings_category_general">General</string> <string name="settings_category_qkreply">QK Reply</string> <string name="settings_theme_title">Theme</string> <string name="settings_night_title">Night mode</string> <string name="settings_black_title">Pure black night mode</string> <string name="settings_night_start_title">Start time</string> Loading Loading @@ -312,6 +317,13 @@ <string name="about_source_title">Source code</string> <string name="about_license_title">License</string> <string name="about_copyright_title">Copyright</string> <string name="about_developer_title">Developer</string> <string name="about_changelog_title">Changelog</string> <string name="about_contact_title">Contact</string> <string name="app_info_title">Message Information</string> <string name="app_version_title">App Version</string> <string name="app_info" translatable="false">- Message is an open source replacement to the stock messaging app on Android.</string> Loading Loading @@ -365,6 +377,12 @@ <string name="qkreply_menu_collapse">Show less</string> <string name="qkreply_menu_view">Open conversation</string> <string name="theme_material">Material</string> <string name="theme_plus" translatable="false">QKSMS+</string> <string name="theme_hex">HEX</string> <string name="theme_apply">Apply</string> <string name="about_developer" translatable="false">Moez Bhatti</string> <string name="about_source" translatable="false">https://github.com/moezbhatti/qksms</string> <string name="about_changelog" translatable="false">https://github.com/moezbhatti/qksms/releases</string> Loading Loading @@ -476,6 +494,8 @@ </string-array> <string name="about_author_title">Authors</string> <string name="drawer_plus_banner_title" translatable="false">QKSMS+</string> <string name="drawer_plus_banner_summary">Unlock amazing new features, and support development</string> <string name="rate_title">Enjoying QKSMS?</string> Loading Loading
presentation/src/main/java/com/moez/QKSMS/feature/main/MainActivity.kt +7 −8 Original line number Diff line number Diff line Loading @@ -139,13 +139,11 @@ class MainActivity : QkThemedActivity(), MainView { } (syncing as? ViewStub)?.setOnInflateListener { _, _ -> syncingProgress?.progressTintList = ColorStateList.valueOf(getColor(R.color.tools_theme)) syncingProgress?.indeterminateTintList = ColorStateList.valueOf(getColor(R.color.tools_theme)) syncingProgress?.progressTintList = ColorStateList.valueOf(theme.blockingFirst().theme) syncingProgress?.indeterminateTintList = ColorStateList.valueOf(theme.blockingFirst().theme) } toggle.syncState() toolbar.setNavigationIcon(lineageos.platform.R.drawable.ic_hamburger) toolbar.navigationIcon?.setTint(resources.getColor(R.color.tools_theme)) toolbar.setNavigationOnClickListener { dismissKeyboard() homeIntent.onNext(Unit) Loading Loading @@ -185,7 +183,8 @@ class MainActivity : QkThemedActivity(), MainView { compose.setBackgroundTint(theme.theme) // Set the FAB compose icon color compose.setTint(getColor(R.color.tools_theme)) compose.setTint(theme.textPrimary) } // These theme attributes don't apply themselves on API 21 if (Build.VERSION.SDK_INT <= 22) { Loading Loading @@ -381,7 +380,7 @@ class MainActivity : QkThemedActivity(), MainView { override fun showDeleteDialog(conversations: List<Long>) { val count = conversations.size AlertDialog.Builder(this, R.style.customAlertDialog) AlertDialog.Builder(this) .setTitle(R.string.dialog_delete_title) .setMessage(resources.getQuantityString(R.plurals.dialog_delete_message, count, count)) .setPositiveButton(R.string.button_delete) { _, _ -> confirmDeleteIntent.onNext(conversations) } Loading @@ -396,7 +395,7 @@ class MainActivity : QkThemedActivity(), MainView { override fun showArchivedSnackbar() { Snackbar.make(drawerLayout, R.string.toast_archived, Snackbar.LENGTH_LONG).apply { setAction(R.string.button_undo) { undoArchiveIntent.onNext(Unit) } setActionTextColor(getColor(R.color.tools_theme)) setActionTextColor(colors.theme().theme) show() } } Loading
presentation/src/main/res/values/strings.xml +20 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ <string name="title_archived">Archived</string> <string name="title_settings">Settings</string> <string name="title_notification_prefs">Notifications</string> <string name="title_theme">Theme</string> <string name="title_conversations">Search inbox…</string> <string name="title_compose">Type a name or number</string> Loading Loading @@ -102,6 +103,7 @@ <string name="compose_vcard_label">Contact card</string> <string name="compose_scheduled_for">Scheduled for</string> <string name="compose_scheduled_future">Selected time must be in the future!</string> <string name="compose_scheduled_plus">You must unlock QKSMS+ to use scheduled messaging</string> <string name="compose_scheduled_toast">Added to scheduled messages</string> <string name="compose_hint">Write a message…</string> <string name="compose_menu_copy">Copy text</string> Loading Loading @@ -140,6 +142,7 @@ <string name="info_copied_address">Address copied</string> <string name="info_name">Conversation title</string> <string name="info_notifications">Notifications</string> <string name="info_theme">Theme</string> <string name="info_archive">Archive</string> <string name="info_unarchive">Unarchive</string> <string name="info_block">Block</string> Loading @@ -157,6 +160,7 @@ <string name="backup_never">Never</string> <string name="backup_restore_title">Restore</string> <string name="backup_restore_summary">Select a backup</string> <string name="backup_restore_error_plus">Please unlock QKSMS+ to use backup and restore</string> <string name="backup_restore_error_backup">Backup in progress…</string> <string name="backup_restore_error_restore">Restore in progress…</string> <string name="backup_restore_confirm_title">Restore from backup</string> Loading Loading @@ -199,6 +203,7 @@ <string name="settings_category_general">General</string> <string name="settings_category_qkreply">QK Reply</string> <string name="settings_theme_title">Theme</string> <string name="settings_night_title">Night mode</string> <string name="settings_black_title">Pure black night mode</string> <string name="settings_night_start_title">Start time</string> Loading Loading @@ -312,6 +317,13 @@ <string name="about_source_title">Source code</string> <string name="about_license_title">License</string> <string name="about_copyright_title">Copyright</string> <string name="about_developer_title">Developer</string> <string name="about_changelog_title">Changelog</string> <string name="about_contact_title">Contact</string> <string name="app_info_title">Message Information</string> <string name="app_version_title">App Version</string> <string name="app_info" translatable="false">- Message is an open source replacement to the stock messaging app on Android.</string> Loading Loading @@ -365,6 +377,12 @@ <string name="qkreply_menu_collapse">Show less</string> <string name="qkreply_menu_view">Open conversation</string> <string name="theme_material">Material</string> <string name="theme_plus" translatable="false">QKSMS+</string> <string name="theme_hex">HEX</string> <string name="theme_apply">Apply</string> <string name="about_developer" translatable="false">Moez Bhatti</string> <string name="about_source" translatable="false">https://github.com/moezbhatti/qksms</string> <string name="about_changelog" translatable="false">https://github.com/moezbhatti/qksms/releases</string> Loading Loading @@ -476,6 +494,8 @@ </string-array> <string name="about_author_title">Authors</string> <string name="drawer_plus_banner_title" translatable="false">QKSMS+</string> <string name="drawer_plus_banner_summary">Unlock amazing new features, and support development</string> <string name="rate_title">Enjoying QKSMS?</string> Loading