diff --git a/README.md b/README.md index ee2f9d4..ffd0312 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ # Stack-Theme-Selector-Server -This is the repository for the Stack Theme Selector Server. This server is used to provide the theme selector for the Stack Wallet. \ No newline at end of file +This is the repository for the Stack Theme Selector Server. This server is used to provide the theme selector for the Stack Wallet. + + +## Creating a theme (WIP) +- Theme id must be unique +- Theme zip file name must be the theme id +- The [themes.json](data/themes.json) file must be updated with (at least) the theme id and the sha256 hash of the zip file +- The `previewImageUrl` should point to an image located in [data/previews](data/previews) +- The preview image should match the preview image in the theme zip file +- See the current [Model](https://github.com/cypherstack/stack_wallet/blob/themes/lib/models/isar/stack_theme.dart) for minimum theme requirements (subject to change) + +## Editing a theme +- Extract zip of theme and make any changes +- Create new archive +- Update [themes.json](data/themes.json) file diff --git a/data/themes.json b/data/themes.json index 1ac5602..877468e 100644 --- a/data/themes.json +++ b/data/themes.json @@ -3,64 +3,64 @@ { "name": "Chan", "id": "chan", - "sha256": "b252dc551c292fb70984e05f48758547ffd417185c7eb810d4eae42ae94b7fe3", - "size": "61.8 MB", + "sha256": "52d5ac40dc9754c9fee6a7ce6db1b101810a11bc9f17e4d33020122d0aab5096", + "size": "~62.4 MB", "previewImageUrl": "https://themes.stackwallet.com/previews/chan-theme.png" }, - { - "name": "Chan Dark", - "id": "dark_chan", - "sha256": "0d599eae5200c02df42e45cfa1bc016f6e2d8a5fa771e54c08a59cb4d1f8d2c3", - "size": "61.8 MB", - "previewImageUrl": "https://themes.stackwallet.com/previews/darkchans-theme.png" - }, { "name": "Dark", "id": "dark", - "sha256": "12699563c238b04af9576ffdf6c3e57587fa697faf860f3792fcecd45d3178ac", - "size": "475.8 kB", + "sha256": "5d72cbe6ff085dcaea3412987275cf1ddb1187153c8f0466b95e32dfd01a44d0", + "size": "~528.9 kB", "previewImageUrl": "https://themes.stackwallet.com/previews/dark-theme.png" }, + { + "name": "Dark Chan", + "id": "dark_chan", + "sha256": "2eb2b4b252fab617f3adcfea1d7c910d20202dc2785d28f114b1fe65cbfeebeb", + "size": "~62.2 MB", + "previewImageUrl": "https://themes.stackwallet.com/previews/darkchans-theme.png" + }, { "name": "Forest", "id": "forest", - "sha256": "23c72db0989efe705a77a46d60e60252ae8a49df5b5774896a0f3f6c6fdc3c4f", - "size": "762.7 kB", + "sha256": "57981f8822a6eb9ea0f0bcbc0f7b4cc5c5ed498c5fed90ed2d63d3e8df204b6e", + "size": "~931.6 kB", "previewImageUrl": "https://themes.stackwallet.com/previews/forest-theme.png" }, { "name": "Fruit Sorbet", "id": "fruit_sorbet", - "sha256": "053b434ab6ba79d2e113aa484eb73e0bc2439c22a62e56d8edf25dd5edc2970c", - "size": "582.9 kB", + "sha256": "306f3bc92c40dee578f5ba533b0f31eff2e4ad8f883fcdf8bf737b4ae1289fdc", + "size": "~705.3 kB", "previewImageUrl": "https://themes.stackwallet.com/previews/fruit-sorbet.png" }, { "name": "Light", "id": "light", - "sha256": "0e17e6caccf4b0561786f6cd59c94777157ee4570ec7b83a2fc7a3720a291d7f", - "size": "474.9 kB", + "sha256": "fb0c9dcd428bad71286e4a471492b3a0848dd9353135f23c891962c169207bcf", + "size": "~476.8 kB", "previewImageUrl": "" }, { "name": "Ocean Breeze", "id": "ocean_breeze", - "sha256": "f9e64cf9855d4dd22201b7686ffc68936b500b034527f0d0006f1dbc8f5a6472", - "size": "2.8 MB", + "sha256": "579e253c9ca9155d1cf9b90cef3294bca60c2f64d4fd0b865d5363193e4ec19b", + "size": "~2.9 MB", "previewImageUrl": "https://themes.stackwallet.com/previews/ocean-breeze.png" }, { "name": "OLED Black", "id": "oled_black", - "sha256": "d6201c3374ca52a0ffeddb5425b5b2f3d6c1c23efe9da17b342061b212fdb0bf", - "size": "476.4 kB", + "sha256": "9c20736399922384bd07f2dcae868434f903bda2d79f62da17f8ceb1ed27f9ea", + "size": "~538.3 kB", "previewImageUrl": "https://themes.stackwallet.com/previews/orange-dark-theme.png" }, { "name": "Orange", "id": "orange", - "sha256": "0f5d749b2a5285564c2a7f7a1d6b4fbf633144745f16098aeccf5689cccdd38c", - "size": "107.6 kB", + "sha256": "746d074243c9f000e4a136a6efa0112734de9352b6e6529283f842b43ac710c4", + "size": "~169.0 kB", "previewImageUrl": "https://themes.stackwallet.com/previews/orange-theme.png" } ] diff --git a/data/themes/chan.zip b/data/themes/chan.zip index 30e4ea2..2ca7e56 100644 Binary files a/data/themes/chan.zip and b/data/themes/chan.zip differ diff --git a/data/themes/dark.zip b/data/themes/dark.zip index 96aeb98..ba8404f 100644 Binary files a/data/themes/dark.zip and b/data/themes/dark.zip differ diff --git a/data/themes/chan_dark.zip b/data/themes/dark_chan.zip similarity index 99% rename from data/themes/chan_dark.zip rename to data/themes/dark_chan.zip index 7f32722..c8a01c0 100644 Binary files a/data/themes/chan_dark.zip and b/data/themes/dark_chan.zip differ diff --git a/data/themes/forest.zip b/data/themes/forest.zip index b545f23..b2058ca 100644 Binary files a/data/themes/forest.zip and b/data/themes/forest.zip differ diff --git a/data/themes/fruit_sorbet.zip b/data/themes/fruit_sorbet.zip index e97e29a..78ea4c0 100644 Binary files a/data/themes/fruit_sorbet.zip and b/data/themes/fruit_sorbet.zip differ diff --git a/data/themes/light.zip b/data/themes/light.zip index 3cb2873..8cfefa9 100644 Binary files a/data/themes/light.zip and b/data/themes/light.zip differ diff --git a/data/themes/ocean_breeze.zip b/data/themes/ocean_breeze.zip index 9ce2fd7..ca7856d 100644 Binary files a/data/themes/ocean_breeze.zip and b/data/themes/ocean_breeze.zip differ diff --git a/data/themes/oled_black.zip b/data/themes/oled_black.zip index c9d9bae..63b5374 100644 Binary files a/data/themes/oled_black.zip and b/data/themes/oled_black.zip differ diff --git a/data/themes/orange.zip b/data/themes/orange.zip index 2460f9b..ffaa69b 100644 Binary files a/data/themes/orange.zip and b/data/themes/orange.zip differ