Skip to content

Commit

Permalink
Language switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Milkshiift committed Sep 29, 2024
1 parent 4d6ee2c commit 8c76ecb
Show file tree
Hide file tree
Showing 12 changed files with 885 additions and 109 deletions.
8 changes: 3 additions & 5 deletions assets/css/screenshare.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
@font-face {
font-family: "Ubuntu";
font-family: InterVariable;
font-style: normal;
font-weight: 400;
font-weight: 100 900;
font-display: swap;
src: url("../fonts/Ubuntu.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
src: url("../fonts/InterVariable.woff2") format("woff2");
}

body,
Expand Down
9 changes: 6 additions & 3 deletions assets/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
*/

@font-face {
font-family: "Ubuntu";
src: url("../fonts/Ubuntu.woff2") format("woff2");
font-family: InterVariable;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
Expand All @@ -23,7 +26,7 @@
--input-bg: #484c52;
--scrollbar-width: 6px;
--scrollbar-thumb-color: #202225;
--font-family: "Ubuntu";
--font-family: "InterVariable";
--checkmark-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M174 439 7 273a26 26 0 0 1 0-36l37-36c10-10 26-10 36 0l112 112L432 73c10-10 26-10 36 0l37 36c9 10 9 26 0 36L210 439a26 26 0 0 1-36 0z' fill='%23fff'/%3E%3C/svg%3E");
--revert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 0 24 24'%3E%3Cpath fill-rule='evenodd' d='m5.62 7 1.44 1.44a1.5 1.5 0 0 1-2.12 2.12l-4-4a1.5 1.5 0 0 1 0-2.12l4-4a1.5 1.5 0 1 1 2.12 2.12L5.62 4H10A10 10 0 1 1 0 14a1.5 1.5 0 0 1 3 0 7 7 0 1 0 7-7H5.62z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
Expand Down
Binary file added assets/fonts/InterVariable.woff2
Binary file not shown.
2 changes: 0 additions & 2 deletions assets/html/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<script src="multiselect-dropdown.js" ></script>
</head>
<body>
<p class="center">Some changes require a restart to take effect</p>

<div id="settings"></div>
</body>
</html>
3 changes: 2 additions & 1 deletion assets/lang/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"category-firewall": "Firewall settings",
"category-other": "Other settings",
"category-cloud": "Cloud Settings",
"opt-locale": "Language",
"opt-locale": "Language 🌍",
"opt-locale-desc": "This is different from Discord's language.",
"opt-customTitlebar": "Custom titlebar",
"opt-customTitlebar-desc": "Enables a Discord-like titlebar.",
"opt-minimizeToTray": "Minimize to tray",
Expand Down
Loading

0 comments on commit 8c76ecb

Please sign in to comment.