From ebf356417d9df84a6062d28d30a04a51594e7dbf Mon Sep 17 00:00:00 2001 From: Sylvie Crowe <107814465+oneirocosm@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:27:54 -0800 Subject: [PATCH] add link to terms of service (#105) * add link to terms of service The welcome page previously referenced the terms of service without providing a link to them. This change adds a hyperlink which allows users to easily navigate to them. * remove the tos checkbox Additionally, small cleanups have been made to the formatting of the source code. * update color name from prompt-green to wave-green Previously, the name prompt-green was used for the green color associated with the branding. It has now been changed to wave-green. This is in response to the terminal being renamed from prompt to waveterm. As a part of this, change the css class is-prompt-green has also been changed. It is renamed to is-wave-green. * update anchor tags to use wave-green color Previously, anchor tags used the blue color that comes as default with bulma css. They are now changed to be the wave-green color that matches the rest of the branding. This also involved updating the hover text to be the same color. Note that hover links had to be specified but focus links did not. I imagine this is because of bulma css defaults. Regardless, the previous .content overwrite that we used for hovering hyperlinks was removed as it is no longer necessary. --- src/app/app.less | 19 +++++++----- src/app/common/common.less | 2 +- src/app/common/common.tsx | 4 +-- src/app/common/modals/modals.tsx | 31 +++++-------------- src/app/common/modals/settings.tsx | 8 ++--- src/app/common/prompt/prompt.less | 2 +- src/app/common/themes/themes.less | 2 +- .../connections_deprecated/connections.tsx | 12 +++---- src/app/line/lines.less | 4 +-- src/app/pluginsview/pluginsview.less | 2 +- src/app/workspace/cmdinput/cmdinput.less | 4 +-- src/app/workspace/cmdinput/cmdinput.tsx | 2 +- src/app/workspace/screen/screenview.tsx | 4 +-- src/plugins/code/code.less | 6 ++-- 14 files changed, 45 insertions(+), 57 deletions(-) diff --git a/src/app/app.less b/src/app/app.less index 18b7d9d4c..aab2875f7 100644 --- a/src/app/app.less +++ b/src/app/app.less @@ -88,6 +88,15 @@ textarea { height: 16px; } +body a { + color: @wave-green; + cursor: pointer; + text-decoration: none; + &:hover { + color: @wave-green; + } +} + body code { font-family: @terminal-font; } @@ -156,10 +165,10 @@ svg.icon { border-radius: 5px; cursor: pointer; background-color: @button-background !important; - color: @prompt-green; + color: @wave-green; .hoverEffect; &:hover { - color: @prompt-green; + color: @wave-green; } &.disabled { color: fade(@disabled-color, 60%); @@ -184,12 +193,6 @@ svg.icon { left: 0; } -.content { - a:hover { - color: #485fc7; - } -} - input[type="checkbox"] { cursor: pointer; } diff --git a/src/app/common/common.less b/src/app/common/common.less index 2c92d6cbe..2f45b7bd9 100644 --- a/src/app/common/common.less +++ b/src/app/common/common.less @@ -247,7 +247,7 @@ } } -.button.is-prompt-green { +.button.is-wave-green { background-color: #222; color: @term-white; diff --git a/src/app/common/common.tsx b/src/app/common/common.tsx index c26574a0a..4c272e2a8 100644 --- a/src/app/common/common.tsx +++ b/src/app/common/common.tsx @@ -99,7 +99,7 @@ class Toggle extends React.Component<{ checked: boolean; onChange: (value: boole } class Checkbox extends React.Component< - { checked: boolean; onChange: (value: boolean) => void; label: string; id: string }, + { checked: boolean; onChange: (value: boolean) => void; label: React.ReactNode; id: string }, {} > { render() { @@ -750,7 +750,7 @@ class InlineSettingsTextEdit extends React.Component<