From dd8fb021efc0dec20b1bf288f45c358a6c5476e8 Mon Sep 17 00:00:00 2001 From: Lawrence Hook Date: Sat, 18 Feb 2023 17:56:35 -0500 Subject: [PATCH] flesh out the feedback page --- src/options/feedback.css | 9 +++++++-- src/options/feedback.html | 27 ++++++++++++++++++--------- src/options/feedback.js | 9 +++++++++ 3 files changed, 34 insertions(+), 11 deletions(-) diff --git a/src/options/feedback.css b/src/options/feedback.css index 089e773..fa3210f 100644 --- a/src/options/feedback.css +++ b/src/options/feedback.css @@ -9,6 +9,13 @@ html[dark_mode='false'], html:not([dark_mode]) { --box-shadow-color: rgba(0, 0, 0, 0.30); } +html[dark_mode='true'] { + --body-color: #DDDDDD; + --body-background-color: #393939; + --label-color: #E9E9E9; + --box-shadow-color: rgba(127, 127, 127, 0.90); +} + body { padding: var(--header-height) 10px 0; @@ -49,9 +56,7 @@ header { main { width: 500px; - margin-bottom: 20px; display: flex; flex-direction: column; - gap: 30px; } diff --git a/src/options/feedback.html b/src/options/feedback.html index 95905ba..1b45ea4 100644 --- a/src/options/feedback.html +++ b/src/options/feedback.html @@ -29,22 +29,31 @@
-

Github

+

Have a feature idea?

+

Here are a number of ways to contact me:

+

GithubGoogle FormDiscord • or simply email.

-

Google Form

-
+

Is RYS not working?

-
-

Email

-
+

Try the following:

+ -
-

Discord

+

If that doesn't work, email me at lawrencehook@gmail.com.

+

To help me diagnose, please include the following:

+
    +
  • description of the issue
  • +
  • screenshot or video
  • +
  • browser: firefox
  • +
  • version of RYS: 1.0.0
  • +
-
diff --git a/src/options/feedback.js b/src/options/feedback.js index aef132a..b59475d 100644 --- a/src/options/feedback.js +++ b/src/options/feedback.js @@ -3,3 +3,12 @@ const HTML = document.documentElement; browser.storage.local.get('dark_mode', ({ dark_mode }) => { HTML.setAttribute('dark_mode', dark_mode) }); + +const extensionVersion = document.getElementById('extension-version'); +extensionVersion.innerText = browser.runtime.getManifest().version; + +const browserVersion = document.getElementById('browser-version'); +const path = browser.runtime.getURL('/'); +const isFirefox = path.startsWith('moz'); +const isChrome = path.startsWith('chrome'); +browserVersion.innerText = isFirefox ? 'firefox' : 'chrome';