From 2f55e7b663401fbbe4dede09784e27803e8923f7 Mon Sep 17 00:00:00 2001 From: tjy-gitnub <2017225905@qq.com> Date: Tue, 14 Mar 2023 22:26:26 +0800 Subject: [PATCH] =?UTF-8?q?v4.3.0=20=E5=85=B6=E5=AE=9E=E6=88=91=E6=83=B3?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E6=88=905.0=E7=89=88=E7=9A=84=20-=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E8=8F=9C=E5=8D=95=E9=87=8D=E6=96=B0=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=20-=E5=88=97=E8=A1=A8=E6=82=AC=E5=81=9C=E7=AB=8B=E4=BD=93?= =?UTF-8?q?=E6=95=88=E6=9E=9C(=E5=85=A8=E5=B1=80)=20-=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E6=82=AC=E5=81=9C=E6=8F=90=E7=A4=BA=E6=A1=86?= =?UTF-8?q?(=E5=85=A8=E5=B1=80)=20-=E8=AE=B0=E4=BA=8B=E6=9C=AC=E5=85=A8?= =?UTF-8?q?=E6=96=B0=E8=AE=BE=E8=AE=A1=E4=B8=8E=E5=8A=9F=E8=83=BD(?= =?UTF-8?q?=E5=90=91Word=E5=8A=AA=E5=8A=9B)=20-=E8=AE=A1=E7=AE=97=E5=99=A8?= =?UTF-8?q?=E6=96=B0=E6=A0=B7=E5=BC=8F=20-=E6=96=B0=E5=A2=9E=E5=A4=9A?= =?UTF-8?q?=E5=BC=80=E4=BA=9A=E5=85=8B=E5=8A=9B=E8=AE=BE=E7=BD=AE=20-?= =?UTF-8?q?=E5=85=B3=E4=BA=8E=E5=BA=94=E7=94=A8=E6=9B=B4=E6=96=B0=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=8A=A8=E7=94=BB=20-=E6=96=87=E4=BB=B6=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E7=AE=A1=E7=90=86=E5=99=A8=E7=9A=84=E6=96=B0=E5=8A=A8?= =?UTF-8?q?=E7=94=BB=20-=E6=A1=8C=E9=9D=A2=E5=9B=BE=E6=A0=87=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=95=88=E6=9E=9C=20-=E4=BF=AE=E5=A4=8D=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E5=B0=8F=E7=AB=96=E6=9D=A1=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20-=E6=96=B0=E6=96=B0=E9=97=BB=20-=E7=BB=86?= =?UTF-8?q?=E8=8A=82=E4=BC=98=E5=8C=96=E5=92=8C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 52 +++++---- apps/style/about.css | 23 ++-- apps/style/calc.css | 12 ++- apps/style/explorer.css | 22 +++- apps/style/notepad.css | 15 +++ apps/style/setting.css | 23 ++-- bg.svg | 2 +- desktop.css | 217 +++++++++++++++++++++++++++++-------- desktop.html | 164 +++++++++++++++++----------- desktop.js | 232 +++++++++++++++++++++++++++------------- img/wsm.png | Bin 0 -> 127036 bytes sw.js | 2 +- 12 files changed, 530 insertions(+), 234 deletions(-) create mode 100644 img/wsm.png diff --git a/README.md b/README.md index 84c2179..66dbaa5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Windows 12 网页版 -> 又开学了。。。 +> 大家的建议我都收到了,非常感谢宝贵建议。这里对 [前景规划](#前景规划) 做了一些更改 - [Windows 12 网页版](#windows-12-网页版) - [前言](#前言) @@ -40,31 +40,29 @@ ## 前景规划 关于该项目的路径规划: -- 基本功能与应用 -- 外观整体优化 -- 加入特效 -- 窗口功能 -- 应用完善 -- 添加更多个性化方面的设置 -- 动态壁纸 -- 完善小组件,添加到桌面等功能 -- 更多任务栏的自定义 -- 添加Edge应用 -- 丰富应用生态 +- [x] 基本功能与应用 +- [x] 外观整体优化 +- [x] 加入特效 +- [x] 窗口功能 +- [x] 应用完善 +- [ ] 添加更多个性化方面的设置 +- [ ] 添加Edge应用 +- [ ] 完善小组件,添加到桌面等功能 +- [ ] 动态壁纸 +- [ ] 更多任务栏的自定义 +- [ ] 丰富应用生态 下面是一些...呃......畅..想 `~o~)/` - -- 建立文件系统 -- 建立自己的可执行文件机制 -- 将exe文件转化并执行 -- 提供更多api供应用调用 -- 内置浏览器内核,成为应用 -- 将项目更名为 "Windows 12" -- 封装到Windows中系统中 -- 将启动程序设为此应用 -- 去除多余系统功能,封装成独立的操作系统 -- 将项目更名为 "Doswin 1.0" -- 适配量子计算机 -- 接入chatgpt -- 将项目更名为 "550W" - \ No newline at end of file +- [ ] 建立文件系统 +- [ ] 建立自己的可执行文件机制 +- [ ] 将exe文件转化并执行 +- [ ] 提供更多api供应用调用 +- [ ] 内置浏览器内核,成为应用 +- [ ] 将项目更名为 "Windows 12" +- [ ] 封装到Windows中系统中 +- [ ] 将启动程序设为此应用 +- [ ] 去除多余系统功能,封装成独立的操作系统 +- [ ] 将项目更名为 "Doswin 1.0" +- [ ] 适配量子计算机 +- [ ] 接入chatgpt +- [ ] 将项目更名为 "550W" \ No newline at end of file diff --git a/apps/style/about.css b/apps/style/about.css index b67c927..3addede 100644 --- a/apps/style/about.css +++ b/apps/style/about.css @@ -20,10 +20,11 @@ #win-about>.cnt{ overflow: auto; - transform: translate(0, 50%); + transform: translate(0, 30%); opacity: 0; width: 0; transition: transform 300ms cubic-bezier(0,0,0,1), opacity 300ms 50ms; + padding: 0 5px 60px 0; /* display: none; */ } @@ -57,22 +58,26 @@ #win-about>.update>div>details{ background-color: var(--card); - padding: 10px; + padding: 10px 10px 0 10px; border-radius: 10px; box-shadow: 3px 3px 5px var(--sd); margin: 10px 10px 0 0; - transform: scale(0.98); - transition: transform 50ms; + transition: 100ms,height 0ms,padding-bottom 100ms ease-out; + overflow: hidden; + height: 45px; } -#win-about>.update>div>details:hover{ - transform: none; +#win-about>.update>div>details[open]{ + padding-bottom: 10px; + height: 100%; +} + +#win-about>.update>div>details:not([open]):hover{ + filter: brightness(1.2); } #win-about>.update>div>details:active{ - filter: blur(0.5px); - transform: scale(0.95); - transition: transform 400ms cubic-bezier(0.14, 1.02, 0.17, 0.03); + opacity: 0.6; } #win-about>.update>div>details>summary{ diff --git a/apps/style/calc.css b/apps/style/calc.css index ca22aae..390b994 100644 --- a/apps/style/calc.css +++ b/apps/style/calc.css @@ -32,9 +32,14 @@ transition: 40ms; border-radius: 7px; border: 1.5px solid #63636330; - box-shadow: 0px 2px 2px var(--sd); + box-shadow: 0px 1px 4px var(--bd); background: var(--card); padding-top: 5px; + border: 1.5px solid var(--bd); + border-top: 2px solid var(--bd); + border-bottom: 1px solid var(--bd); + /* border-color: var(--bd); */ + transform-origin: bottom; } #win-calc>.keyb>.b.u{ padding-top: 5px; @@ -42,6 +47,7 @@ #win-calc>.keyb>.b.ans{ background-image: linear-gradient(120deg, var(--theme-1), var(--theme-2)); border: none; + color: #ddd; } #win-calc>.keyb>.b.ans:hover{ backdrop-filter: brightness(0.8); @@ -58,6 +64,6 @@ #win-calc>.keyb>.b:active{ opacity: 0.8; - transform: scale(0.94) translate(0,1px); - box-shadow: 0px 1px 1px var(--sd); + transform: scale(0.96); + box-shadow: 0px 1px 1px var(--bd); } \ No newline at end of file diff --git a/apps/style/explorer.css b/apps/style/explorer.css index 3abd593..c927563 100644 --- a/apps/style/explorer.css +++ b/apps/style/explorer.css @@ -134,9 +134,24 @@ } #win-explorer>.main>.content>.tool>.tit{ - display: flex; + /* display: flex; */ margin-top: 3px; margin-left: 5px; + overflow: hidden; + border: 1.5px solid transparent; + display: block; +} + +#win-explorer>.main>.content>.tool>.tit:hover{ + height: min-content; + min-width: 100px; + background: var(--unfoc); + border-radius: 5px; + border: 1.5px solid #6f6f6f30; + padding: 3px 5px; + margin: 0 5px 3px 0; + box-shadow: 2px 2px 5px var(--sd); + z-index: 1; } #win-explorer>.main>.content>.tool>.search{ @@ -171,7 +186,7 @@ @keyframes exp-show { 0%{ - transform: scale(0.9) translate(0,50%); + transform: translateX(-10px); opacity: 0; } 100%{ @@ -194,7 +209,8 @@ } #win-explorer>.main>.content>.view>.item:active{ - transform: scale(0.98); + transform: scale(0.99); + transform-origin: bottom; } #win-explorer>.main>.content>.view>.item>img{ diff --git a/apps/style/notepad.css b/apps/style/notepad.css index fad24d0..ec74a98 100644 --- a/apps/style/notepad.css +++ b/apps/style/notepad.css @@ -27,6 +27,21 @@ transition: 200ms; } +#win-notepad>.text-box *:not(div):not(br){ + border-radius: 8px; + outline: 2px solid transparent; + transition: 100ms; + display: block; +} + +#win-notepad>.text-box *:not(div):not(br):focus{ + background: red; +} + +#win-notepad>.text-box *:not(div):not(br):hover{ + outline-color: #2983cc; +} + #win-notepad>.text-box:focus{ transform: none; opacity: 1; diff --git a/apps/style/setting.css b/apps/style/setting.css index 0dcb7f3..caaf5ef 100644 --- a/apps/style/setting.css +++ b/apps/style/setting.css @@ -12,11 +12,6 @@ font-family: SettingsIcons; } -html { - width: 100%; - overflow-x: hidden; -} - #win-setting { display: flex; height: calc(100% - 32px); @@ -119,7 +114,7 @@ html { } #win-setting>.page>.cnt { - overflow: auto; + overflow-y: scroll; transform: translate(0, 50%) scale(0.8); opacity: 0; height: 0; @@ -171,6 +166,7 @@ html { .setting-list>a.dp{ margin-bottom: 0px; + z-index: 1; } .setting-list>a.dp.show { @@ -190,11 +186,13 @@ html { } .setting-list>div.dp { - border: none; + border: 1.5px solid #6f6f6f30; + border-top: none; border-top-left-radius: 0; border-top-right-radius: 0; max-height: 0px; - transition: 200ms; + transition: max-height 300ms,padding 100ms 200ms linear,opacity 200ms 100ms,transform 200ms 200ms; + transform: translateY(-50px); overflow: hidden; display: block; padding: 0 15px; @@ -202,14 +200,15 @@ html { /* transform-origin: bottom; */ opacity: 0; /* display: none; */ - margin:0 0 5px 0; + margin:0 0 4px 0; } .setting-list>div.dp.show { - border: 1.5px solid #6f6f6f30; - border-top: none; - max-height: 1000px; padding: 10px 15px; + transition: max-height 300ms 100ms,padding 100ms 50ms linear,opacity 200ms 100ms,transform 300ms 50ms; + transform: none; + max-height: 1000px; + /* padding: 10px 15px; */ opacity: 1; /* display: block; */ } diff --git a/bg.svg b/bg.svg index c5c5acd..7e5be71 100644 --- a/bg.svg +++ b/bg.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/desktop.css b/desktop.css index 3e5d0ad..2d729d0 100644 --- a/desktop.css +++ b/desktop.css @@ -5,13 +5,13 @@ --text: #000; --bg: #ffffff; --bg30: #ffffff30; - --bg50: #ffffff60; + --bg50: #ffffff80; --bg70: #ffffff80; --sd: #33333370; - --card: #efefef60; - --hover: #ffffff70; - --hover-half: #ffffff50; - --hover-b: #00000016; + --card: #efefef55; + --hover: #ffffff65; + --hover-half: #ffffff40; + --hover-b: #1111110f; --bggrey: #ddd; --fill:#d3d3d370; --bgul: url('bg.svg'); @@ -23,6 +23,8 @@ --theme-1:#ad6eca; --theme-2:#3b91d8; --href:#2983cc; + --bd:#8f8f8f30; + /* --bd:#ffffff10; */ } :root.dark { @@ -33,9 +35,9 @@ --bg70: #00000080; --sd: #000000a0; --card: #72727240; - --hover: #aaaaaa20; + --hover: #aaaaaa40; --hover-half: #ffffff20; - --hover-b: #ffffff16; + --hover-b: #eeeeee0f; --bggrey: #444; --fill:#54545470; --bgul: url('bg-dark.svg'); @@ -44,6 +46,7 @@ --bar: #7272722a; --hr:#00000050; --unfoc:#333; + --bd:#ffffff06; } :root.nobr *, @@ -65,8 +68,9 @@ --sd:none; } -:root.noblur *{ - backdrop-filter: none !important; +:root.moreblur .window:not(.foc){ + background-color: var(--bg70); + backdrop-filter: blur(30px); } :root.noblur{ @@ -164,6 +168,7 @@ p { html { position: fixed; + width: 100%; } body { @@ -238,7 +243,7 @@ list>a, .wg>.titbar>.more, .wg.calc>.content>.b, .button { - transition: transform 400ms cubic-bezier(0.14, 1.02, 0.17, 0.03) !important; + transition: 80ms, transform 400ms cubic-bezier(0.14, 1.02, 0.17, 0.03) !important; } .act:active, @@ -256,7 +261,7 @@ list>a:active, #s-m-l>list>a, #win-setting>.menu>list>a { - border: 2px solid #00000000; + /* border: 2px solid #00000000; */ /* background-clip: padding-box, border-box; background-origin: padding-box, border-box; */ } @@ -349,7 +354,7 @@ list>a:active, } #taskbar { - padding: 3px 5px; + padding: 3px 2px; transition: 80ms; overflow: hidden; width: 0; @@ -358,10 +363,14 @@ list>a:active, #taskbar>a { border-radius: 5px; height: 34px; - width: 34px; + width: 38px; transition: 100ms; - padding: 4px 0 0 5px; + padding: 4px 5px; display: block; + margin: 0; + background-clip: padding-box; + border-left: 2px solid transparent; + border-right: 2px solid transparent; } #taskbar>a:hover { @@ -446,17 +455,22 @@ list>a:active, #taskbar>a:not(.foc)::after { background: linear-gradient(90deg, #7f7f7f, #7f7f7f); width: 12px; - left: 6.2px; + left: 6px; } -#taskbar>a:hover:after { +#taskbar>a:not(.foc):hover:after { + width: 16px; + left: 4.2px; +} + +#taskbar>a.foc:hover:after { width: 22px; left: 1.2px; } #taskbar>a.min:hover:after { - width: 16px; - left: 4.2px; + width: 18px; + left: 3.2px; } .dock.date { @@ -599,7 +613,7 @@ list>a:active, } #search-btn.show>svg.in { - transform: scale(1.2); + transform: scale(1.1); filter: hue-rotate(380deg) brightness(1.1); } @@ -1036,29 +1050,99 @@ input-before { position: relative; bottom: 0; background-image: linear-gradient(90deg, var(--theme-1), var(--theme-2)); - width: 100%; + width: calc(100% - 6px); + left: 3px; height: 3px; - border-radius: 3px; + border-radius: 10px; } #search-win>.ans { display: flex; flex-grow: 1; - overflow: auto; + overflow-y: auto; } #search-win>.ans>.list { width: 250px; height: 100%; + margin-right: 5px; + overflow: auto; } -#search-win>.ans>.list>list>a:hover { - background-color: #ffffff50; +#search-win>.ans>.list>list>a { + padding: 5px 5px 0px 10px; + display: flex; + /* transition: 70ms!important; */ +} + +#search-win>.ans>.list>list>a:active{ + transform: scale(0.97); +} + +#search-win>.ans>.list>list>a>.bi{ + display: block; + margin-right: 3px; + font-size: 24px; + margin-top: -5px; + background-image: linear-gradient(100deg, var(--theme-1), var(--theme-2)); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +#search-win>.ans>.list>list>a>img{ + height: 23px; + width: 23px; + margin: 1px 5px 7px 0; } #search-win>.ans>.view { flex-grow: 1; - height: 100%; + border-radius: 10px; + background: var(--card); + padding: 3px; + box-shadow: 2px 2px 5px var(--sd); + border: 1.5px solid #6f6f6f30; + display: none; + overflow: auto; + /* height: 100%; */ + margin: 2px 5px 5px 0; +} + +#search-win>.ans>.view.show{ + display: block; +} + +#search-win>.ans>.view>.fname>.bi{ + font-size: 70px; + display: block; + margin: 30px 0 5px 0; + text-align: center; +} + +#search-win>.ans>.view>.fname>.name{ + font-size: 18px; + text-align: center; +} +#search-win>.ans>.view>.fname>.type{ + font-size: 13px; + text-align: center; + opacity: 0.5; + margin-bottom: 5px; +} + +#search-win>.ans>.view>.option>list{ + margin: 10px; +} + +#search-win>.ans>.view>.option>list>a{ + border-radius: 6px; + transition: 70ms !important; + padding: 4px 12px; + font-size: 14px; +} + +#search-win>.ans>.view>.option>list>a:active{ + transform: scale(0.97); } #widgets { @@ -1136,6 +1220,19 @@ input-before { #widgets>.widgets>.content>.grid>.wg { background: var(--card); + transition: 100ms; + animation: wgs 150ms; +} + +@keyframes wgs { + 0%{ + transform:scale(0.6); + opacity: 0.5; + } + 100%{ + transform:none; + opacity: 1; + } } #widgets>.widgets>.content>.template { @@ -1374,18 +1471,21 @@ input-before { text-align: center; margin: 8px 10px 2px 10px; padding: 0 3px 3px 3px; - border: 2px solid transparent; + border: 1.5px solid transparent; + border-top: 2px solid transparent; + border-bottom: 1px solid transparent; } #desktop>div:hover { + border-color: var(--bd); background-color: var(--hover-m); backdrop-filter: blur(15px) saturate(0.9) brightness(1.4); } #desktop>div:active{ background-color: var(--hover-m); - backdrop-filter: blur(3px) brightness(1.5); - border: 2px solid var(--href); + backdrop-filter: blur(5px) brightness(1.5); + border-color: var(--hr); } #desktop>div>img { @@ -1431,7 +1531,7 @@ input-before { background-origin: padding-box, border-box; background-image: linear-gradient(var(--bg), var(--bg)), linear-gradient(90deg, var(--theme-1), var(--theme-2)); border-bottom-color: transparent; - box-shadow: 1px 1px 4px 2px var(--sd); + box-shadow: 1px 1px 10px var(--sd); opacity: 1; } @@ -1459,17 +1559,12 @@ input-before { } .btn:hover { - background-color: #ffffff50; + background: var(--hover); } .btn:active { - font-size: 17px; - padding: 4px 8px; -} - -.btn-icon.big:active { - font-size: 13px; - padding: 6px 10px; + transform: scale(0.9); + opacity: 0.5; } .button{ @@ -1528,9 +1623,8 @@ input-before { #cm>list>a { - padding: 5px 12px; + padding: 4px 12px; margin: 0 0; - transition: 80ms; border-radius: 7px; font-size: 15px; display: flex; @@ -1611,6 +1705,30 @@ input-before { background-color: var(--hover-b); } +#descp{ + position: fixed; + background: var(--cm); + border-radius: 6px; + box-shadow: 2px 2px 10px var(--sd); + z-index: 102; + border: 1.5px solid #4f4f4f30; + backdrop-filter: blur(15px) saturate(2); + font-size: 13px; + padding: 4px 7px; + margin: 0; + transition: opacity 100ms; + opacity: 0; + display: none; +} + +#descp.show{ + opacity: 1; +} + +#descp.show-begin{ + display: block; +} + .more-btn { background-image: linear-gradient(100deg, var(--theme-1), var(--theme-2)); @@ -1753,11 +1871,19 @@ list>* { cursor: pointer; } +list>a{ + border: 1.5px solid transparent; + border-top: 2px solid transparent; + border-bottom: 1px solid transparent; + transition: 80ms,transform 400ms cubic-bezier(0.14, 1.02, 0.17, 0.03),border 50ms 50ms!important; +} -list>*:hover { + +list>a:hover { color: var(--text); background-color: var(--hover-half); text-decoration: none; + border-color: var(--bd); } list>hr { @@ -1777,10 +1903,12 @@ list>hr:hover { list>.text { margin: 0; cursor: inherit; + border: none; } list>.text:hover { background-color: unset; + border: none; } list>span.focs{ @@ -1788,16 +1916,18 @@ list>span.focs{ width: 4px; height: 20px; background: linear-gradient(0deg, var(--theme-1), var(--theme-2)); + background-size: cover; padding: 0; border-radius: 2px; position: relative; - margin: 7.5px 7px; + margin: -30px 7px 0 7px; z-index: 1; - transition: 350ms cubic-bezier(0.8, 0, 0.2, 1); + transition: 500ms cubic-bezier(1, 0, 0, 1); + /* transform-origin: top; */ } list>span.focs.cl{ - animation: fcl 150ms cubic-bezier(0.7,0,0.3,1) 100ms; + animation: fcl 200ms cubic-bezier(1,0.8,0,0.2) 160ms; } @keyframes fcl { @@ -1904,6 +2034,7 @@ list>span.focs.cl{ .window.foc { background-color: var(--bg70); backdrop-filter: blur(80px) saturate(1.3); + filter: none; -webkit-backdrop-filter: blur(80px) saturate(1.3); box-shadow: 3px 3px 20px 3px var(--sd); } diff --git a/desktop.html b/desktop.html index 5e33b20..5bd20e8 100644 --- a/desktop.html +++ b/desktop.html @@ -66,7 +66,7 @@

Administartor

-

12:00

星期一, 2368年13月34日

- + + setTimeout(() => {window.location='shutdown.html';},200);" win12_title="关机"> + setTimeout(() => {window.location='reload.html';},200);" win12_title="重启"> - - +
全部应用文档网页 @@ -192,12 +185,35 @@
- 什么也没有 +

推荐

+ +

设置

+ +

关于Win12网页版

- -

搜索 ""

+
+ +

+

+
+
+
@@ -208,21 +224,21 @@

小组件

- +
- +
@@ -270,18 +286,22 @@ $('#win-about>.about').removeClass('show');$('#win-about>.update').addClass('show'); $('#win-about>.update>div>details:first-child').attr('open','open')">详细信息 >
-
-

Windows13 即将发布,官方透露: 将自带 Macos 子系统

- 详细信息 > +
+

Windows13 即将发布,官方透露: 将自带 Macos 子系统

+ 详细信息 >

Windows11 将于下周停止支持

详细信息 >
-
-

2029年,微软终重拾Cortana 微软员工透露:将与Siri整合

+
+

2029年,微软终重拾Cortana 微软员工透露:将与Siri整合

详细信息 >
+
+

微软发布 Windows Subsystem for MocOS

+ 详细信息 > +

今日凌晨,Minecraft把代理权交给中国航天员谭景元,网易败下阵来了?

详细信息 > @@ -290,9 +310,9 @@

中国宇航员谭景元昨天下午成功登月

详细信息 >
-
+

想给新闻增加更多奇思妙想?
快在github上来提交吧

- 提交issues >
@@ -316,7 +336,7 @@
@@ -573,22 +596,22 @@

圆角

设置系统界面中是否启用圆角

- +

动画

系统界面元素过渡动画

- +

阴影

为系统界面元素添加阴影效果

- +
-

透明效果

某些界面启用亚克力背景透明效果

+

多窗口透明

为所有窗口开启透明效果,而不是仅用于焦点窗口(开启后窗口的拖拽操作可能卡顿)

- +
@@ -728,9 +751,9 @@

简介

  Windows 12 网页版是一个开源项目, 由谭景元原创, 使用 Html,css,js , 在网络上模拟、创新操作系统

-

  此项目已发布至 Github, 点击此处查看

-

  若您对于该项目有任何意见或建议,请在 Github 上提交 issues, 您的问题会被尽可能快地解决

-

  原创作者谭景元,点击以了解详细

+

  此项目已发布至 Github, 点击此处查看

+

  若您对于该项目有任何意见或建议,请在 Github 上提交 issues, 您的问题会被尽可能快地解决

+

  原创作者谭景元,点击以了解详细

开源说明

  由于这是一个开源项目,你可以在任何媒介以任何形式复制、发行本作品。

  你还可以对该项目进行修改、转换或以本作品为基础进行创作。

@@ -744,6 +767,21 @@

更新记录

+
v4.3.0 其实我想发布成5.0版的

+ 欢迎(尽量在issues中,当然也可以在下面版本中链接里)提出问题和建议
+   -搜索菜单重新设计
+   -列表悬停立体效果(全局,深色模式可能会明显一点,灵感源于win11,大家可以帮忙找一个浅色模式的边框颜色)
+   -新增鼠标悬停提示框(全局)
+   -记事本全新设计与功能(向Word努力)
+   -计算器新样式
+   -新增多开亚克力设置
+   -关于应用更新记录动画
+   -文件资源管理器的新动画
+   -桌面图标点击效果
+   -修复设置的小竖条位置问题
+   -新新闻
+   -细节优化和修复

+
v4.2.0 外观整改

参与小调查,帮助改进项目
  -新的计算器外观
@@ -867,7 +905,7 @@

- 更多 + 更多
@@ -890,11 +928,12 @@ 编辑 格式
-
+
+

Type here...

+
另存为
-
diff --git a/desktop.js b/desktop.js index 005a276..c1a140f 100644 --- a/desktop.js +++ b/desktop.js @@ -1,14 +1,14 @@ // 列表点击 + 边框发光 -document.querySelectorAll(`#s-m-l>list>a,#win-setting>.menu>list>a`).forEach(la => { - la.addEventListener('mousemove', e => { - x = e.clientX - $(la).offset()['left']; - y = e.clientY - $(la).offset()['top']; - $(la).css('cssText', `background:radial-gradient(circle at ${x}px ${y}px,var(--hover) 20px, #00000000) center;background-size:110% 100%;border-image:radial-gradient(circle at ${x}px ${y}px,var(--hover) 20px, #00000000 40px) 2;`) - }); - la.addEventListener('mouseout', () => { - $(la).css('cssText', `background-image:radial-gradient(#00000000,#00000000),radial-gradient(#00000000,#00000000);`) - }); -}); +// document.querySelectorAll(`#s-m-l>list>a,#win-setting>.menu>list>a`).forEach(la => { +// la.addEventListener('mousemove', e => { +// x = e.clientX - $(la).offset()['left']; +// y = e.clientY - $(la).offset()['top']; +// $(la).css('cssText', `background:radial-gradient(circle at ${x}px ${y}px,var(--hover) 20px, #00000000) center;background-size:110% 100%;border-image:radial-gradient(circle at ${x}px ${y}px,var(--hover) 20px, #00000000 40px) 2;`) +// }); +// la.addEventListener('mouseout', () => { +// $(la).css('cssText', `background-image:radial-gradient(#00000000,#00000000),radial-gradient(#00000000,#00000000);`) +// }); +// }); document.querySelectorAll(`list.focs`).forEach(li => { // li.querySelectorAll(`a`).forEach(la => { @@ -19,14 +19,15 @@ document.querySelectorAll(`list.focs`).forEach(li => { // $(_).css('left',la.offsetLeft-li.offsetLeft); // }); // }); - li.addEventListener('click',e=>{ - let _=li.querySelector('span.focs'),la=li.querySelector('a.check'); + li.addEventListener('click', e => { + let _ = li.querySelector('span.focs'), la = li.querySelector('a.check'), + las = li.querySelectorAll('a'); $(_).addClass('cl'); - $(_).css('top',la.offsetTop-li.offsetTop-li.offsetHeight); - $(_).css('left',la.offsetLeft-li.offsetLeft); + $(_).css('top', la.offsetTop - las[las.length - 1].offsetTop); + $(_).css('left', la.offsetLeft - li.offsetLeft); setTimeout(() => { $(_).removeClass('cl'); - }, 200); + }, 500); }) }); // 禁止拖拽图片 @@ -75,8 +76,8 @@ let cms = { 'desktop': [ [' 刷新', `$('#desktop').css('opacity','0');setTimeout(()=>{$('#desktop').css('opacity','1');},100);`], [' 切换主题', 'toggletheme()'], - ` 在 Github 中查看此项目`, - ` 发送反馈`, + ` 在 Github 中查看此项目`, + ` 发送反馈`, [' 关于 Win12 网页版', `$('#win-about>.about').addClass('show');$('#win-about>.update').removeClass('show');openapp('about');if($('.window.about').hasClass('min'))minwin('about');`], ], 'winx': [ @@ -120,7 +121,7 @@ let cms = { } }, [' 更多信息', `$('#win-about>.about').addClass('show');$('#win-about>.update').removeClass('show'); - openapp('about');if($('.window.about').hasClass('min'))minwin('about');`] + openapp('about');if($('.window.about').hasClass('min'))minwin('about');$('.dock.about').removeClass('show')`] ], 'msgupdate': [ [' 查看详细', `openapp('about');if($('.window.about').hasClass('min')) @@ -229,7 +230,16 @@ dps = { [' 重做 Ctrl+Y', 'document.execCommand(\'redo\')'], ], 'notepad.view': [ - [' 字体 ', 'hidedp(true);showwin(\'notepad-fonts\');resetfonts();'] + [' 插入正常字块', 'hidedp(true);$(\'#win-notepad>.text-box\')[0].innerHTML+=\'

T

\''], + [' 插入主标题', 'hidedp(true);$(\'#win-notepad>.text-box\')[0].innerHTML+=\'

H1

\''], + [' 插入次标题', 'hidedp(true);$(\'#win-notepad>.text-box\')[0].innerHTML+=\'

H2

\''], + [' 插入副标题', 'hidedp(true);$(\'#win-notepad>.text-box\')[0].innerHTML+=\'

H3

\''], + [' 插入下划线', 'hidedp(true);$(\'#win-notepad>.text-box\')[0].innerHTML+=\'U\''], + [' 插入删除线', 'hidedp(true);$(\'#win-notepad>.text-box\')[0].innerHTML+=\'S\''], + [' 插入斜体字', 'hidedp(true);$(\'#win-notepad>.text-box\')[0].innerHTML+=\'I\''], + [' 插入加粗字', 'hidedp(true);$(\'#win-notepad>.text-box\')[0].innerHTML+=\'B\''], + '
', + [' 字体', 'hidedp(true);showwin(\'notepad-fonts\');resetfonts();'], ] } let dpt = null, isOnDp = false; @@ -291,10 +301,45 @@ function hidedp(force = false) { }, 200); }, 100); } + +// 悬停提示 +document.querySelectorAll('*[win12_title]:not(.notip)').forEach(a => { + a.addEventListener('mouseenter', showdescp); + a.addEventListener('mouseleave', hidedescp); +}) +function showdescp(e) { + $(e.target).attr('data-descp', 'waiting'); + setTimeout(() => { + if ($(e.target).attr('data-descp') == 'hide') { + return; + } + $(e.target).attr('data-descp', 'show'); + $('#descp').css('left', e.clientX + 15); + $('#descp').css('top', e.clientY + 20); + $('#descp').text($(e.target).attr('win12_title')); + $('#descp').addClass('show-begin'); + setTimeout(() => { + if (e.clientY + $('#descp')[0].offsetHeight + 20 >= $('html')[0].offsetHeight) { + $('#descp').css('top', e.clientY - $('#descp')[0].offsetHeight - 10); + } + if (e.clientX + $('#descp')[0].offsetWidth + 15 >= $('html')[0].offsetWidth) { + $('#descp').css('left', e.clientX - $('#descp')[0].offsetWidth - 10); + } + $('#descp').addClass('show'); + }, 100); + }, 500); +} +function hidedescp(e) { + $('#descp').removeClass('show'); + $(e.target).attr('data-descp', 'hide'); + setTimeout(() => { + $('#descp').removeClass('show-begin'); + }, 100); +} // 应用 let apps = { setting: { - init: () => { + init: () => { $('#win-setting>.menu>list>a.system')[0].click(); // let _=$('#win-setting>.menu>list>span.focs'), // la=$('#win-setting>.menu>list>a.system')[0], @@ -304,12 +349,12 @@ let apps = { // _.css('top',la.offsetTop-li.offsetTop-li.offsetHeight); // _.css('left',la.offsetLeft-li.offsetLeft); }, - page:(name)=>{ - $('#win-setting>.page>.cnt.'+name).scrollTop(0); + page: (name) => { + $('#win-setting>.page>.cnt.' + name).scrollTop(0); $('#win-setting>.page>.cnt.show').removeClass('show'); - $('#win-setting>.page>.cnt.'+name).addClass('show'); + $('#win-setting>.page>.cnt.' + name).addClass('show'); $('#win-setting>.menu>list>a.check').removeClass('check'); - $('#win-setting>.menu>list>a.'+name).addClass('check'); + $('#win-setting>.menu>list>a.' + name).addClass('check'); } }, explorer: { @@ -320,9 +365,10 @@ let apps = { $('#win-explorer>.main>.content>.view')[0].innerHTML = `