Add color scheme backup / restore

This commit is contained in:
MM20
2023-08-26 18:52:35 +02:00
parent f223e9307d
commit ff7a72f7c4
9 changed files with 75 additions and 8 deletions
@@ -24,4 +24,10 @@ interface ThemeDao {
@Query("DELETE FROM Theme WHERE id = :id")
suspend fun delete(id: UUID)
@Query("DELETE FROM Theme")
suspend fun deleteAll()
@Insert
fun insertAll(themes: List<ThemeEntity>)
}
@@ -694,6 +694,7 @@
<string name="backup_component_settings">Settings</string>
<string name="backup_component_websearches">Web search shortcuts</string>
<string name="backup_component_searchactions">Quick actions</string>
<string name="backup_component_themes">Color schemes</string>
<string name="backup_component_widgets">Built-in widgets</string>
<string name="backup_component_customizations">Customizations</string>
<string name="backup_complete">The backup has been completed.</string>