diff --git a/packages/apps/browser/CHANGELOG.md b/packages/apps/browser/CHANGELOG.md
index 51daba0a..4423d491 100644
--- a/packages/apps/browser/CHANGELOG.md
+++ b/packages/apps/browser/CHANGELOG.md
@@ -1,5 +1,12 @@
# @prozilla-os/browser
+## 1.1.1
+
+### Patch Changes
+
+- Updated dependencies
+ - @prozilla-os/core@1.2.1
+
## 1.1.0
### Minor Changes
diff --git a/packages/apps/browser/package.json b/packages/apps/browser/package.json
index 7c14f557..13bf852a 100644
--- a/packages/apps/browser/package.json
+++ b/packages/apps/browser/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/browser",
"description": "A ProzillaOS application for browsing the internet.",
- "version": "1.1.0",
+ "version": "1.1.1",
"homepage": "https://os.prozilla.dev/browser",
"author": {
"name": "Prozilla",
diff --git a/packages/apps/calculator/CHANGELOG.md b/packages/apps/calculator/CHANGELOG.md
index a38b65a6..558b8d47 100644
--- a/packages/apps/calculator/CHANGELOG.md
+++ b/packages/apps/calculator/CHANGELOG.md
@@ -1,5 +1,12 @@
# @prozilla-os/calculator
+## 1.1.1
+
+### Patch Changes
+
+- Updated dependencies
+ - @prozilla-os/core@1.2.1
+
## 1.1.0
### Minor Changes
diff --git a/packages/apps/calculator/package.json b/packages/apps/calculator/package.json
index 4a56ad76..e0a14091 100644
--- a/packages/apps/calculator/package.json
+++ b/packages/apps/calculator/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/calculator",
"description": "A ProzillaOS application for making basic calculations.",
- "version": "1.1.0",
+ "version": "1.1.1",
"homepage": "https://os.prozilla.dev/calculator",
"author": {
"name": "Prozilla",
diff --git a/packages/apps/file-explorer/CHANGELOG.md b/packages/apps/file-explorer/CHANGELOG.md
index 79fa244c..9ad2f4f6 100644
--- a/packages/apps/file-explorer/CHANGELOG.md
+++ b/packages/apps/file-explorer/CHANGELOG.md
@@ -1,5 +1,12 @@
# @prozilla-os/file-explorer
+## 1.1.1
+
+### Patch Changes
+
+- Updated dependencies
+ - @prozilla-os/core@1.2.1
+
## 1.1.0
### Minor Changes
diff --git a/packages/apps/file-explorer/package.json b/packages/apps/file-explorer/package.json
index 0c21d35d..2814e350 100644
--- a/packages/apps/file-explorer/package.json
+++ b/packages/apps/file-explorer/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/file-explorer",
"description": "A standard ProzillaOS application for browsing files.",
- "version": "1.1.0",
+ "version": "1.1.1",
"homepage": "https://os.prozilla.dev/file-explorer",
"author": {
"name": "Prozilla",
diff --git a/packages/apps/logic-sim/CHANGELOG.md b/packages/apps/logic-sim/CHANGELOG.md
index 144d818e..133e84de 100644
--- a/packages/apps/logic-sim/CHANGELOG.md
+++ b/packages/apps/logic-sim/CHANGELOG.md
@@ -1,5 +1,12 @@
# @prozilla-os/logic-sim
+## 1.1.1
+
+### Patch Changes
+
+- Updated dependencies
+ - @prozilla-os/core@1.2.1
+
## 1.1.0
### Minor Changes
diff --git a/packages/apps/logic-sim/package.json b/packages/apps/logic-sim/package.json
index cd05d57c..fb48e772 100644
--- a/packages/apps/logic-sim/package.json
+++ b/packages/apps/logic-sim/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/logic-sim",
"description": "A ProzillaOS application for simulating digital logic.",
- "version": "1.1.0",
+ "version": "1.1.1",
"homepage": "https://os.prozilla.dev/logic-sim",
"author": {
"name": "Prozilla",
diff --git a/packages/apps/media-viewer/CHANGELOG.md b/packages/apps/media-viewer/CHANGELOG.md
index 5016a2f9..fecc0644 100644
--- a/packages/apps/media-viewer/CHANGELOG.md
+++ b/packages/apps/media-viewer/CHANGELOG.md
@@ -1,5 +1,12 @@
# @prozilla-os/media-viewer
+## 1.1.1
+
+### Patch Changes
+
+- Updated dependencies
+ - @prozilla-os/core@1.2.1
+
## 1.1.0
### Minor Changes
diff --git a/packages/apps/media-viewer/package.json b/packages/apps/media-viewer/package.json
index 47ed9c64..90416c8c 100644
--- a/packages/apps/media-viewer/package.json
+++ b/packages/apps/media-viewer/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/media-viewer",
"description": "A ProzillaOS application for viewing different kinds of media.",
- "version": "1.1.0",
+ "version": "1.1.1",
"homepage": "https://os.prozilla.dev/media-viewer",
"author": {
"name": "Prozilla",
diff --git a/packages/apps/settings/CHANGELOG.md b/packages/apps/settings/CHANGELOG.md
index 3f06a5c0..307cf42c 100644
--- a/packages/apps/settings/CHANGELOG.md
+++ b/packages/apps/settings/CHANGELOG.md
@@ -1,5 +1,13 @@
# @prozilla-os/settings
+## 1.1.1
+
+### Patch Changes
+
+- Updated dependencies
+ - @prozilla-os/core@1.2.1
+ - @prozilla-os/file-explorer@1.1.1
+
## 1.1.0
### Minor Changes
diff --git a/packages/apps/settings/package.json b/packages/apps/settings/package.json
index 2a41138c..e2a0e4ea 100644
--- a/packages/apps/settings/package.json
+++ b/packages/apps/settings/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/settings",
"description": "A settings app for ProzillaOS.",
- "version": "1.1.0",
+ "version": "1.1.1",
"homepage": "https://os.prozilla.dev/settings",
"author": {
"name": "Prozilla",
diff --git a/packages/apps/terminal/CHANGELOG.md b/packages/apps/terminal/CHANGELOG.md
index 4bae74f8..926cf7c3 100644
--- a/packages/apps/terminal/CHANGELOG.md
+++ b/packages/apps/terminal/CHANGELOG.md
@@ -1,5 +1,12 @@
# @prozilla-os/terminal
+## 1.1.2
+
+### Patch Changes
+
+- Updated dependencies
+ - @prozilla-os/core@1.2.1
+
## 1.1.1
### Patch Changes
diff --git a/packages/apps/terminal/package.json b/packages/apps/terminal/package.json
index a325d0a6..cbc80394 100644
--- a/packages/apps/terminal/package.json
+++ b/packages/apps/terminal/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/terminal",
"description": "A terminal/shell application for ProzillaOS.",
- "version": "1.1.1",
+ "version": "1.1.2",
"homepage": "https://os.prozilla.dev/terminal",
"author": {
"name": "Prozilla",
diff --git a/packages/apps/text-editor/CHANGELOG.md b/packages/apps/text-editor/CHANGELOG.md
index e6f97c51..5a8f67fd 100644
--- a/packages/apps/text-editor/CHANGELOG.md
+++ b/packages/apps/text-editor/CHANGELOG.md
@@ -1,5 +1,12 @@
# @prozilla-os/text-editor
+## 1.1.1
+
+### Patch Changes
+
+- Updated dependencies
+ - @prozilla-os/core@1.2.1
+
## 1.1.0
### Minor Changes
diff --git a/packages/apps/text-editor/package.json b/packages/apps/text-editor/package.json
index e806b8a6..d9e334c4 100644
--- a/packages/apps/text-editor/package.json
+++ b/packages/apps/text-editor/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/text-editor",
"description": "A text editor application for ProzillaOS.",
- "version": "1.1.0",
+ "version": "1.1.1",
"homepage": "https://os.prozilla.dev/text-editor",
"author": {
"name": "Prozilla",
diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md
index 9ffaa42b..a1d524b9 100644
--- a/packages/core/CHANGELOG.md
+++ b/packages/core/CHANGELOG.md
@@ -1,5 +1,13 @@
# @prozilla-os/core
+## 1.2.1
+
+### Patch Changes
+
+- Added Pixel skin
+- Updated dependencies
+ - @prozilla-os/skins@1.1.1
+
## 1.2.0
### Minor Changes
diff --git a/packages/core/package.json b/packages/core/package.json
index b8540acd..a9e47fb3 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -1,7 +1,7 @@
{
"name": "@prozilla-os/core",
"description": "A React component library written in TypeScript for building web-based operating systems, made by Prozilla.",
- "version": "1.2.0",
+ "version": "1.2.1",
"homepage": "https://os.prozilla.dev",
"author": {
"name": "Prozilla",
diff --git a/packages/core/src/components/_utils/directory-list/ImagePreview.tsx b/packages/core/src/components/_utils/directory-list/ImagePreview.tsx
index 19c80ad6..eee09db8 100644
--- a/packages/core/src/components/_utils/directory-list/ImagePreview.tsx
+++ b/packages/core/src/components/_utils/directory-list/ImagePreview.tsx
@@ -2,6 +2,7 @@ import { useState } from "react";
import styles from "./ImagePreview.module.css";
import { ReactSVG } from "react-svg";
import { useSystemManager } from "../../../hooks";
+import { VectorImage } from "../vector-image/VectorImage";
interface ImagePreviewProps {
source: string;
@@ -25,9 +26,7 @@ export function ImagePreview({ source, className, onError, ...props }: ImagePrev
return (
{loadingFailed
?
- : source.endsWith(".svg")
- ?
- :
+ :
}
);
}
\ No newline at end of file
diff --git a/packages/core/src/components/_utils/index.ts b/packages/core/src/components/_utils/index.ts
index 4869ca44..c24e5f4a 100644
--- a/packages/core/src/components/_utils/index.ts
+++ b/packages/core/src/components/_utils/index.ts
@@ -6,5 +6,6 @@ export { ProgressBar } from "./progress-bar/ProgressBar";
export { HeaderMenu } from "./header-menu/HeaderMenu";
export { WebView } from "./web-view/WebView";
export { ImagePreview } from "./directory-list/ImagePreview";
+export { VectorImage as Image } from "./vector-image/VectorImage";
export type { OnSelectionChangeParams, FileEventHandler, FolderEventHandler } from "./directory-list/DirectoryList";
\ No newline at end of file
diff --git a/packages/core/src/components/_utils/vector-image/VectorImage.tsx b/packages/core/src/components/_utils/vector-image/VectorImage.tsx
new file mode 100644
index 00000000..7397d106
--- /dev/null
+++ b/packages/core/src/components/_utils/vector-image/VectorImage.tsx
@@ -0,0 +1,51 @@
+import { Vector2 } from "@prozilla-os/core";
+import { useEffect, useState } from "react";
+import { ReactSVG } from "react-svg";
+
+interface ImageProps {
+ className?: string;
+ src?: string;
+ [key: string]: unknown;
+}
+
+export function VectorImage({ className, src, ...props }: ImageProps) {
+ const [dimensions, setDimensions] = useState(Vector2.ZERO);
+
+ useEffect(() => {
+ if (src == null)
+ return;
+
+ const image = new Image();
+
+ image.onload = () => {
+ console.log(image);
+ setDimensions(new Vector2(image.naturalWidth, image.naturalHeight));
+ };
+
+ image.src = src;
+ }, [src]);
+
+ if (src?.endsWith(".svg")) {
+ return ;
+ } else {
+ return ;
+ }
+}
\ No newline at end of file
diff --git a/packages/core/src/components/modals/_utils/WindowedModal.tsx b/packages/core/src/components/modals/_utils/WindowedModal.tsx
index 970247f4..53d9f08c 100644
--- a/packages/core/src/components/modals/_utils/WindowedModal.tsx
+++ b/packages/core/src/components/modals/_utils/WindowedModal.tsx
@@ -8,6 +8,7 @@ import Draggable from "react-draggable";
import { ReactSVG } from "react-svg";
import utilStyles from "../../../styles/utils.module.css";
import { ModalProps } from "../ModalView";
+import { VectorImage } from "../../_utils/vector-image/VectorImage";
export function WindowedModal({ modal, params, children, ...props }: ModalProps) {
const nodeRef = useRef(null);
@@ -53,7 +54,7 @@ export function WindowedModal({ modal, params, children, ...props }: ModalProps)
}}
>
-
diff --git a/packages/core/src/components/taskbar/app-icon/AppIcon.tsx b/packages/core/src/components/taskbar/app-icon/AppIcon.tsx
index d4b82113..1a6622c2 100644
--- a/packages/core/src/components/taskbar/app-icon/AppIcon.tsx
+++ b/packages/core/src/components/taskbar/app-icon/AppIcon.tsx
@@ -8,6 +8,7 @@ import { Actions } from "../../actions/Actions";
import { ClickAction } from "../../actions/actions/ClickAction";
import { WindowsManager } from "../../../features/windows/windowsManager";
import { useClassNames } from "../../../hooks";
+import { VectorImage } from "../../_utils/vector-image/VectorImage";
interface AppButtonProps {
app: App;
@@ -73,7 +74,7 @@ export const AppButton: FC
= memo(({ app, windowsManager, active
}}
title={app.name}
>
-
+
);
});
\ No newline at end of file
diff --git a/packages/core/src/components/taskbar/indicators/Battery.tsx b/packages/core/src/components/taskbar/indicators/Battery.tsx
index 536b9631..c56f1326 100644
--- a/packages/core/src/components/taskbar/indicators/Battery.tsx
+++ b/packages/core/src/components/taskbar/indicators/Battery.tsx
@@ -4,6 +4,7 @@ import { useEffect, useState } from "react";
import styles from "./Battery.module.css";
import { UtilMenu } from "../menus/UtilMenu";
import { OutsideClickListener } from "../../../hooks/_utils/outsideClick";
+import { useClassNames } from "@prozilla-os/core";
type Battery = {
charging: boolean | ((prevState: boolean) => boolean);
@@ -93,7 +94,7 @@ export function Battery({ hideUtilMenus, showUtilMenu }: BatteryProps) {
}
return ( { updateShowMenu(false); }}>
-