feat(settings): badge dictionaries that have updates
Report which sources have a newer file instead of a single flag, and show a Material badge at the top-end corner of each such dictionary's icon. The section icon carries the badge while the section is collapsed.
This commit is contained in:
1 parent
c9d1a3439c
commit
911e8b61f6
10 files changed
+120
-76
No files matched your search
@@ -7,7 +7,7 @@ sealed interface DictionaryStatus {
|
||||
data object Unknown : DictionaryStatus
|
||||
data object Checking : DictionaryStatus
|
||||
data object UpToDate : DictionaryStatus
|
||||
data object NeedsUpdate : DictionaryStatus
|
||||
data class NeedsUpdate(val sourceIds: Set<String>) : DictionaryStatus
|
||||
data object Empty : DictionaryStatus
|
||||
data class Error(val message: String) : DictionaryStatus
|
||||
}
|
||||
Reference in new issue
Block a user