what if icon fonts

This commit is contained in:
MeowcaTheoRange 2023-12-21 22:09:55 -06:00
parent ff810f8d59
commit 32da09fdb7

View file

@ -604,6 +604,7 @@ class WindowObject {
if (!srcdoc) {
const windowNewButton = document.createElement("button");
windowNewButton.innerHTML = "open_in_new";
windowDestroyButton.ariaLabel = "Open Window Content In New Tab";
windowNewButton.classList.add("window-new-button");
windowNewButton.addEventListener("click", () => window.open(content));
windowNewButton.addEventListener("touchstart", (e) =>
@ -619,6 +620,7 @@ class WindowObject {
{
const windowMinimizeButton = document.createElement("button");
windowMinimizeButton.innerHTML = "minimize";
windowDestroyButton.ariaLabel = "Minimize Window";
windowMinimizeButton.classList.add("window-minimize-button");
windowMinimizeButton.addEventListener("click", () =>
windowRef.minimizeWindow()
@ -636,6 +638,7 @@ class WindowObject {
{
const windowMaximizeButton = document.createElement("button");
windowMaximizeButton.innerHTML = "maximize";
windowDestroyButton.ariaLabel = "Maximize Window";
windowMaximizeButton.classList.add("window-maximize-button");
windowMaximizeButton.ariaHidden = true; // esoteric operation to screen-reader users
windowMaximizeButton.addEventListener("click", () =>
@ -654,6 +657,7 @@ class WindowObject {
{
const windowDestroyButton = document.createElement("button");
windowDestroyButton.innerHTML = "close";
windowDestroyButton.ariaLabel = "Close Window";
windowDestroyButton.classList.add("window-destroy-button");
windowDestroyButton.ariaHidden = true;
windowDestroyButton.addEventListener("click", () =>