From 590e4d64daed9eb4b8dceaa7ad26f2707db754d7 Mon Sep 17 00:00:00 2001 From: sawka Date: Wed, 1 Feb 2023 21:44:23 -0800 Subject: [PATCH] better showing of dev builds --- src/main.tsx | 6 ++++-- src/sh2.less | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index 0ebfc1ae..c154d6b6 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -14,6 +14,8 @@ import localizedFormat from 'dayjs/plugin/localizedFormat'; import {GlobalModel, GlobalCommandRunner, Session, Cmd, Window, Screen, ScreenWindow, riToRPtr, widthToCols, termWidthFromCols, termHeightFromRows, termRowsFromHeight} from "./model"; import {isModKeyPress} from "./util"; +let IS_DEV = __PROMPT_DEV__; + dayjs.extend(localizedFormat) const RemotePtyRows = 8; @@ -2531,8 +2533,8 @@ class MainSideBar extends React.Component<{}, {}> { } let isCollapsed = this.collapsed.get(); return ( -
-

+
+

{(isCollapsed ? "[p]" : "[prompt]")}

diff --git a/src/sh2.less b/src/sh2.less index 364bc22a..49e88540 100644 --- a/src/sh2.less +++ b/src/sh2.less @@ -184,6 +184,10 @@ html, body, #main { white-space: nowrap; overflow: hidden; + &.is-dev { + background-color: darken(rgb(177, 0, 10), 30%); + } + &.collapsed { padding-left: 1px; } @@ -208,6 +212,10 @@ html, body, #main { background-color: darken(rgb(0, 177, 10), 30%); flex-shrink: 0; + &.is-dev { + background-color: darken(rgb(177, 0, 10), 30%); + } + .menu { padding-top: 10px; display: flex;