Skip to content

Commit

Permalink
Add logo to scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
habsul-rignyr committed Jan 19, 2024
1 parent eb9cf57 commit adaec4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Binary file added src/assets/KINODE_SYMBOL_BLACK_TRANSPARENT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions theme/customize-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,15 @@ document.addEventListener("DOMContentLoaded", () => {

const navyButton = document.getElementById("navy");
if (navyButton) navyButton.textContent = "Light"; // New name for 'Navy'

const sidebar = document.querySelector(".sidebar-scrollbox");
if (sidebar) {
const logo = document.createElement("img");
logo.src = "assets/KINODE_SYMBOL_BLACK_TRANSPARENT.png";
logo.alt = "Kinode OS Logo";
logo.style =
"height: 40px; width: auto; display: block; margin: 10px auto;";

sidebar.insertBefore(logo, sidebar.firstChild); // This adds the logo to the top of the sidebar
}
});

0 comments on commit adaec4d

Please sign in to comment.