mirror of
https://github.com/blueedgetechno/windows11
synced 2026-11-26 17:28:19 +08:00
commit
b3830cebfd
9 files changed
+59
-12
No files matched your search
@@ -141,7 +141,9 @@ export const StartMenu = () => {
|
||||
<div className="reApps">
|
||||
{start.rcApps.slice(0, 6).map((app, i) => {
|
||||
return app.name ? (
|
||||
<div key={i} className="rnApp">
|
||||
<div key={i} className="rnApp" value={app.action != null}
|
||||
onClick={clickDispatch} data-action={app.action}
|
||||
data-payload={app.payload || "full"} >
|
||||
<Icon className="pnIcon" src={app.icon} width={32} />
|
||||
<div className="acInfo">
|
||||
<div className="appName">{app.name}</div>
|
||||
|
||||
@@ -241,9 +241,8 @@ body[data-theme="dark"] .startMenu {
|
||||
.recApps {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
// margin-top: 12px;
|
||||
overflow: auto;
|
||||
// max-height: calc(100% - 332px);
|
||||
max-height: calc(100% - 332px);
|
||||
}
|
||||
|
||||
.reApps {
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { useSelector, useDispatch } from "react-redux";
|
||||
import { Icon, Image, ToolBar } from "../../../utils/general";
|
||||
|
||||
import data from "./assets/settingsData.json";
|
||||
|
||||
export const Settings = () => {
|
||||
const apps = useSelector((state) => state.apps);
|
||||
const wnapp = useSelector((state) => state.apps.settings);
|
||||
const [dpath, setPath] = useState("");
|
||||
const dispatch = useDispatch();
|
||||
|
||||
return (
|
||||
<div
|
||||
className="settingsApp floatTab dpShad"
|
||||
data-size={wnapp.size}
|
||||
data-max={wnapp.max}
|
||||
style={{
|
||||
...(wnapp.size == "cstm" ? wnapp.dim : null),
|
||||
zIndex: wnapp.z,
|
||||
}}
|
||||
data-hide={wnapp.hide}
|
||||
id={wnapp.icon + "App"}
|
||||
>
|
||||
<ToolBar app={wnapp.action} icon={wnapp.icon} size={wnapp.size} name="Settings" />
|
||||
<div className="windowScreen flex flex-col" data-dock="true">
|
||||
<div className="restWindow flex-grow flex flex-col">
|
||||
<div className="flex-grow grid place-items-center text-3xl">Coming soon</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -12,6 +12,7 @@ export * from './apps/terminal';
|
||||
export * from './apps/notepad';
|
||||
export * from './apps/calculator';
|
||||
export * from './apps/explorer';
|
||||
export * from './apps/settings';
|
||||
export * from './apps/about';
|
||||
export * from './apps/spotify';
|
||||
export * from './apps/discord';
|
||||
|
||||
@@ -142,7 +142,7 @@ body[data-theme="dark"] .calcApp {
|
||||
background: #060606;
|
||||
}
|
||||
|
||||
.msfiles{
|
||||
.msfiles {
|
||||
--bg0: #edf2fe;
|
||||
--bg1: #ffffff;
|
||||
--bg2: #f5f5f5;
|
||||
@@ -153,7 +153,7 @@ body[data-theme="dark"] .calcApp {
|
||||
--focus-bg: rgba(0, 183, 255, 0.25);
|
||||
}
|
||||
|
||||
body[data-theme="dark"] .msfiles{
|
||||
body[data-theme="dark"] .msfiles {
|
||||
--bg0: #19212e;
|
||||
--bg1: #191919;
|
||||
--bg2: #1c1c1c;
|
||||
@@ -163,3 +163,14 @@ body[data-theme="dark"] .msfiles{
|
||||
--hover-bg: rgba(136, 136, 136, 0.5);
|
||||
--focus-bg: rgba(228, 228, 228, 0.5);
|
||||
}
|
||||
|
||||
.settingsApp {
|
||||
--bg0: #eff4f9;
|
||||
|
||||
background: var(--bg0);
|
||||
color: var(--dark-txt);
|
||||
}
|
||||
|
||||
body[data-theme="dark"] .settingsApp {
|
||||
--bg0: #202020;
|
||||
}
|
||||
@@ -155,7 +155,7 @@
|
||||
}
|
||||
|
||||
.loader-svg {
|
||||
stroke-width: 6px;
|
||||
stroke-width: 8px;
|
||||
stroke-linecap: round;
|
||||
stroke: #fefefe;
|
||||
stroke-dasharray: 242;
|
||||
@@ -165,7 +165,7 @@
|
||||
@keyframes fill-animation {
|
||||
0% {
|
||||
stroke-dasharray: 40 242;
|
||||
stroke-dashoffset: 0;
|
||||
stroke-dashoffset: 282;
|
||||
}
|
||||
|
||||
50% {
|
||||
@@ -175,6 +175,6 @@
|
||||
|
||||
100% {
|
||||
stroke-dasharray: 40 242;
|
||||
stroke-dashoffset: 282;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ export const BootScreen = (props) => {
|
||||
<div className={blackout ? "hidden" : ""}>
|
||||
<Image src="asset/bootlogo" w={180} />
|
||||
<div className="mt-48" id="loader">
|
||||
<svg class="svg-container" height="60" width="60" viewBox="0 0 100 100">
|
||||
<svg class="svg-container" height="48" width="48" viewBox="0 0 100 100">
|
||||
<circle class="loader-svg" cx="50" cy="50" r="45"></circle>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
+2
-1
@@ -26,7 +26,8 @@ var apps = [{
|
||||
{
|
||||
name: 'Settings',
|
||||
icon: 'settings',
|
||||
type: 'app'
|
||||
type: 'app',
|
||||
action: 'SETTINGS'
|
||||
},
|
||||
{
|
||||
name: 'File Explorer',
|
||||
|
||||
+2
-2
@@ -15,10 +15,10 @@ var {
|
||||
pinned: (localStorage.getItem("pinned") &&
|
||||
JSON.parse(localStorage.getItem("pinned"))) || ["Browser", "Word", "PowerPoint", "OneNote", "Mail", "To Do", "Store",
|
||||
"Photos", "Buy me a coffee", "Notepad", "White Board", "Calculator",
|
||||
"Spotify", "Twitter", "VS Code", "Terminal", "Github", "Discord"
|
||||
"Spotify", "Twitter", "File Explorer", "Terminal", "Github", "Discord"
|
||||
],
|
||||
recent: (localStorage.getItem("recent") &&
|
||||
JSON.parse(localStorage.getItem("recent"))) || ["Mail", "Twitter", "Terminal", "Github", "VS Code", "Spotify", "Edge"]
|
||||
JSON.parse(localStorage.getItem("recent"))) || ["Mail", "Twitter", "Terminal", "Github", "File Explorer", "Spotify", "Edge"]
|
||||
};
|
||||
|
||||
if(desktop.includes("Buy me a coffee")==false){
|
||||
|
||||
Reference in new issue
Block a user