diff --git a/src/launcher/toolbar.js b/src/launcher/toolbar.js index 2e7fd2d0..a319d5ae 100644 --- a/src/launcher/toolbar.js +++ b/src/launcher/toolbar.js @@ -119,7 +119,7 @@ class Toolbar { start.visible = !serverStarted stop.visible = !!serverStarted newWindow.visible = !!serverStarted - menu.popup({window: remote.getCurrentWindow(), x: parseInt(PXSCALE), y: parseInt(39 * PXSCALE)}) + menu.popup({window: remote.getCurrentWindow(), x: parseInt(PXSCALE), y: parseInt(40 * PXSCALE)}) }) menu.on('menu-will-close', ()=>{ diff --git a/src/scss/colors/nord.scss b/src/scss/colors/nord.scss new file mode 100644 index 00000000..488b8fa4 --- /dev/null +++ b/src/scss/colors/nord.scss @@ -0,0 +1,235 @@ +// Copyright (c) 2016-present Arctic Ice Studio +// Copyright (c) 2016-present Sven Greb + +// Project: Nord +// Version: 0.2.0 +// Repository: https://github.com/arcticicestudio/nord +// License: MIT +// References: +// http://sass-lang.com +// http://sassdoc.com + +//// +/// An arctic, north-bluish color palette. +/// Created for the clean- and minimal flat design pattern to achieve a optimal focus and readability for code syntax +/// highlighting and UI. +/// It consists of a total of sixteen, carefully selected, dimmed pastel colors for a eye-comfortable, but yet colorful +/// ambiance. +/// +/// @author Arctic Ice Studio +//// + +/// Base component color of "Polar Night". +/// +/// Used for texts, backgrounds, carets and structuring characters like curly- and square brackets. +/// +/// @access public +/// @example scss - SCSS +/// /* For dark ambiance themes */ +/// .background { +/// background-color: $nord0; +/// } +/// /* For light ambiance themes */ +/// .text { +/// color: $nord0; +/// } +/// @group polarnight +/// @since 0.1.0 +$nord0: #2e3440; + +/// Lighter shade color of the base component color. +/// +/// Used as a lighter background color for UI elements like status bars. +/// +/// @access public +/// @group polarnight +/// @see $nord0 +/// @since 0.1.0 +$nord1: #3b4252; + +/// Lighter shade color of the base component color. +/// +/// Used as line highlighting in the editor. +/// In the UI scope it may be used as selection- and highlight color. +/// +/// @access public +/// @example scss - SCSS +/// /* Code Syntax Highlighting scope */ +/// .editor { +/// &.line { +/// background-color: $nord2; +/// } +/// } +/// +/// /* UI scope */ +/// button { +/// &:selected { +/// background-color: $nord2; +/// } +/// } +/// @group polarnight +/// @see $nord0 +/// @since 0.1.0 +$nord2: #434c5e; + +/// Lighter shade color of the base component color. +/// +/// Used for comments, invisibles, indent- and wrap guide marker. +/// In the UI scope used as pseudoclass color for disabled elements. +/// +/// @access public +/// @example scss - SCSS +/// /* Code Syntax Highlighting scope */ +/// .editor { +/// &.indent-guide, +/// &.wrap-guide { +/// &.marker { +/// color: $nord3; +/// } +/// } +/// } +/// .comment, +/// .invisible { +/// color: $nord3; +/// } +/// +/// /* UI scope */ +/// button { +/// &:disabled { +/// background-color: $nord3; +/// } +/// } +/// @group polarnight +/// @see $nord0 +/// @since 0.1.0 +$nord3: #4c566a; + +/// Base component color of "Snow Storm". +/// +/// Main color for text, variables, constants and attributes. +/// In the UI scope used as semi-light background depending on the theme shading design. +/// +/// @access public +/// @example scss - SCSS +/// /* For light ambiance themes */ +/// .background { +/// background-color: $nord4; +/// } +/// /* For dark ambiance themes */ +/// .text { +/// color: $nord4; +/// } +/// @group snowstorm +/// @since 0.1.0 +$nord4: #d8dee9; + +/// Lighter shade color of the base component color. +/// +/// Used as a lighter background color for UI elements like status bars. +/// Used as semi-light background depending on the theme shading design. +/// +/// @access public +/// @group snowstorm +/// @see $nord4 +/// @since 0.1.0 +$nord5: #e5e9f0; + +/// Lighter shade color of the base component color. +/// +/// Used for punctuations, carets and structuring characters like curly- and square brackets. +/// In the UI scope used as background, selection- and highlight color depending on the theme shading design. +/// +/// @access public +/// @group snowstorm +/// @see $nord4 +/// @since 0.1.0 +$nord6: #eceff4; + +/// Bluish core color. +/// +/// Used for classes, types and documentation tags. +/// +/// @access public +/// @group frost +/// @since 0.1.0 +$nord7: #8fbcbb; + +/// Bluish core accent color. +/// +/// Represents the accent color of the color palette. +/// Main color for primary UI elements and methods/functions. +/// +/// Can be used for +/// - Markup quotes +/// - Markup link URLs +/// +/// @access public +/// @group frost +/// @since 0.1.0 +$nord8: #88c0d0; + +/// Bluish core color. +/// +/// Used for language-specific syntactic/reserved support characters and keywords, operators, tags, units and +/// punctuations like (semi)colons,commas and braces. +/// +/// @access public +/// @group frost +/// @since 0.1.0 +$nord9: #81a1c1; + +/// Bluish core color. +/// +/// Used for markup doctypes, import/include/require statements, pre-processor statements and at-rules (`@`). +/// +/// @access public +/// @group frost +/// @since 0.1.0 +$nord10: #5e81ac; + +/// Colorful component color. +/// +/// Used for errors, git/diff deletion and linter marker. +/// +/// @access public +/// @group aurora +/// @since 0.1.0 +$nord11: #bf616a; + +/// Colorful component color. +/// +/// Used for annotations. +/// +/// @access public +/// @group aurora +/// @since 0.1.0 +$nord12: #d08770; + +/// Colorful component color. +/// +/// Used for escape characters, regular expressions and markup entities. +/// In the UI scope used for warnings and git/diff renamings. +/// +/// @access public +/// @group aurora +/// @since 0.1.0 +$nord13: #ebcb8b; + +/// Colorful component color. +/// +/// Main color for strings and attribute values. +/// In the UI scope used for git/diff additions and success visualizations. +/// +/// @access public +/// @group aurora +/// @since 0.1.0 +$nord14: #a3be8c; + +/// Colorful component color. +/// +/// Used for numbers. +/// +/// @access public +/// @group aurora +/// @since 0.1.0 +$nord15: #b48ead; diff --git a/src/scss/themes/default.scss b/src/scss/themes/default.scss index ca94e733..b51c4d63 100644 --- a/src/scss/themes/default.scss +++ b/src/scss/themes/default.scss @@ -2,37 +2,34 @@ $font: 'Roboto'; $font-mono: 'Roboto Mono'; $font-menu: sans-serif; -$base: rgb(25, 31, 42)!default; -$accent: rgb(82, 168, 255)!default; -$text: white!default; +@import '../colors/nord'; :root { --nav-height: 40rem; --grid-width: 10; + --color-background: #{$nord0}; + --color-ui-background: #{$nord1}; - --color-text: #{transparentize($text, .4)}; + --color-text: #{$nord4}; + --color-text-solid: #{$nord6}; - --color-background: #{$base}; - --color-ui-background: #{mix($base, black, 85)}; + + --color-accent: #{$nord8}; + + --color-context-menu: #{$nord6}; + --color-context-menu-text: #{$nord1}; + + + --alpha-scrollbar: 0.25; + --alpha-scrollbar-on: 0.75; + --scrollbar-size: 12rem; --color-grid: rgba(0,0,0, 0.1); --color-notification: #{rgba(black, 0.8)}; - - --color-context-menu: #fafafa; - --color-context-menu-text: #444; - - --alpha-scrollbar: 0.25; - --alpha-scrollbar-on: 0.5; - --scrollbar-size: 12rem; - - --color-text-solid: #{$text}; - --color-text: #{transparentize($text, .4)}; - - - --color-accent: #{$accent}; --color-widget: var(--color-accent); + } diff --git a/src/scss/ui/contextmenu.scss b/src/scss/ui/contextmenu.scss index b4c4e3f4..ec87e798 100644 --- a/src/scss/ui/contextmenu.scss +++ b/src/scss/ui/contextmenu.scss @@ -18,8 +18,10 @@ $line-height: 30rem; letter-spacing: normal; padding-top: 3rem; padding-bottom: 3rem; + margin-top:1rem; .context-menu { + margin-top:0; position: absolute; left:100%; top:-3rem; diff --git a/src/scss/ui/inspector.scss b/src/scss/ui/inspector.scss index 5d3926c2..3a781301 100644 --- a/src/scss/ui/inspector.scss +++ b/src/scss/ui/inspector.scss @@ -1,4 +1,4 @@ -$header-height: 22rem; +$header-height: 30rem; $field-height: 22rem; $padding: 8rem; @@ -73,7 +73,7 @@ osc-inspector-field { osc-inspector-category { --alpha-fill: 0.5; - margin-top: 2rem; + margin-top: 1rem; display: block; padding: 0 8rem; @@ -92,7 +92,7 @@ osc-inspector-category { @include pseudo-fill($z: -1); &:after { - left:-($padding - 2); + left:-($padding - 1); right:-($padding - 1); } @@ -141,6 +141,8 @@ osc-inspector-category { osc-inspector-checkbox { + --alpha-fill:0.5; + line-height: $field-height; height: $field-height; width: $field-height; @@ -151,6 +153,7 @@ osc-inspector-checkbox { align-items: center; justify-content: center; margin-left: 4rem; + border: 2rem solid var(--color-background); i { // color: transparent; @@ -158,6 +161,7 @@ osc-inspector-checkbox { margin-top: -1rem; margin-left: 1rem; pointer-events: none; + font-size: 10rem; } &.on { position: relative; @@ -237,11 +241,8 @@ osc-inspector-color { --color-fill: var(--color-picker-value); --alpha-fill: 1; - --widget-padding: 4rem; + --widget-padding: 1rem; @include pseudo-fill(); - &:after { - - } } diff --git a/src/scss/ui/launcher.scss b/src/scss/ui/launcher.scss index 389addcc..6ce924ed 100644 --- a/src/scss/ui/launcher.scss +++ b/src/scss/ui/launcher.scss @@ -43,10 +43,14 @@ $warning: rgb(209, 154, 47); padding: 0; } - background-color: var(--color-ui-background); + border-top: 2rem solid var(--color-ui-background); max-height: calc(100% - var(--nav-height)); + background-color: var(--color-background); + osc-panel-inner { + background-color: var(--color-background); + } - --color-background: --color-ui-background; // scrollbar + // --color-background: --color-ui-background; // scrollbar } osc-panel-inner { @@ -112,6 +116,7 @@ osc-settings-checkbox, osc-settings-reset, osc-settings-file { width: 18rem; height: 18rem; background: var(--color-ui-background); + border: 0; --widget-padding: -1rem; i { color: var(--color-text); diff --git a/src/scss/ui/tree.scss b/src/scss/ui/tree.scss index fbd3cecd..4b503992 100644 --- a/src/scss/ui/tree.scss +++ b/src/scss/ui/tree.scss @@ -4,7 +4,7 @@ --widget-padding: -1rem; $padding: 16rem; - $line-height: 22rem; + $line-height: 30rem; padding: 0 $padding; diff --git a/src/scss/ui/workspaces.scss b/src/scss/ui/workspaces.scss index f00003a1..e1fb6832 100644 --- a/src/scss/ui/workspaces.scss +++ b/src/scss/ui/workspaces.scss @@ -35,6 +35,7 @@ osc-panel-container { z-index: 2; min-width: 0; width: 0; + box-shadow: 0 0 0 1rem var(--color-background); &:after { // hover trap to display toggle-button when closed @@ -121,9 +122,13 @@ osc-panel-container { background: var(--color-ui-background); font-size: 14rem; z-index: 2; - transition: transform 0.2s ease-out 0.1s; + transition: transform 0.2s ease-out 0.1s, border-color 0.2s ease-out 0.1s; will-change: transform; + border-style: solid; + border-width: 1rem; + border-color: transparent; + &:after { font-family: FontAwesome; line-height: 50rem; @@ -139,6 +144,7 @@ osc-panel-container { border-bottom-right-radius: 25rem; right: -25rem; transform: translateX(-25rem); + border-left-width: 0; &:after { content:"\f104"; margin-left: -4rem; @@ -149,6 +155,7 @@ osc-panel-container { border-bottom-left-radius: 25rem; left: -25rem; transform: translateX(25rem); + border-right-width: 0; &:after { @@ -205,8 +212,9 @@ osc-panel-container { } &:hover .toggle-button, .toggle-button:hover { - transition: transform 0.2s ease-out 0s; + transition: transform 0.2s ease-out 0s, border-color 0.2s ease-out 0s; transform: translateX(0) translateY(0); + border-color: var(--color-background); &:after { transition: opacity 0.1s ease-in 0.1s; opacity: 1; @@ -290,11 +298,11 @@ osc-panel-header { &:before { content: ""; position: absolute; - left: 1rem; - right: 1rem; - bottom: 2rem; + left: 0rem; + right: 0rem; + bottom: 1rem; opacity: var(--alpha-fill); - height: 4rem; + height: 2rem; background: var(--color-fill); z-index: 101; } @@ -334,6 +342,11 @@ osc-panel-content { bottom:0; } } + + border-bottom:1rem solid var(--color-background); + &:before { + bottom: 0; + } } #osc-container { diff --git a/src/scss/widgets/containers.scss b/src/scss/widgets/containers.scss index 0c897076..0df937f7 100644 --- a/src/scss/widgets/containers.scss +++ b/src/scss/widgets/containers.scss @@ -149,6 +149,16 @@ } } +.tab-container.editing { + z-index: initial!important; + &:after { + display:none; + } +} +.tablink.editing:after { + margin: 2rem 2rem 4rem; +} + .panel-container { @@ -211,6 +221,12 @@ } +.root-container.editing { + &:after { + display:none; + } +} + .navigation { @@ -220,7 +236,7 @@ height:calc(var(--nav-height) - 1rem); flex-shrink:0; display: flex; - padding-bottom: 1rem; + // padding-bottom: 1rem; position: relative; &:before { @@ -272,7 +288,7 @@ right: 0rem; bottom: 0rem; opacity: var(--alpha-fill-on); - height: 4rem; + height: 2rem; background: var(--color-fill); z-index: 101; } @@ -290,7 +306,7 @@ flex-direction: column; height: 100%; padding-bottom: 0; - padding-right: 1rem; + // padding-right: 1rem; div { height: 100%; @@ -307,7 +323,7 @@ right: 0rem; bottom: 0rem; opacity: var(--alpha-fill-on); - width: 4rem; + width: 2rem; height: auto; background: var(--color-fill); z-index: 101;