From bb6bfd1e7ad232f7d2d2019987ef4af91d0aa94e Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 8 Jul 2021 00:28:59 +0100 Subject: [PATCH 1/2] Add theme colour. Add well-known. --- public/.well-known/assetlinks.json | 10 ++++++++++ vite.config.ts | 1 + 2 files changed, 11 insertions(+) create mode 100644 public/.well-known/assetlinks.json diff --git a/public/.well-known/assetlinks.json b/public/.well-known/assetlinks.json new file mode 100644 index 00000000..da435856 --- /dev/null +++ b/public/.well-known/assetlinks.json @@ -0,0 +1,10 @@ +[{ + "relation": ["delegate_permission/common.handle_all_urls"], + "target": { + "namespace": "android_app", + "package_name": "chat.revolt.app.twa", + "sha256_cert_fingerprints": [ + "6E:62:C1:BF:5A:2D:11:31:A3:22:91:8D:22:2B:2C:49:D3:70:F3:A1:45:DF:11:6A:97:DC:4C:A9:3B:C3:AA:FB" + ] + } +}] \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 4622b766..c82bb0c9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -57,6 +57,7 @@ export default defineConfig({ orientation: "any", display: "standalone", background_color: "#101823", + theme_color: "#101823", icons: [ { "src": `/assets/icons/${iconPrefix}android-chrome-192x192.png`, From e956d9ac174e7358cd33e71661f077f88887fa5d Mon Sep 17 00:00:00 2001 From: nizune <9-nizune@users.noreply.gitlab.insrt.uk> Date: Thu, 8 Jul 2021 01:14:23 +0200 Subject: [PATCH 2/2] Small fixes --- external/lang | 2 +- src/context/Theme.tsx | 4 ++-- src/lib/ContextMenus.tsx | 2 +- src/pages/settings/panes/Panes.module.scss | 6 +++++- src/pages/settings/panes/Sessions.tsx | 8 +++----- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/external/lang b/external/lang index 2a0b524d..39359e76 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit 2a0b524d892349cb956ee49af873fc87999e2206 +Subproject commit 39359e76b961fa7ee9f83a0cabdc811ccecdb600 diff --git a/src/context/Theme.tsx b/src/context/Theme.tsx index c947d85f..3dcd10a7 100644 --- a/src/context/Theme.tsx +++ b/src/context/Theme.tsx @@ -234,7 +234,7 @@ export const PRESETS: Record = { mention: "rgba(251, 255, 0, 0.40)", success: "#65E572", warning: "#FAA352", - error: "#F06464", + error: "#ED4245", hover: "rgba(0, 0, 0, 0.2)", "scrollbar-thumb": "#CA525A", "scrollbar-track": "transparent", @@ -261,7 +261,7 @@ export const PRESETS: Record = { mention: "rgba(251, 255, 0, 0.06)", success: "#65E572", warning: "#FAA352", - error: "#F06464", + error: "#ED4245", hover: "rgba(0, 0, 0, 0.1)", "scrollbar-thumb": "#CA525A", "scrollbar-track": "transparent", diff --git a/src/lib/ContextMenus.tsx b/src/lib/ContextMenus.tsx index c0fac9f0..96467728 100644 --- a/src/lib/ContextMenus.tsx +++ b/src/lib/ContextMenus.tsx @@ -882,7 +882,7 @@ function ContextMenus(props: Props) { - + diff --git a/src/pages/settings/panes/Panes.module.scss b/src/pages/settings/panes/Panes.module.scss index 1839bc8a..dc614c1b 100644 --- a/src/pages/settings/panes/Panes.module.scss +++ b/src/pages/settings/panes/Panes.module.scss @@ -332,7 +332,7 @@ } .entry { - margin: 8px 0; + margin: 10px 0; padding: 16px; display: flex; border-radius: 6px; @@ -419,6 +419,10 @@ } } } + + > button { + margin-top: 20px; + } } .languages { diff --git a/src/pages/settings/panes/Sessions.tsx b/src/pages/settings/panes/Sessions.tsx index 81dae3c5..88c81381 100644 --- a/src/pages/settings/panes/Sessions.tsx +++ b/src/pages/settings/panes/Sessions.tsx @@ -150,12 +150,8 @@ export function Sessions() { }} /> - - - - {deviceId !== session.id && ( )} - ))} +