Skip to content

Commit e76d167

Browse files
committed
Fixed UX bugs and added some UI stuff
- Resize fix - Added resize cursors - Almond theme - Added window controls options [minMax, minMaxClose, MinClose, close] - Added a unmaximize icon for when windows are maximized - Added some new features to the video player
1 parent 95c63d9 commit e76d167

49 files changed

Lines changed: 868 additions & 366 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

static/changes/changes.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@
5252
--stopLIGHT: #A5209F;
5353
}
5454

55+
[data-theme="almond"] {
56+
--body: #222;
57+
--color: #E89D46;
58+
--button-color: #3c3c3c;
59+
--glammer: #ffbb6d, #b97d38;
60+
--code-background: #3c3c3c;
61+
--code-color: #f1b066;
62+
--code-border: #E89D46;
63+
--mark-color: #ffc787;
64+
--stopDARK: #E89D46;
65+
--stopLIGHT: #94632b;
66+
}
67+
5568
html {
5669
height: 100%;
5770
scrollbar-color: var(--color) var(--body);

static/changes/index.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
--button-color: #ff40f7;
3232
}
3333

34+
[data-theme="almond"] {
35+
--body: #1c1c1c;
36+
--color: #E89D46;
37+
--button-color: #E89D46;
38+
}
39+
3440
html {
3541
height: 100%;
3642
scrollbar-color: var(--color) var(--body);

static/help.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ <h4>App opening keybinds</h4>
2828
<command>
2929
<code>CTRL + ALT + T</code> Open the terminal
3030
</command>
31+
<command>
32+
<code>SHIFT + Left Arrow</code> Shifts the focused window to the left
33+
</command>
34+
<command>
35+
<code>SHIFT + Right Arrow</code> Shifts the focused window to the right
36+
</command>
37+
<command>
38+
<code>SHIFT + Up Arrow</code> Shifts the focused window
39+
</command>
40+
<command>
41+
<code>SHIFT + Down Arrow</code> Minimizes the focused window up maximized
42+
</command>
3143
<h4>Window controlling keybinds</h4>
3244
<command>
3345
<code>CTRL + ALT + C</code> Close all windows

static/image/image.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@
5151
--switch-back-shadow: #ff40f787;
5252
}
5353

54+
[data-theme="almond"] {
55+
--taskbar-bg: #282928;
56+
--body: #1a1a1a;
57+
--color: #E89D46;
58+
--button-background: #313131;
59+
--button-color: #CF8B3C;
60+
61+
--cursorText: url("../resources/cursors/textA.png"), text;
62+
--cursorNormal: url("../resources/cursors/normalA.png"), default;
63+
--cursorHand: url("../resources/cursors/handA.png"), pointer;
64+
65+
--switch-thumb: #E89D46;
66+
--switch-back: #424242d3;
67+
--switch-back-shadow: #E89D4687;
68+
}
69+
5470
html {
5571
font-family: pro;
5672
height: 100%;

static/image/image.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
const parent = window.parent;
22
let winId;
33
const image = document.querySelector('.img');
4+
let imageWindow;
45

56
window.addEventListener('message', (e) => {
67
const data = JSON.parse(e.data);
78
winId = data.id;
8-
const imageWindow = window.parent.document.querySelector(`#${winId}`);
9+
imageWindow = window.parent.document.querySelector(`#${winId}`);
910
if(localStorage.getItem('photoCoverApp') === "false") {
10-
const openImage = window.parent.document.querySelector(`#${winId}`).querySelector('.openImage');
11+
const openImage = imageWindow.querySelector('.openImage');
1112
const imageMagnify = parent.document.querySelector('.zoomIn');
1213
const imageMini = parent.document.querySelector('.zoomOut');
1314
imageMagnify.onclick = function () {
@@ -41,7 +42,7 @@ window.addEventListener('message', (e) => {
4142
};
4243
}
4344
} else if(localStorage.getItem('photoCoverApp') === "true"){
44-
const openImage = window.parent.document.querySelector(`.openImage`);
45+
const openImage = imageWindow.querySelector(`.openImage`);
4546
openImage.onclick = function () {
4647
const file = document.createElement('input');
4748
file.type = 'file';
@@ -72,7 +73,7 @@ window.addEventListener('message', (e) => {
7273
};
7374
}
7475
}
75-
const settingsI = window.parent.document.querySelector(`.settingsI`);
76+
const settingsI = imageWindow.querySelector(`.settingsI`);
7677
const settings = document.querySelector('.settingsWindow');
7778
const spreadImage = document.getElementById("iow");
7879
const spreadImageHelp = document.getElementById("iowHelp");
@@ -125,7 +126,7 @@ window.addEventListener('message', (e) => {
125126
settings.classList.toggle('show');
126127
settings.style.zIndex = -1;
127128
settings.style.opacity = 0;
128-
const openImage = window.parent.document.querySelector(`.openImage`);
129+
const openImage = imageWindow.querySelector(`.openImage`);
129130
openImage.onclick = function () {
130131
const file = document.createElement('input');
131132
file.type = 'file';
@@ -190,6 +191,7 @@ window.addEventListener('message', (e) => {
190191
image.src = "";
191192
}
192193
imageWindow.style.background = '';
194+
imageWindow.querySelector("#drag").style.backgroundColor = '';
193195
imageWindow.querySelector("iframe").style.visibility = 'visible';
194196
imageWindow.querySelector(".title").innerHTML = `
195197
<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>
@@ -205,7 +207,7 @@ window.addEventListener('message', (e) => {
205207
wincs[i].style.boxShadow = "";
206208
}
207209
localStorage.setItem("photoCoverApp", "false");
208-
const openImage = window.parent.document.querySelector(`#${winId}`).querySelector('.openImage');
210+
const openImage = imageWindow.querySelector('.openImage');
209211
const imageMagnify = parent.document.querySelector('.zoomIn');
210212
const imageMini = parent.document.querySelector('.zoomOut');
211213
imageMagnify.onclick = function () {
@@ -238,7 +240,7 @@ window.addEventListener('message', (e) => {
238240
};
239241
};
240242
}
241-
window.parent.document.querySelector(`.settingsI`).onclick = function () {
243+
imageWindow.querySelector(`.settingsI`).onclick = function () {
242244
if (!settings.classList.contains('show')) {
243245
settings.style.zIndex = 101;
244246
setTimeout(() => {

0 commit comments

Comments
 (0)