Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Darkmatter] Style Changes Pt. 2 #7739

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions src/plugins/displayLayout/components/display-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

&__frame {
position: absolute;
border-radius: $layoutCornerSize;
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/plugins/displayLayout/components/telemetry-view.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.c-telemetry-view {
display: flex;
align-items: stretch;

@include telemetryView();
> * {
// Label and value holders
flex: 1 1 50%;
Expand All @@ -18,7 +18,6 @@
}

&__value {
@include telemetryView();
@include isLimit();
}

Expand Down
1 change: 1 addition & 0 deletions src/plugins/displayLayout/components/text-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

.c-frame & {
@include abs();
@include telemetryView();
border: 1px solid transparent;
}
}
4 changes: 3 additions & 1 deletion src/plugins/timelist/timelist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@
grid-column-gap: $interiorMargin;

&[s-selected] {
box-shadow: inset rgba($colorSelectedFg, 0.8) 0 0 0 1px;
box-shadow:
inset rgba($colorSelectedFg, 0.8) 0 0 0 1px,
$colorSelectedGlow 0 0 5px 1px;
color: $colorSelectedFg !important;

@include styleTliEm($colorSelectedFg);
Expand Down
53 changes: 28 additions & 25 deletions src/styles/_constants-darkmatter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ $numericFont: 'Chakra Petch', sans-serif;
}

@mixin telemetryView() {
border: 1px solid $colorBodyFg;
border-radius: $controlCr;
}

Expand All @@ -99,7 +98,7 @@ $numericFont: 'Chakra Petch', sans-serif;
background-repeat: no-repeat;
background-size: 35px 35px;
border-radius: $interiorMarginLg;
box-shadow: 0px 0px 20px 2px rgb(140 140 140 / 20%);
box-shadow: 0px 0px 8px 4px rgb(140 140 140 / 24%);
}

// Functions
Expand Down Expand Up @@ -143,15 +142,16 @@ $colorKeyFilter: invert(36%) sepia(10%) saturate(2512%) hue-rotate(170deg) brigh
$colorKeyFilterHov: invert(63%) sepia(88%) saturate(3029%) hue-rotate(154deg) brightness(101%)
contrast(100%);
$colorKeySelectedBg: $colorKey;
$uiColor: #0093ff; // Resize bars, splitter bars, etc.
$uiColor: lighten($colorKey, 10%); // Resize bars, splitter bars, etc.
$colorInteriorBorder: rgba($colorBodyFg, 0.2);
$colorInteriorBorderNotebook: rgba($colorBodyFg, 0.5);
$colorA: #ccc;
$colorAHov: #fff;
$filterHov: brightness(1.3) contrast(1.5); // Tree, location items
$filterHovSubtle: brightness(1.2) contrast(1.2);
$colorSelectedBg: rgba($colorKey, 0.3);
$colorSelectedFg: pullForward($colorBodyFg, 20%);
$colorSelectedFg: darken($colorBodyFg, 0.8);
$colorSelectedGlow: rgba($colorKeyFg, 0.58); // Glow around selected item

// Body constants
$bodyBg: $colorBodyBg url('../ui/layout/assets/images/darkmatter-bg.png') no-repeat center 85%; // Reference: https://science.nasa.gov/wp-content/uploads/2023/08/s2-1280.jpg?w=4096&format=webp
Expand Down Expand Up @@ -212,7 +212,7 @@ $colorPausedFg: #333;

// Time Colors
$colorTimeCommonFg: #eee;
$colorTimeFixed: #59554c;
$colorTimeFixed: #5e594d;
$colorTimeFixedBg: $colorTimeFixed;
$colorTimeFixedFg: #eee;
$colorTimeFixedFgSubtle: #b2aa98;
Expand All @@ -235,17 +235,18 @@ $colorTimeRealtimeBtnFgMajor: #fff;
$colorTOI: $colorBodyFg; // was $timeControllerToiLineColor
$colorTOIHov: $colorTimeRealtime; // was $timeControllerToiLineColorHov
$timeConductorAxisHoverFilter: brightness(1.2);
$timeConductorActiveBg: $colorKey;
$timeConductorActiveBg: $colorBodyBg;
$timeConductorActivePanBg: #226074;

// Browse
$browseFrameColor: pullForward($colorBodyBg, 10%);
$browseFrameBorder: 1px solid rgb(89, 89, 89, 0.4); // Frames in Disp and Flex Layouts when frame is showing
$browseSelectableShdwHov: rgba($colorBodyFg, 0.3) 0 0 3px;
$browseSelectableShdwHov: rgba($colorBodyFg, 0) 0 0 3px;
$browseSelectedBorder: 1px solid rgba($colorBodyFg, 0.4);
$filterItemHoverFg: brightness(1.2) contrast(1.1);
$interiorMarginObjectFrameVertical: 10px;
$interiorMarginObjectFrameHorizontal: 10px;
$layoutCornerSize: 5px;

// Missing Items
$filterItemMissing: brightness(0.6) grayscale(1);
Expand Down Expand Up @@ -337,7 +338,7 @@ $shdwSelect: rgba(black, 0.5) 0 0.5px 3px;
$controlDisabledOpacity: 0.2;

// Menus
$colorMenuBg: rgba($colorBodyBg, 0.6);
$colorMenuBg: rgba($colorBodyBg, 0.8);
$colorMenuFg: $colorBodyFg;
$colorMenuIc: $colorKey;
$filterMenu: brightness(1.4);
Expand Down Expand Up @@ -383,17 +384,17 @@ $formInputH: 22px;
$formRowCtrlsH: 14px;

// Inspector
$colorInspectorBg: pullForward($colorBodyBg, 5%);
$colorInspectorBg: $colorBodyBg;
$colorInspectorFg: $colorBodyFg;
$colorInspectorPropName: $colorBodyFg;
$colorInspectorPropVal: pullForward($colorInspectorFg, 15%);
$colorInspectorSectionHeaderBg: rgba($colorBodyBg, 0.75);
$colorInspectorSectionHeaderFg: pullForward($colorInspectorBg, 40%);
$colorInspectorSectionHeaderBg: pullForward($colorBodyBg, 0.9);
$colorInspectorSectionHeaderFg: pullForward($colorInspectorBg, 80%);

// Tabs
$colorTabBg: $colorBodyBg;
$colorTabBg: #2c2c34;
$colorTabFg: $colorBodyFgEm;
$colorTabCurrentBg: rgba($colorKey, 0.71);
$colorTabCurrentBg: radial-gradient(circle, rgba($colorKey, 0.8) 58%, rgba(0, 59, 156, 1) 100%);
$colorTabCurrentFg: $colorBodyFgEm;
$colorTabsBaseline: $colorBodyBg;

Expand Down Expand Up @@ -463,7 +464,7 @@ $shdwItemText: none;
$colorTabBorder: pullForward($colorBodyBg, 10%);
$colorTabBodyBg: $colorBodyBg;
$colorTabBodyFg: pullForward($colorBodyFg, 20%);
$colorTabHeaderBg: #575757;
$colorTabHeaderBg: #2e2e2e;
$colorTabHeaderFg: $colorBodyFg;
$colorTabHeaderBorder: $colorBodyBg;
$colorTabGroupHeaderBg: pullForward($colorBodyBg, 5%);
Expand Down Expand Up @@ -496,13 +497,13 @@ $colorGaugeLimitLow: $colorGaugeLimitHigh;
$colorGaugeNeedle: $colorGaugeBase; // Color of needle in a needle gauge.
$transitionTimeGauge: 150ms; // CSS transition time used to smooth needle gauge and meter value transitions
$marginGaugeMeterValue: 10%; // Margin between meter value bar and bounds edges
$gaugeMeterValueShadow: rgba(255, 255, 255, 0.5);
$gaugeMeterValueShadow: rgba(255, 255, 255, 0.1);
// TODO: This is some code regarding how we can make Gauges include a border or glow. We may need to revisit this.
// padding: 5%;
// background: radial-gradient(circle, transparent 0%, transparent 65%, rgba(255, 255, 255,0.4) 64%, rgba(255,255,255,0) 70%)

// Time Strip and Lists
$colorPastBg: #444;
$colorPastBg: rgba(#444, 0.5);
$colorPastFg: pushBack($colorBodyFg, 10%);
$colorPastFgEm: $colorBodyFg;
$colorCurrentBg: #666;
Expand All @@ -513,7 +514,7 @@ $colorFutureBg: $colorPastBg;
$colorFutureFg: $colorCurrentFg;
$colorFutureFgEm: $colorCurrentFgEm;
$colorFutureBorder: $colorCurrentBorder;
$colorInProgressBg: $colorTimeRealtimeBg;
$colorInProgressBg: rgba($colorTimeRealtimeBg, 0.6);
$colorInProgressFg: $colorTimeRealtimeFgSubtle;
$colorInProgressFgEm: $colorTimeRealtimeFg;
$colorGanttSelectedBorder: rgba(#fff, 0.3);
Expand All @@ -536,6 +537,7 @@ $colorItemTreeVC: $colorDisclosureCtrl;
$colorItemTreeVCHover: $colorDisclosureCtrlHov;
$colorItemTreeNewNode: rgba($colorBodyFg, 0.7);
$shdwItemTreeIcon: none;
$colorItemTreeShdw: rgba($colorKeyFg, 0.3) 0 0px 10px;

// Layout frame controls
$frameControlsColorFg: white;
Expand All @@ -547,10 +549,10 @@ $colorThumbHoverBg: $colorItemTreeHoverBg;

// Scrollbar
$scrollbarTrackSize: 7px;
$scrollbarTrackShdw: rgba(#000, 0.2) 0 1px 2px;
$scrollbarTrackColorBg: rgba(#000, 0.2);
$scrollbarThumbColor: pushBack($colorBodyBg, 50%);
$scrollbarThumbColorHov: $colorKey;
$scrollbarTrackShdw: rgba(#ffffff, 0.4) 0 1px 2px;
$scrollbarTrackColorBg: rgba($colorKey, 0.2);
$scrollbarThumbColor: darken($colorKeyBg, 15%);
$scrollbarThumbColorHov: pushBack($colorKeyBg, 20%);
$scrollbarThumbColorMenu: pullForward($colorMenuBg, 10%);
$scrollbarThumbColorMenuHov: pullForward($scrollbarThumbColorMenu, 2%);

Expand All @@ -559,18 +561,19 @@ $splitterHandleD: 2px;
$splitterD: $splitterHandleD;
$splitterHandleHitMargin: 4px;
$colorSplitterBaseBg: $colorBodyBg;
$colorSplitterBg: pullForward($colorBodyBg, 10%);
$colorSplitterBg: pullForward($colorBodyBg, 15%);
$colorSplitterFg: $colorBodyBg;
$colorSplitterHover: $uiColor;
$colorSplitterHover: $colorKey;
$colorSplitterActive: $colorKey;
$splitterBtnD: (16px, 35px); // height, width
$splitterBtnColorBg: $colorBtnBg;
$splitterBtnColorFg: #999;
$splitterBtnLabelColorFg: #9d9d9d;
$splitterCollapsedBtnColorBg: #222;
$splitterCollapsedBtnColorFg: #555;
$splitterCollapsedBtnColorBgHov: $colorKey;
$splitterCollapsedBtnColorFg: #8b8b8b;
$splitterCollapsedBtnColorBgHov: $colorKeyBg;
$splitterCollapsedBtnColorFgHov: $colorKeyFg;
$splitterCollapsedBtnColorShdw: rgba($colorKeyFg, 0.2);

// Mobile
$colorMobilePaneLeft: pushBack($colorBodyBg, 2%);
Expand Down
4 changes: 4 additions & 0 deletions src/styles/_constants-espresso.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ $filterHov: brightness(1.3) contrast(1.5); // Tree, location items
$filterHovSubtle: brightness(1.2) contrast(1.2);
$colorSelectedBg: rgba($colorKey, 0.3);
$colorSelectedFg: pullForward($colorBodyFg, 20%);
$colorSelectedGlow: rgba($colorKey, 0);

// Body constants
$bodyBg: $colorBodyBg;
Expand Down Expand Up @@ -216,6 +217,7 @@ $browseSelectedBorder: 1px solid rgba($colorBodyFg, 0.4);
$filterItemHoverFg: brightness(1.2) contrast(1.1);
$interiorMarginObjectFrameVertical: 0px;
$interiorMarginObjectFrameHorizontal: 3px;
$layoutCornerSize: 0px;

// Missing Items
$filterItemMissing: brightness(0.6) grayscale(1);
Expand Down Expand Up @@ -501,6 +503,7 @@ $colorItemTreeVC: $colorDisclosureCtrl;
$colorItemTreeVCHover: $colorDisclosureCtrlHov;
$colorItemTreeNewNode: rgba($colorBodyFg, 0.7);
$shdwItemTreeIcon: none;
$colorItemTreeShdw: none;

// Layout frame controls
$frameControlsColorFg: white;
Expand Down Expand Up @@ -536,6 +539,7 @@ $splitterCollapsedBtnColorBg: $colorHeadBg;
$splitterCollapsedBtnColorFg: #757575;
$splitterCollapsedBtnColorBgHov: $colorKeyBg;
$splitterCollapsedBtnColorFgHov: $colorKeyFg;
$splitterCollapsedBtnColorShdw: rgba($colorKeyFg, 0) 0 0 6px 1px;

// Mobile
$colorMobilePaneLeft: pushBack($colorBodyBg, 2%);
Expand Down
4 changes: 4 additions & 0 deletions src/styles/_constants-maelstrom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ $filterHov: brightness(1.3) contrast(1.5); // Tree, location items
$filterHovSubtle: brightness(1.2) contrast(1.2);
$colorSelectedBg: rgba($colorKey, 0.3);
$colorSelectedFg: pullForward($colorBodyFg, 20%);
$colorSelectedGlow: rgba($colorKey, 0);

// Body constants
$bodyBg: $colorBodyBg;
Expand Down Expand Up @@ -232,6 +233,7 @@ $browseSelectedBorder: 1px solid rgba($colorBodyFg, 0.4);
$filterItemHoverFg: brightness(1.2) contrast(1.1);
$interiorMarginObjectFrameVertical: 0px;
$interiorMarginObjectFrameHorizontal: 3px;
$layoutCornerSize: 0px;

// Missing Items
$filterItemMissing: contrast(0.2);
Expand Down Expand Up @@ -517,6 +519,7 @@ $colorItemTreeVC: $colorDisclosureCtrl;
$colorItemTreeVCHover: $colorDisclosureCtrlHov;
$colorItemTreeNewNode: rgba($colorBodyFg, 0.7);
$shdwItemTreeIcon: none;
$colorItemTreeShdw: none;

// Layout frame controls
$frameControlsColorFg: white;
Expand Down Expand Up @@ -552,6 +555,7 @@ $splitterCollapsedBtnColorBg: #222;
$splitterCollapsedBtnColorFg: #555;
$splitterCollapsedBtnColorBgHov: $colorKey;
$splitterCollapsedBtnColorFgHov: $colorKeyFg;
$splitterCollapsedBtnColorShdw: rgba($colorKeyFg, 0) 0 0 6px 1px;

// Mobile
$colorMobilePaneLeft: pushBack($colorBodyBg, 2%);
Expand Down
4 changes: 4 additions & 0 deletions src/styles/_constants-snow.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ $filterHov: hue-rotate(-10deg) brightness(0.8) contrast(2); // Tree, location it
$filterHovSubtle: hue-rotate(-8deg) brightness(0.5) contrast(1.2);
$colorSelectedBg: pushBack($colorKey, 40%);
$colorSelectedFg: pullForward($colorBodyFg, 10%);
$colorSelectedGlow: rgba($colorKey, 0);

// Body constants
$bodyBg: $colorBodyBg;
Expand Down Expand Up @@ -215,6 +216,7 @@ $browseSelectedBorder: 1px solid rgba($colorBodyFg, 0.4);
$filterItemHoverFg: brightness(0.9);
$interiorMarginObjectFrameVertical: 0px;
$interiorMarginObjectFrameHorizontal: 3px;
$layoutCornerSize: 0px;

// Missing Items
$filterItemMissing: contrast(0.2);
Expand Down Expand Up @@ -500,6 +502,7 @@ $colorItemTreeVC: $colorDisclosureCtrl;
$colorItemTreeVCHover: $colorDisclosureCtrlHov;
$colorItemTreeNewNode: rgba($colorBodyFg, 0.5);
$shdwItemTreeIcon: none;
$colorItemTreeShdw: none;

// Layout frame controls
$frameControlsColorFg: $colorClickIconButton;
Expand Down Expand Up @@ -535,6 +538,7 @@ $splitterCollapsedBtnColorBg: #ccc;
$splitterCollapsedBtnColorFg: #666;
$splitterCollapsedBtnColorBgHov: $colorKey;
$splitterCollapsedBtnColorFgHov: $colorKeyFg;
$splitterCollapsedBtnColorShdw: rgba($colorKeyFg, 0) 0 0 6px 1px;

// Mobile
$colorMobilePaneLeft: pullForward($colorBodyBg, 2%);
Expand Down
1 change: 1 addition & 0 deletions src/ui/layout/mct-tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
&.is-navigated-object,
&.is-selected {
background: $colorItemTreeSelectedBg;
box-shadow: $colorItemTreeShdw;

[class*='__name'] {
color: $colorItemTreeSelectedFg;
Expand Down
1 change: 1 addition & 0 deletions src/ui/layout/pane.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
display: none; // Hidden by default
background-color: $splitterCollapsedBtnColorBg;
color: $splitterCollapsedBtnColorFg;
box-shadow: $splitterCollapsedBtnColorShdw 0 0 9px 1px;

&:before {
// '+' icon
Expand Down
Loading