From 4143767fef7b213d7233d4ba790cc42ed8b3bba1 Mon Sep 17 00:00:00 2001 From: Robert James Gabriel Date: Wed, 7 Sep 2022 00:06:46 +0100 Subject: [PATCH] 20.0.0 --- app/_locales/en/messages.json | 2 +- app/assets/css/app.css | 48 +++++++ app/index.html | 11 +- app/scripts/app.vue | 220 ++++++++++++-------------------- app/scripts/background/index.js | 10 +- app/scripts/content/api.js | 1 + app/scripts/content/font.js | 5 +- app/scripts/content/settings.js | 4 + app/scripts/utils.js | 2 +- config/edge-manifest.json | 2 +- webpack.config.js | 9 +- 11 files changed, 150 insertions(+), 164 deletions(-) create mode 100644 app/assets/css/app.css diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index de92199..9251506 100755 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -13,7 +13,7 @@ }, "feature_specialized_font_options": { "message": "Font options" - }, + }, "options": { "message": "Options" }, diff --git a/app/assets/css/app.css b/app/assets/css/app.css new file mode 100644 index 0000000..13fc55c --- /dev/null +++ b/app/assets/css/app.css @@ -0,0 +1,48 @@ +@font-face { + font-family: 'opendyslexic'; + src: url('/assets/fonts/opendyslexic/OpenDyslexic-Regular.otf'); + font-style: normal; + font-weight: normal; +} + +@font-face { + font-family: 'opendyslexic'; + src: url('/assets/fonts/opendyslexic/OpenDyslexic-Italic.otf'); + font-style: italic; + font-weight: normal; +} + +@font-face { + font-family: 'opendyslexic'; + src: url('/assets/fonts/opendyslexic/OpenDyslexic-Bold.otf'); + font-weight: bold; + font-style: normal; +} + +@font-face { + font-family: 'opendyslexic'; + src: url('/assets/fonts/opendyslexic/OpenDyslexic-BoldItalic.otf'); + font-weight: bold; + font-style: italic; +} + +@font-face { + font-family: 'opendyslexicmono'; + src: url('/assets/fonts/opendyslexic/OpenDyslexicMono-Regular.otf'); + font-weight: normal; + font-style: normal; +} + +html, +body { + background-color: black; + color: #fff !important; +} + +.viewport, +body { + width: 400px; + max-width: 100%; + max-height: 400px; + font-family: 'opendyslexic'; +} diff --git a/app/index.html b/app/index.html index 51f9178..180885e 100755 --- a/app/index.html +++ b/app/index.html @@ -19,17 +19,10 @@ content="width=device-width,initial-scale=1,minimal-ui" name="viewport" /> + - - - +
diff --git a/app/scripts/app.vue b/app/scripts/app.vue index 174c3ae..a05b9c4 100644 --- a/app/scripts/app.vue +++ b/app/scripts/app.vue @@ -24,39 +24,6 @@ $helperbird_i18n('options') }} -
-
-

- - - - - {{ $helperbird_i18n('options') }} -

-
- -
-
- - -
-
-
-

@@ -70,7 +37,11 @@ d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z" /> - {{ $helperbird_i18n('fontColorLabel') }} + {{ + enable === true + ? $helperbird_i18n('on') + : $helperbird_i18n('off') + }}

@@ -87,111 +58,85 @@
- - - - -