From a72dd902807d0b120fe966553615487af43e0cc3 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Sun, 3 Jul 2022 22:26:02 -0700 Subject: [PATCH] reimp e133b2c, adjustments for macOS --- .circleci/config.yml | 1 + src/renderer/less/macos.less | 34 +- src/renderer/less/pages.less | 85 ++++- src/renderer/style.css | 33 +- .../views/components/settings-window.ejs | 358 +++++++++--------- 5 files changed, 299 insertions(+), 212 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e02b98b2..739b7308 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -147,6 +147,7 @@ jobs: - run: name: Publish Release command: | + echo "Creating release for Cider v${APP_VERSION} on the ${CIRCLE_BRANCH} branch." gh release create "v${APP_VERSION}" --title "Cider Version ${APP_VERSION} (${CIRCLE_BRANCH})" --generate-notes -R ciderapp/cider-releases ~/Cider/dist/artifacts/*.deb ~/Cider/dist/artifacts/*.AppImage ~/Cider/dist/artifacts/*.snap ~/Cider/dist/artifacts/*.exe ~/Cider/dist/artifacts/*.yml ~/Cider/dist/artifacts/*.blockmap # Orchestrate our job run sequence diff --git a/src/renderer/less/macos.less b/src/renderer/less/macos.less index b7cd49e4..4819a263 100644 --- a/src/renderer/less/macos.less +++ b/src/renderer/less/macos.less @@ -1,6 +1,6 @@ body[platform="darwin"] { html { - background: transparent!important; + background: transparent !important; } &.notransparency::before { @@ -11,6 +11,7 @@ body[platform="darwin"] { &.simplebg { background: transparent; } + &::before { display: none; } @@ -26,6 +27,7 @@ body[platform="darwin"] { .app-chrome .app-chrome-item.search { margin-right: 12px; } + .app-chrome .app-mainmenu { width: 46px; } @@ -35,15 +37,20 @@ body[platform="darwin"] { } } - // &::after { - // position: fixed; - // top:0;left:0;right:0;bottom:0; - // box-shadow: inset 0px 0px .5px 1px rgb(200 200 200 / 40%); - // border-radius: 10px; - // content: " "; - // z-index: 999999; - // pointer-events: none; - // } + &[window-state="normal"] { + &::after { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + box-shadow: inset 0px 0px .5px 1px rgb(200 200 200 / 40%); + border-radius: 10px; + content: " "; + z-index: 999999; + pointer-events: none; + } + } } #app-main { @@ -58,6 +65,13 @@ body[platform="darwin"] { } } + .settings-window.maxed { + .tabs>.col-auto { + transition: padding-top .3s linear; + padding-top: var(--chromeHeight1); + } + } + #apple-music-video-player-controls #player-exit { margin-top: 18px; left: 70px; diff --git a/src/renderer/less/pages.less b/src/renderer/less/pages.less index 32e0a739..fe6d9d4e 100644 --- a/src/renderer/less/pages.less +++ b/src/renderer/less/pages.less @@ -54,7 +54,7 @@ width: 320px; font-size: 14px; position: absolute; - overflow: auto; + overflow: overlay; padding-bottom: 16px; > .list-group { @@ -80,7 +80,7 @@ padding: 16px 32px; overflow: auto; position: fixed; - width: calc(100% - 574px); + // width: calc(100% - 574px); margin-left: 320px; padding-bottom: 16px; } @@ -118,7 +118,10 @@ //Styles Page .installed-themes-page { - + display: flex; + flex-direction: column; + height: 100%; + overflow: hidden; .themeContextMenu { background: transparent; color: var(--keyColor); @@ -157,7 +160,11 @@ .gh-header { z-index: 5; - + padding: 16px; + flex: 0 0 auto; + height: 64px; + display: grid; + align-content: center; .header-text { position: initial !important; justify-content: left !important; @@ -165,17 +172,17 @@ } .gh-content { - display: contents; - flex-direction: column; + display: flex; + flex-direction: row; padding: 0px; + height: 100%; + flex: 0 0 auto; .repos-list { width: 320px; - position: fixed; - overflow: auto; + overflow: overlay; height: 90%; font-size: 14px; - margin: 0 auto; white-space: nowrap; > .list-group { @@ -197,13 +204,11 @@ } .style-editor-container { - height: 90%; + height: 100%; flex: 1; padding: 0px; - margin-left: 320px; - position: fixed; - overflow: auto; - width: calc(100% - 574px); + width: 100%; + overflow: hidden; .stylestack-editor { padding-bottom: 16px; @@ -2070,7 +2075,7 @@ .settings-window { background: var(--baseColorMix); - max-width: 80%; + max-width: 90%; max-height: 90%; width: 100%; height: 100%; @@ -2107,6 +2112,9 @@ display: flex; gap: 10px; align-items: center; + + :nth-child(2) { + } } @@ -2165,6 +2173,11 @@ background-color: rgb(196, 43, 28) } + &.back-btn { + left: 10px; + right: unset; + } + &.minmax-btn { right: 52px; @@ -2192,6 +2205,9 @@ > .col-auto { width: 230px; + overflow-x: hidden; + overflow-y: overlay; + transition: width 0.25s ease-in-out; } .tab-content { @@ -2203,9 +2219,48 @@ overflow-y: overlay; height: 100%; background-color: var(--panelColor2); + padding:0px; padding-top: 48px; border-left: 1px solid var(--borderColor); } + + .github-themes-page, .installed-themes-page { + .header-text { + font-size: 1.25em; + } + } + + .tab-pane { + height:100%; + } + + .settings-tab-content { + height:100%; + } + + &.no-sidebar { + .gh-header { + >.row { + &:last-child { + padding-right: 90px; + } + } + } + .tab-content { + padding-top:0px; + } + + .tabs { + .nav-pills .nav-link { + :nth-child(2) { + display: none; + } + } + >.col-auto { + width: 80px; + } + } + } } } diff --git a/src/renderer/style.css b/src/renderer/style.css index 4c8c1645..988a27d9 100644 --- a/src/renderer/style.css +++ b/src/renderer/style.css @@ -12985,7 +12985,6 @@ input[type=checkbox][switch]:checked:active::before { .github-themes-page { display: flex; flex-direction: column; - padding-top: var(--chromeHeight1); height: 100%; } .github-themes-page .github-avatar { @@ -13009,10 +13008,12 @@ input[type=checkbox][switch]:checked:active::before { margin: 0px; } .github-themes-page .repos-list { - height: 100%; - overflow-y: overlay; + height: 85%; width: 320px; font-size: 14px; + position: absolute; + overflow: auto; + padding-bottom: 16px; } .github-themes-page .repos-list > .list-group { margin: 0px; @@ -13027,11 +13028,14 @@ input[type=checkbox][switch]:checked:active::before { filter: brightness(0.8); } .github-themes-page .github-preview { - height: 100%; + height: 85%; flex: 1; - background: var(--color2); padding: 16px 32px; - overflow-y: overlay; + overflow: auto; + position: fixed; + width: calc(100% - 574px); + margin-left: 320px; + padding-bottom: 16px; } .github-themes-page .gh-content { display: flex; @@ -13042,6 +13046,10 @@ input[type=checkbox][switch]:checked:active::before { .github-themes-page .gh-header { padding: 16px; } +.github-themes-page .gh-header .header-text { + position: initial !important; + justify-content: left !important; +} .github-themes-page .installed-themes-page .style-editor-container { height: 100%; flex: 1; @@ -13086,8 +13094,8 @@ input[type=checkbox][switch]:checked:active::before { z-index: 5; } .installed-themes-page .gh-header .header-text { - position: initial; - justify-content: left; + position: initial !important; + justify-content: left !important; } .installed-themes-page .gh-content { display: contents; @@ -13096,10 +13104,12 @@ input[type=checkbox][switch]:checked:active::before { } .installed-themes-page .gh-content .repos-list { width: 320px; - position: absolute; + position: fixed; overflow: auto; height: 90%; font-size: 14px; + margin: 0 auto; + white-space: nowrap; } .installed-themes-page .gh-content .repos-list > .list-group { margin: 0px; @@ -13117,12 +13127,11 @@ input[type=checkbox][switch]:checked:active::before { .installed-themes-page .gh-content .style-editor-container { height: 90%; flex: 1; - /* background: var(--color2); */ padding: 0px; margin-left: 320px; - position: absolute; + position: fixed; overflow: auto; - width: calc(-webkit-fill-available - 320px); + width: calc(100% - 574px); } .installed-themes-page .gh-content .style-editor-container .stylestack-editor { padding-bottom: 16px; diff --git a/src/renderer/views/components/settings-window.ejs b/src/renderer/views/components/settings-window.ejs index 402c2cba..876fad04 100644 --- a/src/renderer/views/components/settings-window.ejs +++ b/src/renderer/views/components/settings-window.ejs @@ -1,7 +1,7 @@ \ No newline at end of file