Skip to content

Commit

Permalink
[mirotalkwebrtc] - move toggle dark-mode in the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Dec 2, 2024
1 parent 13b0c70 commit 1d805c5
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 11 deletions.
40 changes: 40 additions & 0 deletions frontend/css/client.css
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,46 @@ iframe {
cursor: pointer;
}

.settings-ul {
margin-top: 20px;
padding: 0;
list-style-type: none;
}

.settings-ul .mode {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
background-color: var(--panel-color);
border: 0.1px solid var(--border-color);
border-radius: 5px;
margin: 10px 0;
transition: background-color 0.3s ease;
}

.settings-ul .mode a {
text-decoration: none;
color: var(--text-color);
display: flex;
align-items: center;
gap: 10px;
cursor: default;
}

.settings-ul .mode i {
font-size: 20px;
}

.settings-ul .mode .link-name {
font-size: 16px;
font-weight: 500;
}

.settings-ul .mode .mode-toggle {
cursor: pointer;
}

.accountDiv input,
.addRowDiv input {
padding: 12px;
Expand Down
20 changes: 11 additions & 9 deletions frontend/html/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,6 @@
<span class="link-name">Settings</span>
</a>
</li>
<li class="mode">
<a href="javascript:void(0)">
<i class="uil uil-moon"></i>
<span class="link-name">Dark Mode</span>
</a>
<div class="mode-toggle">
<span class="switch"></span>
</div>
</li>
</ul>
</div>
</nav>
Expand Down Expand Up @@ -318,6 +309,17 @@
<i id="settings-close-btn" class="uil uil-multiply"></i>
<label for="google_translate_element">Language</label>
<div id="google_translate_element"></div>
<ul class="settings-ul">
<li class="mode">
<a href="javascript:void(0)">
<i class="uil uil-moon"></i>
<span class="link-name">Dark Mode</span>
</a>
<div class="mode-toggle">
<span class="switch"></span>
</div>
</li>
</ul>
</div>

<div id="p2p" class="dash-iframe fadeIn">
Expand Down
2 changes: 1 addition & 1 deletion frontend/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @license For private project or commercial purposes contact us at: license.mirotalk@gmail.com or purchase it directly via Code Canyon:
* @license https://codecanyon.net/item/a-selfhosted-mirotalks-webrtc-rooms-scheduler-server/42643313
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.1.22
* @version 1.1.23
*/

const isMobile = !!/Android|webOS|iPhone|iPad|iPod|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mirotalkwebrtc",
"version": "1.1.22",
"version": "1.1.23",
"description": "MiroTalk WebRTC admin",
"main": "server.js",
"scripts": {
Expand Down

0 comments on commit 1d805c5

Please sign in to comment.