diff --git a/src/app/app.less b/src/app/app.less index ad0242d0..b54c3b5c 100644 --- a/src/app/app.less +++ b/src/app/app.less @@ -91,7 +91,7 @@ svg.icon { .dropdown, .button { display: inline-block; - border: none; + border: 1px solid @base-border !important; border-radius: 5px; cursor: pointer; background-color: @button-background !important; diff --git a/src/app/assets/icons/circle.svg b/src/app/assets/icons/circle.svg new file mode 100644 index 00000000..89c0df30 --- /dev/null +++ b/src/app/assets/icons/circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/assets/icons/key.svg b/src/app/assets/icons/key.svg new file mode 100644 index 00000000..b8ff7cd6 --- /dev/null +++ b/src/app/assets/icons/key.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/assets/icons/rotate_left.svg b/src/app/assets/icons/rotate_left.svg new file mode 100644 index 00000000..2627361d --- /dev/null +++ b/src/app/assets/icons/rotate_left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/bookmarks/bookmarks.tsx b/src/app/bookmarks/bookmarks.tsx index 823c7cc9..2e423c7a 100644 --- a/src/app/bookmarks/bookmarks.tsx +++ b/src/app/bookmarks/bookmarks.tsx @@ -12,7 +12,7 @@ import { ReactComponent as XmarkIcon } from "../assets/icons/line/xmark.svg"; import { ReactComponent as CopyIcon } from "../assets/icons/favourites/copy.svg"; import { ReactComponent as PenIcon } from "../assets/icons/favourites/pen.svg"; import { ReactComponent as TrashIcon } from "../assets/icons/favourites/trash.svg"; -import { ReactComponent as FavouritesIcon } from "../assets/icons/favourites.svg"; +import { ReactComponent as FavoritesIcon } from "../assets/icons/favourites.svg"; import "./bookmarks.less"; @@ -192,7 +192,7 @@ class BookmarksView extends React.Component<{}, {}> { return (
-
Favourites
+
Favorites
@@ -205,7 +205,7 @@ class BookmarksView extends React.Component<{}, {}> {
No Bookmarks.
- Use the icon on commands to add your first bookmark. + Use the icon on commands to add your first bookmark.
diff --git a/src/app/common/common.less b/src/app/common/common.less index 20d53c36..286ee6ab 100644 --- a/src/app/common/common.less +++ b/src/app/common/common.less @@ -505,25 +505,25 @@ } .remote-status { - margin-right: 5px; - position: relative; - top: -3px; - color: #c4a000; + width: 1em; + height: 1em; + display: inline; + fill: #c4a000; &.status-init, &.status-disconnected { - color: #c4a000; + fill: #c4a000; } &.status-connecting { - color: #c4a000; + fill: #c4a000; } &.status-connected { - color: #4e9a06; + fill: #4e9a06; } &.status-error { - color: #cc0000; + fill: #cc0000; } } diff --git a/src/app/common/common.tsx b/src/app/common/common.tsx index 2245708b..98de7a4c 100644 --- a/src/app/common/common.tsx +++ b/src/app/common/common.tsx @@ -10,6 +10,9 @@ import type { RemoteType } from "../../types/types"; import { ReactComponent as CheckIcon } from "../assets/icons/line/check.svg"; import { ReactComponent as CopyIcon } from "../assets/icons/history/copy.svg"; +import { ReactComponent as CircleIcon } from "../assets/icons/circle.svg"; +import { ReactComponent as KeyIcon } from "../assets/icons/key.svg"; +import { ReactComponent as RotateIcon } from "../assets/icons/rotate_left.svg"; import "./common.less"; @@ -100,11 +103,11 @@ class RemoteStatusLight extends React.Component<{ remote: RemoteType }, {}> { status = remote.status; wfp = remote.waitingforpassword; } - let icon = "fa-sharp fa-solid fa-circle"; if (status == "connecting") { - icon = wfp ? "fa-sharp fa-solid fa-key" : "fa-sharp fa-solid fa-rotate"; + if (wfp) return ; + else return ; } - return ; + return ; } } diff --git a/src/app/common/modals/modals.less b/src/app/common/modals/modals.less index 15ecd6c8..4d76cac5 100644 --- a/src/app/common/modals/modals.less +++ b/src/app/common/modals/modals.less @@ -6,7 +6,7 @@ z-index: 105; .modal-background { - background-color: rgba(10, 10, 10, 0.6); + background-color: @base-background-transparent; } } @@ -14,9 +14,6 @@ a:hover { text-decoration: underline; } - - .content { - } } .disconnected-modal { @@ -112,18 +109,29 @@ .modal.prompt-modal { .modal-content { border-radius: 5px; - border: 5px solid #333; + background: @base-background; + box-shadow: 0px 2px 2px 0 rgba(255, 255, 255, 0.1), 0px 4px 5px 0 rgba(255, 255, 255, 0.2), + 0px 0px 5px 2.5px rgba(255, 255, 255, 0.5); + padding-bottom: 0.5em; } header { - background-color: #000; display: flex; flex-direction: row; padding: 10px; position: relative; + background-color: @background-session-components-solid; .modal-title { - color: @prompt-green; + color: @base-color; + font-size: 1.5em; + .icon { + display: inline; + width: 1em; + height: 1em; + margin-right: 1em; + vertical-align: middle; + } } .close-icon { @@ -143,12 +151,9 @@ } .inner-content { - background-color: #222; - padding: 15px 10px 15px 10px; - color: @term-white; - + padding: 1em; margin: 0; - + border-top: 1px solid fade(@base-border, 50%); &.is-hidden { display: none; } @@ -158,10 +163,7 @@ display: flex; flex-direction: row; align-items: center; - color: @term-white; - background-color: #222; padding: 15px 10px 10px 10px; - border-top: 1px solid #666; } } @@ -229,8 +231,7 @@ .settings-label { font-weight: bold; - color: #fff; - width: 120px; + width: 12em; display: flex; flex-direction: row; align-items: center; diff --git a/src/app/common/modals/modals.tsx b/src/app/common/modals/modals.tsx index f3655ef0..4ca8516d 100644 --- a/src/app/common/modals/modals.tsx +++ b/src/app/common/modals/modals.tsx @@ -10,6 +10,7 @@ import { GlobalModel } from "../../../model/model"; import { Markdown } from "../common"; import { ReactComponent as XmarkIcon } from "../../assets/icons/line/xmark.svg"; +import { ReactComponent as WarningIcon } from "../../assets/icons/line/triangle-exclamation.svg"; dayjs.extend(localizedFormat); @@ -88,9 +89,7 @@ class DisconnectedModal extends React.Component<{}, {}> { Try Reconnect @@ -176,7 +175,8 @@ class AlertModal extends React.Component<{}, {}> {

- {title} + + {title}

@@ -257,7 +257,7 @@ class WelcomeModal extends React.Component<{}, {}> { let pageNum = this.pageNum.get(); return (
-
+
welcome to [prompt]
diff --git a/src/app/connections/connections.less b/src/app/connections/connections.less index d637b238..cbec67ab 100644 --- a/src/app/connections/connections.less +++ b/src/app/connections/connections.less @@ -4,24 +4,41 @@ .modal-content { min-width: 850px; } - + .icon { + width: 1em; + height: 1em; + fill: @base-color; + } + .button { + svg { + float: right; + margin-top: 0.3em; + margin-right: 0; + } + } + .dropdown, + .button { + display: inline-flex; + } + .dropdown .button { + border: none !important; + } .inner-content { display: flex; flex-direction: row; align-items: stretch; padding: 0; - max-height: 80vh; + min-height: 45em; + max-height: 45em; .remotes-menu { flex: 0 0 200px; - min-height: 450px; - border-right: 1px solid #666; + border-right: 1px solid @disabled-color; overflow-y: auto; - height: 100px; .remote-menu-item { - border-top: 1px solid #666; - padding: 5px; + border-top: 1px solid @disabled-color; + padding: 0.5em; display: flex; flex-direction: row; cursor: pointer; @@ -47,8 +64,9 @@ } .remote-status-light { - width: 15px; - margin-top: -2px; + width: 2em; + margin-top: 0.7em; + font-size: 0.8em; } .remote-name { @@ -56,10 +74,12 @@ .remote-name-primary { font-weight: bold; + max-width: 10em; } .remote-name-secondary { - color: #777; + color: @disabled-color; + max-width: 14em; } } } @@ -73,7 +93,7 @@ flex-direction: column; .settings-field { - margin-top: 5px; + margin-top: 0.75em; } * { @@ -87,7 +107,7 @@ .title { color: @term-white; - padding-bottom: 8px; + padding: 0.75em 0; margin-bottom: 0; border-bottom: 1px solid #777; } @@ -95,13 +115,19 @@ .terminal-wrapper { margin-left: 0; margin-bottom: 0; - &.has-message { margin-top: 0; } - box-shadow: none; border: 1px solid #777; + border-radius: 0 0 5px 5px; + font-size: 0.8em !important; + .xterm-rows { + padding-top: 0.5em; + } + .xterm-rows > div { + font-size: 0.8em; + } } .action-buttons { @@ -116,18 +142,16 @@ padding: 8px; border-radius: 5px 5px 0 0; background-color: #333; - - i.fa-check { - color: @term-green; - } - - &.is-ok { - } + border: 1px solid #777; + border-bottom: none; .message-row { display: flex; flex-direction: row; align-items: center; + svg { + vertical-align: text-bottom; + } } .remote-status { @@ -174,7 +198,7 @@ display: flex; flex-direction: row; align-items: center; - width: 135px; + width: 12em !important; } .settings-field .settings-input .undo-icon { @@ -186,6 +210,11 @@ .editremote-dropdown .dropdown-trigger button { width: 120px; justify-content: flex-start; + color: @base-color; + border: none; + &:hover { + box-shadow: none; + } } .settings-field .raw-input { @@ -193,16 +222,19 @@ } .settings-input input { + background: rgba(255, 255, 255, 0.8); width: 250px; - } - - .dropdown .dropdown-trigger button { + outline: none; } .dropdown .dropdown-item { padding: 5px 5px 5px 12px; } + .dropdown .dropdown-content { + max-width: 10.6em; + } + .settings-input { .info-message { margin-left: 22px; diff --git a/src/app/connections/connections.tsx b/src/app/connections/connections.tsx index 18d88f14..95a7c65d 100644 --- a/src/app/connections/connections.tsx +++ b/src/app/connections/connections.tsx @@ -11,6 +11,9 @@ import * as util from "../../util/util"; import * as textmeasure from "../../util/textmeasure"; import { ReactComponent as XmarkIcon } from "../assets/icons/line/xmark.svg"; +import { ReactComponent as AngleDownIcon } from "../assets/icons/history/angle-down.svg"; +import { ReactComponent as RotateLeftIcon } from "../assets/icons/rotate_left.svg"; +import { ReactComponent as AddIcon } from "../assets/icons/add.svg"; import "./connections.less"; @@ -59,12 +62,10 @@ class AuthModeDropdown extends React.Component<{ tempVal: OV }, {}> { return (
-
@@ -115,12 +116,10 @@ class ConnectModeDropdown extends React.Component<{ tempVal: OV }, {}> { return (
-
@@ -700,8 +699,8 @@ class EditRemoteSettings extends React.Component< maxLength={400} /> -
- +
+
@@ -1117,8 +1116,8 @@ class RemotesModal extends React.Component<{ model: RemotesModalModel }, {}> {
-
{remote.remotealias}
-
{remote.remotecanonicalname}
+
{remote.remotealias}
+
{remote.remotecanonicalname}
@@ -1128,8 +1127,8 @@ class RemotesModal extends React.Component<{ model: RemotesModalModel }, {}> { renderAddRemoteMenuItem(): any { return (
-
- Add SSH Connection +
+ Add SSH Connection
); diff --git a/src/app/history/history.tsx b/src/app/history/history.tsx index d8ba8f02..65629625 100644 --- a/src/app/history/history.tsx +++ b/src/app/history/history.tsx @@ -13,7 +13,7 @@ import customParseFormat from "dayjs/plugin/customParseFormat"; import { Line } from "../line/linecomps"; import { CmdStrCode } from "../common/common"; -import { ReactComponent as FavouritesIcon } from "../assets/icons/favourites.svg"; +import { ReactComponent as FavoritesIcon } from "../assets/icons/favourites.svg"; import { ReactComponent as XmarkIcon } from "../assets/icons/line/xmark.svg"; import { ReactComponent as AngleDownIcon } from "../assets/icons/history/angle-down.svg"; import { ReactComponent as ChevronLeftIcon } from "../assets/icons/history/chevron-left.svg"; @@ -532,7 +532,7 @@ class HistoryView extends React.Component<{}, {}> { - + {getHistoryViewTs(nowDate, item.ts)} {formatSSName(snames, scrnames, item)} diff --git a/src/app/line/linecomps.tsx b/src/app/line/linecomps.tsx index 87ce0216..395d56e9 100644 --- a/src/app/line/linecomps.tsx +++ b/src/app/line/linecomps.tsx @@ -21,7 +21,7 @@ import type { } from "../../types/types"; import cn from "classnames"; -import { ReactComponent as FavouritesIcon } from "../assets/icons/favourites.svg"; +import { ReactComponent as FavoritesIcon } from "../assets/icons/favourites.svg"; import { ReactComponent as PinIcon } from "../assets/icons/pin.svg"; import { ReactComponent as PlusIcon } from "../assets/icons/plus.svg"; import { ReactComponent as MinusIcon } from "../assets/icons/minus.svg"; @@ -644,7 +644,7 @@ class LineCmd extends React.Component< className={cn("line-icon", "line-bookmark", "hoverEffect")} onClick={this.clickBookmark} > - +
new state
-
{this.rtnStateDiff.get()}
+
+ {this.rtnStateDiff.get()} +
diff --git a/src/app/sidebar/MainSideBar.tsx b/src/app/sidebar/MainSideBar.tsx index 6871711c..2f665073 100644 --- a/src/app/sidebar/MainSideBar.tsx +++ b/src/app/sidebar/MainSideBar.tsx @@ -11,7 +11,7 @@ import { ReactComponent as HelpIcon } from "../assets/icons/help.svg"; import { ReactComponent as SettingsIcon } from "../assets/icons/settings.svg"; import { ReactComponent as DiscordIcon } from "../assets/icons/discord.svg"; import { ReactComponent as HistoryIcon } from "../assets/icons/history.svg"; -import { ReactComponent as FavouritesIcon } from "../assets/icons/favourites.svg"; +import { ReactComponent as FavoritesIcon } from "../assets/icons/favourites.svg"; import { ReactComponent as AppsIcon } from "../assets/icons/apps.svg"; import { ReactComponent as ConnectionsIcon } from "../assets/icons/connections.svg"; import { ReactComponent as WorkspacesIcon } from "../assets/icons/workspaces.svg"; @@ -213,8 +213,8 @@ class MainSideBar extends React.Component<{}, {}> { ⌘H
- - Favourites + + Favorites ⌘B