diff --git a/src/Popup/Pages/AutofillPage/index.tsx b/src/Popup/Pages/AutofillPage/index.tsx
index f1afa6a..da028b1 100644
--- a/src/Popup/Pages/AutofillPage/index.tsx
+++ b/src/Popup/Pages/AutofillPage/index.tsx
@@ -26,7 +26,9 @@ const AutofillPage = ({ tab }: SystemPageProps) => {
display: tab === 'autofill' ? 'block' : 'none',
}}
>
- Autofill Options
+
+ Autofill Options
+
)
}
diff --git a/src/Popup/Pages/CurrentPage/index.tsx b/src/Popup/Pages/CurrentPage/index.tsx
index 2f16f0f..d3b18f1 100644
--- a/src/Popup/Pages/CurrentPage/index.tsx
+++ b/src/Popup/Pages/CurrentPage/index.tsx
@@ -11,7 +11,9 @@ const CurrentPage = ({ tab }: CurrentPageProps) => {
display: tab === 'current' ? 'block' : 'none',
}}
>
- Current Info
+
+ Current Info
+
)
}
diff --git a/src/Popup/Pages/SettingsPage/index.tsx b/src/Popup/Pages/SettingsPage/index.tsx
index 3e79d71..81c773f 100644
--- a/src/Popup/Pages/SettingsPage/index.tsx
+++ b/src/Popup/Pages/SettingsPage/index.tsx
@@ -32,7 +32,9 @@ const SettingsPage = ({ tab }: SystemPageProps) => {
display: tab === 'settings' ? 'block' : 'none',
}}
>
- Settings
+
+ Settings
+
{/* void
}
-const LocationInput = ({
+const SystemInput = ({
name,
title,
value,
setValue,
onChange,
-}: LocationInputProps) => {
+}: SystemInputProps) => {
const debouncedChangeHandler = useMemo(
() =>
debounce((e) => {
@@ -41,4 +41,4 @@ const LocationInput = ({
)
}
-export default LocationInput
+export default SystemInput
diff --git a/src/Popup/Pages/SystemPage/index.tsx b/src/Popup/Pages/SystemPage/index.tsx
index e555efa..6fe66bd 100644
--- a/src/Popup/Pages/SystemPage/index.tsx
+++ b/src/Popup/Pages/SystemPage/index.tsx
@@ -1,6 +1,6 @@
import { useState, useEffect, ChangeEvent } from 'react'
import { Box, Flex, Label, Radio, Select } from 'theme-ui'
-import LocationInput from './LocationInput'
+import SystemInput from './SystemInput'
import detachDebugger from '../../../utils/detachDebugger'
import countryLocales from '../../../utils/countryLocales'
import { ipData } from '../../../types'
@@ -120,7 +120,9 @@ const SystemPage = ({ tab, ipData }: SystemPageProps) => {
display: tab === 'system' ? 'block' : 'none',
}}
>
- System Data
+
+ System Data
+
{
>
)}
-
-
-
- {
display: tab === 'useragent' ? 'block' : 'none',
}}
>
- Other Options
+
+ Other Options
+
{
display: tab === 'webRtc' ? 'block' : 'none',
}}
>
- WebRTC Policy
- */}
+ {/*
IP: {JSON.stringify(webRtcIp)}
+ */}
)
}
diff --git a/src/Popup/Popup.tsx b/src/Popup/Popup.tsx
index 9c7b214..a3b7b37 100644
--- a/src/Popup/Popup.tsx
+++ b/src/Popup/Popup.tsx
@@ -19,9 +19,10 @@ import WebRtcPage from './Pages/WebRtcPage'
import CurrentPage from './Pages/CurrentPage'
import { ipData } from '../types'
import getIp from '../utils/getIp'
+import '../assets/global.css'
const Popup = () => {
- const [tab, setTab] = useState('current')
+ const [tab, setTab] = useState('webRtc')
const [ipData, setIpData] = useState(undefined)
useEffect(() => {
diff --git a/src/assets/Nunito-VariableFont_wght.ttf b/src/assets/Nunito-VariableFont_wght.ttf
new file mode 100644
index 0000000..87c50a8
Binary files /dev/null and b/src/assets/Nunito-VariableFont_wght.ttf differ
diff --git a/src/assets/global.css b/src/assets/global.css
new file mode 100644
index 0000000..d1646bd
--- /dev/null
+++ b/src/assets/global.css
@@ -0,0 +1,10 @@
+@font-face {
+ font-family: 'Nunito';
+ src: url(./Nunito-VariableFont_wght.ttf);
+ font-weight: 400 800;
+}
+
+body {
+ font-family: 'Nunito';
+ font-weight: 500;
+}
diff --git a/src/assets/img/icon128.png b/src/assets/icon128.png
similarity index 100%
rename from src/assets/img/icon128.png
rename to src/assets/icon128.png
diff --git a/src/assets/img/icon32.png b/src/assets/icon32.png
similarity index 100%
rename from src/assets/img/icon32.png
rename to src/assets/icon32.png
diff --git a/src/assets/img/icon-128.png b/src/assets/img/icon-128.png
deleted file mode 100644
index d2c1283..0000000
Binary files a/src/assets/img/icon-128.png and /dev/null differ
diff --git a/src/assets/img/icon-32.png b/src/assets/img/icon-32.png
deleted file mode 100644
index 01c2d93..0000000
Binary files a/src/assets/img/icon-32.png and /dev/null differ
diff --git a/src/theme.ts b/src/theme.ts
index e46c22a..bc43051 100644
--- a/src/theme.ts
+++ b/src/theme.ts
@@ -14,12 +14,11 @@ export const theme: Theme = {
},
styles: {
root: {
- backgroundColor: 'body',
+ backgroundColor: 'background',
color: 'text',
fontSize: '18px',
lineHeight: '22px',
margin: '0',
- fontFamily: "'Segoe UI', Tahoma, sans-serif",
},
},
diff --git a/webpack.config.js b/webpack.config.js
index 9637da9..01c0736 100755
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -131,7 +131,7 @@ var options = {
new CopyWebpackPlugin({
patterns: [
{
- from: 'src/assets/img/icon128.png',
+ from: 'src/assets/icon128.png',
to: path.join(__dirname, 'build'),
force: true,
},
@@ -140,7 +140,16 @@ var options = {
new CopyWebpackPlugin({
patterns: [
{
- from: 'src/assets/img/icon32.png',
+ from: 'src/assets/icon32.png',
+ to: path.join(__dirname, 'build'),
+ force: true,
+ },
+ ],
+ }),
+ new CopyWebpackPlugin({
+ patterns: [
+ {
+ from: 'src/assets/Nunito-VariableFont_wght.ttf',
to: path.join(__dirname, 'build'),
force: true,
},