Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Added Lastest Terbium v1.43 Features
Browse files Browse the repository at this point in the history
  • Loading branch information
Notplayingallday383 committed Jan 23, 2023
1 parent bcf244e commit 4622685
Show file tree
Hide file tree
Showing 47 changed files with 863 additions and 364 deletions.
13 changes: 13 additions & 0 deletions static/changes/changes.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@
--stopLIGHT: #A5209F;
}

[data-theme="almond"] {
--body: #222;
--color: #E89D46;
--button-color: #3c3c3c;
--glammer: #ffbb6d, #b97d38;
--code-background: #3c3c3c;
--code-color: #f1b066;
--code-border: #E89D46;
--mark-color: #ffc787;
--stopDARK: #E89D46;
--stopLIGHT: #94632b;
}

html {
height: 100%;
scrollbar-color: var(--color) var(--body);
Expand Down
6 changes: 6 additions & 0 deletions static/changes/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
--button-color: #ff40f7;
}

[data-theme="almond"] {
--body: #1c1c1c;
--color: #E89D46;
--button-color: #E89D46;
}

html {
height: 100%;
scrollbar-color: var(--color) var(--body);
Expand Down
12 changes: 12 additions & 0 deletions static/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ <h3>Keybinds</h3>
<command>
<code>CTRL + ALT + T</code> Open the terminal
</command>
<command>
<code>SHIFT + Left Arrow</code> Shifts the focused window to the left
</command>
<command>
<code>SHIFT + Right Arrow</code> Shifts the focused window to the right
</command>
<command>
<code>SHIFT + Up Arrow</code> Shifts the focused window
</command>
<command>
<code>SHIFT + Down Arrow</code> Minimizes the focused window up maximized
</command>
<command>
<code>CTRL + ALT + N</code> Minimize the focused window
</command>
Expand Down
16 changes: 16 additions & 0 deletions static/image/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,22 @@
--switch-back-shadow: #ff40f787;
}

[data-theme="almond"] {
--taskbar-bg: #282928;
--body: #1a1a1a;
--color: #E89D46;
--button-background: #313131;
--button-color: #CF8B3C;

--cursorText: url("../resources/cursors/textA.png"), text;
--cursorNormal: url("../resources/cursors/normalA.png"), default;
--cursorHand: url("../resources/cursors/handA.png"), pointer;

--switch-thumb: #E89D46;
--switch-back: #424242d3;
--switch-back-shadow: #E89D4687;
}

html {
font-family: pro;
height: 100%;
Expand Down
16 changes: 9 additions & 7 deletions static/image/image.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
const parent = window.parent;
let winId;
const image = document.querySelector('.img');
let imageWindow;

window.addEventListener('message', (e) => {
const data = JSON.parse(e.data);
winId = data.id;
const imageWindow = window.parent.document.querySelector(`#${winId}`);
imageWindow = window.parent.document.querySelector(`#${winId}`);
if(localStorage.getItem('photoCoverApp') === "false") {
const openImage = window.parent.document.querySelector(`#${winId}`).querySelector('.openImage');
const openImage = imageWindow.querySelector('.openImage');
const imageMagnify = parent.document.querySelector('.zoomIn');
const imageMini = parent.document.querySelector('.zoomOut');
imageMagnify.onclick = function () {
Expand Down Expand Up @@ -41,7 +42,7 @@ window.addEventListener('message', (e) => {
};
}
} else if(localStorage.getItem('photoCoverApp') === "true"){
const openImage = window.parent.document.querySelector(`.openImage`);
const openImage = imageWindow.querySelector(`.openImage`);
openImage.onclick = function () {
const file = document.createElement('input');
file.type = 'file';
Expand Down Expand Up @@ -72,7 +73,7 @@ window.addEventListener('message', (e) => {
};
}
}
const settingsI = window.parent.document.querySelector(`.settingsI`);
const settingsI = imageWindow.querySelector(`.settingsI`);
const settings = document.querySelector('.settingsWindow');
const spreadImage = document.getElementById("iow");
const spreadImageHelp = document.getElementById("iowHelp");
Expand Down Expand Up @@ -125,7 +126,7 @@ window.addEventListener('message', (e) => {
settings.classList.toggle('show');
settings.style.zIndex = -1;
settings.style.opacity = 0;
const openImage = window.parent.document.querySelector(`.openImage`);
const openImage = imageWindow.querySelector(`.openImage`);
openImage.onclick = function () {
const file = document.createElement('input');
file.type = 'file';
Expand Down Expand Up @@ -190,6 +191,7 @@ window.addEventListener('message', (e) => {
image.src = "";
}
imageWindow.style.background = '';
imageWindow.querySelector("#drag").style.backgroundColor = '';
imageWindow.querySelector("iframe").style.visibility = 'visible';
imageWindow.querySelector(".title").innerHTML = `
<button class="openImage m"><span></span>Open</button><button class="settingsI m"><span></span>Settings</button><button class="zoomIn m zz"><span></span>+</button><button class="zoomOut m zz"><span></span>-</button>
Expand All @@ -205,7 +207,7 @@ window.addEventListener('message', (e) => {
wincs[i].style.boxShadow = "";
}
localStorage.setItem("photoCoverApp", "false");
const openImage = window.parent.document.querySelector(`#${winId}`).querySelector('.openImage');
const openImage = imageWindow.querySelector('.openImage');
const imageMagnify = parent.document.querySelector('.zoomIn');
const imageMini = parent.document.querySelector('.zoomOut');
imageMagnify.onclick = function () {
Expand Down Expand Up @@ -238,7 +240,7 @@ window.addEventListener('message', (e) => {
};
};
}
window.parent.document.querySelector(`.settingsI`).onclick = function () {
imageWindow.querySelector(`.settingsI`).onclick = function () {
if (!settings.classList.contains('show')) {
settings.style.zIndex = 101;
setTimeout(() => {
Expand Down
Loading

0 comments on commit 4622685

Please sign in to comment.