From 218c9e9f04f817fbba78d2f882d21b44e5ec0cda Mon Sep 17 00:00:00 2001 From: Blue edge Date: Fri, 12 Nov 2021 19:59:33 +0530 Subject: [PATCH] edge browser dark mode --- src/containers/applications/apps/edge.js | 19 ++++++++++--------- src/containers/applications/tabs.scss | 23 +++++++++++++++++++++-- src/containers/applications/wnapp.scss | 22 +++++++++++++++++----- 3 files changed, 48 insertions(+), 16 deletions(-) diff --git a/src/containers/applications/apps/edge.js b/src/containers/applications/apps/edge.js index cd8abfcec..3ef00be50 100644 --- a/src/containers/applications/apps/edge.js +++ b/src/containers/applications/apps/edge.js @@ -115,21 +115,22 @@ export const EdgeMenu = ()=>{
-
+
New Tab
-
- - - - +
+ + + +
{ payload={2} width={14} margin="0 10px"/>
-
+
{Object.keys(iframes).map(mark=>{ return( diff --git a/src/containers/applications/tabs.scss b/src/containers/applications/tabs.scss index cef855b05..9511f5e80 100644 --- a/src/containers/applications/tabs.scss +++ b/src/containers/applications/tabs.scss @@ -116,8 +116,10 @@ width: 176px; height: 100%; margin: 0 4px; + background: var(--bg1); + color: var(--txt-col); border-radius: 4px 4px 0 0; - box-shadow: 2px 0 2px rgba(80, 80, 80, 0.2); + box-shadow: 2px 0 2px var(--shd); display: flex; justify-content: space-between; align-items: center; @@ -125,7 +127,7 @@ font-size: 0.72em; .uicon { - color: #505050; + color: var(--gray-txt); } } } @@ -138,14 +140,31 @@ scroll-behavior: smooth; } +.addressBar{ + background: var(--bg1); + + .uicon{ + color: var(--med-txt); + } +} + .addCont { width: 80%; input { box-sizing: border-box; + background: var(--ipbar); + color: var(--txt-col); + border-radius: 4px; + border: solid 1px var(--comp-txt); } } +.bookbar{ + background: var(--bg1); + color: var(--txt-col); +} + .cmdcont{ height: calc(100% - 24px); } diff --git a/src/containers/applications/wnapp.scss b/src/containers/applications/wnapp.scss index 2c289e351..f7c7390e0 100644 --- a/src/containers/applications/wnapp.scss +++ b/src/containers/applications/wnapp.scss @@ -3,8 +3,7 @@ */ @font-face { font-family: "Spotify"; - src: url('./apps/assets/spotify.woff2') format("woff2"), - url('./apps/assets/spotify.ttf') format("truetype"); + src: url("./apps/assets/spotify.woff2") format("woff2"), url("./apps/assets/spotify.ttf") format("truetype"); } body { @@ -28,7 +27,22 @@ body[data-theme="dark"] { } .edgeBrowser { - background: rgb(231, 234, 236); + --bg0: #e7eaec; + --bg1: #f7fafc; + --ipbar: #fefefe; + --shd: rgba(80, 80, 80, 0.2); + background: var(--bg0); +} + +body[data-theme="dark"] .edgeBrowser { + --bg0: #222228; + --ipbar: #222228; + --bg1: rgb(45, 45, 51); + --shd: rgba(0, 0, 0, 0.3); + + .edgenavicon{ + filter: invert(1); + } } .vscodeWn { @@ -56,7 +70,6 @@ body[data-theme="dark"] .wnstore { --rib-bg: #2f2e30b8; --rib2-bg: #2c2f32; --det-bg: #282c32; - background: var(--bg-color); } @@ -74,7 +87,6 @@ body[data-theme="dark"] .wnstore { --bg3: #f9f9f9; --err-bg: rgb(255, 255, 255, 0.1); --err-txt: #999; - background: var(--bg1); color: var(--dark-txt); -webkit-backdrop-filter: blur(21px);