diff --git a/src/assets/scss/app.scss b/src/assets/scss/app.scss
index c5efe9d..f3b386b 100644
--- a/src/assets/scss/app.scss
+++ b/src/assets/scss/app.scss
@@ -15,4 +15,27 @@ html {
body {
color: $white;
+}
+
+.modal-background {
+ background: rgba($black, 0.6);
+}
+
+.modal-content {
+ border: 1px solid rgba($primary, 0.4);
+ box-shadow: 0 0 30px rgba($black, 0.3);
+}
+
+.modal-card-body {
+ background: rgba($black, 0.7);
+}
+
+.modal-card-head,
+.modal-card-foot {
+ background: rgba($black, 0.9);
+}
+
+
+progress.progress {
+ filter: invert(90%);
}
\ No newline at end of file
diff --git a/src/mlpccg/images.ts b/src/mlpccg/images.ts
index 00966da..c9e40df 100644
--- a/src/mlpccg/images.ts
+++ b/src/mlpccg/images.ts
@@ -1,5 +1,15 @@
+import { Database } from "./database";
+
const imgBaseURL = "https://mcg.zyg.ovh/images/cards/";
export function cardImageURL(cardid: string): string {
return `${imgBaseURL}${cardid}.webp`;
}
+
+export async function cardImageSource() {
+ if (!Database) {
+ return "remote";
+ }
+ const count = await Database.images.count();
+ return count > 1900 ? "local" : "remote";
+}
diff --git a/src/views/Settings.vue b/src/views/Settings.vue
index af1bb25..81bb11f 100644
--- a/src/views/Settings.vue
+++ b/src/views/Settings.vue
@@ -1,36 +1,192 @@
-
+
+
+
+
+
+
+ Card image source
+
+
+ {{ imageSource }}
+
+
+ Download images
+
+
+
+
+
+
+
+
+ {{ downloadStatus }}
+
+
+
+
+ {{ downloadProgressString }}
+
+
+
+
-
+