Skip to content

Commit

Permalink
Update image file paths for MoonIcon and SunIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayuresh-22 committed Apr 23, 2024
1 parent dcfcd64 commit aeef69a
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 19 deletions.
2 changes: 1 addition & 1 deletion about-us.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</div>

<ul>
<img src="img/dark_img/MoonIcon.svg" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeTheme()">
<img src="img/dark_img/MoonIcon.png" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeTheme()">
</ul>
<label class="logo"><a href="/"><img class="logo" src="logo/Minglr logo1.png"></a></label>
<ul class="menu-items">
Expand Down
2 changes: 1 addition & 1 deletion account.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<div class="bar bar3"></div>
</div>
<ul>
<img src="img/dark_img/MoonIcon.svg" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeAccountTheme()">
<img src="img/dark_img/MoonIcon.png" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeAccountTheme()">
</ul>

<ul class="menu-items">
Expand Down
2 changes: 1 addition & 1 deletion feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
<label class="logo"><a href="/"><img class="logo" src="logo/Minglr logo1.png"></a></label>
<ul>
<img src="img/dark_img/MoonIcon.svg" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeTheme()">
<img src="img/dark_img/MoonIcon.png" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeTheme()">
</ul>

<ul class="menu-items">
Expand Down
Binary file added img/dark_img/MoonIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions img/dark_img/MoonIcon.svg

This file was deleted.

Binary file added img/dark_img/SunIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions img/dark_img/SunIcon.svg

This file was deleted.

2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</div>
<label class="logo"><a href="/"><img class="logo" src="logo/Minglr logo1.png"></a></label>
<ul>
<img src="img/dark_img/MoonIcon.svg" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeIndexTheme()">
<img src="img/dark_img/MoonIcon.png" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeIndexTheme()">
</ul>
<ul class="menu-items">

Expand Down
16 changes: 8 additions & 8 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ function changeTheme() {
//console.log('theme:',theme.getAttribute("href").includes("darktheme_css"));
if (theme.getAttribute("href").includes("darktheme_css")) {
theme.setAttribute("href", "style/lighttheme_css/light_feed.css");
themeIcon.setAttribute("src", "img/dark_img/Moonicon.svg");
themeIcon.setAttribute("src", "img/dark_img/MoonIcon.png");
} else {
theme.setAttribute("href", "style/darktheme_css/dark_feed.css");
themeIcon.setAttribute("src", "img/dark_img/Sunicon.svg");
themeIcon.setAttribute("src", "img/dark_img/SunIcon.png");
}
}

Expand All @@ -55,10 +55,10 @@ function changeAccountTheme() {
//console.log('theme:',theme.getAttribute("href").includes("darktheme_css"));
if (theme.getAttribute("href").includes("darktheme_css")) {
theme.setAttribute("href", "style/lighttheme_css/light_account.css");
themeIcon.setAttribute("src", "img/dark_img/Moonicon.svg");
themeIcon.setAttribute("src", "img/dark_img/MoonIcon.png");
} else {
theme.setAttribute("href", "style/darktheme_css/dark_account.css");
themeIcon.setAttribute("src", "img/dark_img/Sunicon.svg");
themeIcon.setAttribute("src", "img/dark_img/SunIcon.png");
}
}

Expand All @@ -68,10 +68,10 @@ function changeIndexTheme() {
//console.log('theme:',theme.getAttribute("href").includes("darktheme_css"));
if (theme.getAttribute("href").includes("darktheme_css")) {
theme.setAttribute("href", "style/lighttheme_css/light_style.css");
themeIcon.setAttribute("src", "img/dark_img/Moonicon.svg");
themeIcon.setAttribute("src", "img/dark_img/MoonIcon.png");
} else {
theme.setAttribute("href", "style/darktheme_css/dark_style.css");
themeIcon.setAttribute("src", "img/dark_img/Sunicon.svg");
themeIcon.setAttribute("src", "img/dark_img/SunIcon.png");
}
}

Expand All @@ -82,10 +82,10 @@ function changeMessageTheme() {
//console.log('theme:',theme.getAttribute("href").includes("darktheme_css"));
if (theme.getAttribute("href").includes("darktheme_css")) {
theme.setAttribute("href", "style/lighttheme_css/light_message.css");
themeIcon.setAttribute("src", "img/dark_img/Moonicon.svg");
themeIcon.setAttribute("src", "img/dark_img/MoonIcon.png");
} else {
theme.setAttribute("href", "style/darktheme_css/dark_message.css");
themeIcon.setAttribute("src", "img/dark_img/Sunicon.svg");
themeIcon.setAttribute("src", "img/dark_img/SunIcon.png");
}
}

Expand Down
2 changes: 1 addition & 1 deletion message.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<label class="logo"><a href="/"><img class="logo" src="logo/Minglr logo1.png"></a></label>

<ul>
<img src="img/dark_img/MoonIcon.svg" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeTheme()">
<img src="img/dark_img/MoonIcon.png" alt="Theme Icon" height="19" width="19" id="theme-icon" id="theme-toggle" class="theme-button" onclick="changeTheme()">
</ul>
<ul class="menu-items">
<li class="menu-items-li"><a class="navv-item" href="feed.php">Feed</a></li>
Expand Down

0 comments on commit aeef69a

Please sign in to comment.