diff --git a/public/config/desktop.xml b/public/config/desktop.xml new file mode 100644 index 0000000..5ffb96e --- /dev/null +++ b/public/config/desktop.xml @@ -0,0 +1,4 @@ + + + /media/wallpapers/Wallpaper1.png + \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index b6ff532..68d515d 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -3,16 +3,20 @@ import { Taskbar } from "./components/task-bar/TaskBar.jsx"; import { WindowsManagerProvider } from "./hooks/windows/WindowsManagerContext.js"; import { WindowsView } from "./components/windows/WindowsView.jsx"; import { VirtualRootProvider } from "./hooks/virtual-drive/VirtualRootContext.js"; -import { SETTINGS } from "./config/settings.js"; +import { Desktop } from "./components/desktop/Desktop.jsx"; +import { SettingsProvider } from "./hooks/settings/SettingsContext.js"; function App() { return ( -
- - -
+ +
+ + + +
+
); diff --git a/src/App.module.css b/src/App.module.css index 919d9db..41192a1 100644 --- a/src/App.module.css +++ b/src/App.module.css @@ -4,6 +4,5 @@ left: 0; width: 100%; height: 100%; - background-size: cover; text-align: center; } diff --git a/src/components/applications/file-explorer/FileExplorer.jsx b/src/components/applications/file-explorer/FileExplorer.jsx index c037695..e526ff5 100644 --- a/src/components/applications/file-explorer/FileExplorer.jsx +++ b/src/components/applications/file-explorer/FileExplorer.jsx @@ -37,6 +37,7 @@ export function FileExplorer({ startPath }) { const [currentDirectory, setCurrentDirectory] = useState(virtualRoot.navigate(startPath ?? "~")); const [path, setPath] = useState(currentDirectory.path); const windowsManager = useWindowsManager(); + const [showHidden] = useState(true); const changeDirectory = (path, absolute = false) => { const directory = absolute ? virtualRoot.navigate(path) : currentDirectory.navigate(path); @@ -107,7 +108,7 @@ export function FileExplorer({ startPath }) {
- {currentDirectory.files.map((file, index) => + {currentDirectory.getFiles(showHidden).map((file, index) => )} - {currentDirectory.subFolders.map(({ name }, index) => + {currentDirectory.getSubFolders(showHidden).map(({ name }, index) =>