1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Use light theme for all dialog inputs

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-02-01 14:54:16 +03:00
parent 079c9b3331
commit 2fbad87fbd
12 changed files with 17 additions and 3 deletions

View File

@ -157,6 +157,7 @@ export class AddSecretDialog extends React.Component<Props> {
return ( return (
<div key={index} className="secret-field flex gaps auto align-center"> <div key={index} className="secret-field flex gaps auto align-center">
<Input <Input
lightTheme
className="key" className="key"
placeholder="Name" placeholder="Name"
title={key} title={key}
@ -165,6 +166,7 @@ export class AddSecretDialog extends React.Component<Props> {
value={key} onChange={v => item.key = v} value={key} onChange={v => item.key = v}
/> />
<Input <Input
lightTheme
multiLine maxRows={5} multiLine maxRows={5}
required={required} required={required}
className="value" className="value"
@ -205,6 +207,7 @@ export class AddSecretDialog extends React.Component<Props> {
<div className="secret-name"> <div className="secret-name">
<SubTitle title="Secret name" /> <SubTitle title="Secret name" />
<Input <Input
lightTheme
autoFocus required autoFocus required
placeholder="Name" placeholder="Name"
trim trim

View File

@ -104,6 +104,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
return( return(
<div className="flex gaps align-center"> <div className="flex gaps align-center">
<Input <Input
lightTheme
placeholder={placeholder} placeholder={placeholder}
validators={isPath} validators={isPath}
className="box grow" className="box grow"
@ -132,10 +133,12 @@ export class AddHelmRepoDialog extends React.Component<Props> {
{this.renderFileInput(`Certificate file`, FileType.CertFile, AddHelmRepoDialog.certExtensions)} {this.renderFileInput(`Certificate file`, FileType.CertFile, AddHelmRepoDialog.certExtensions)}
<SubTitle title="Chart Repository Credentials" /> <SubTitle title="Chart Repository Credentials" />
<Input <Input
lightTheme
placeholder="Username" placeholder="Username"
value={this.helmRepo.username} onChange= {v => this.helmRepo.username = v} value={this.helmRepo.username} onChange= {v => this.helmRepo.username = v}
/> />
<Input <Input
lightTheme
type="password" type="password"
placeholder="Password" placeholder="Password"
value={this.helmRepo.password} onChange={v => this.helmRepo.password = v} value={this.helmRepo.password} onChange={v => this.helmRepo.password = v}
@ -159,6 +162,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
<WizardStep contentClass="flow column" nextLabel="Add" next={() => this.addCustomRepo()}> <WizardStep contentClass="flow column" nextLabel="Add" next={() => this.addCustomRepo()}>
<div className="flex column gaps"> <div className="flex column gaps">
<Input <Input
lightTheme
autoFocus required autoFocus required
placeholder="Helm repo name" placeholder="Helm repo name"
trim trim
@ -166,6 +170,7 @@ export class AddHelmRepoDialog extends React.Component<Props> {
value={this.helmRepo.name} onChange={v => this.helmRepo.name = v} value={this.helmRepo.name} onChange={v => this.helmRepo.name = v}
/> />
<Input <Input
lightTheme
required required
placeholder="URL" placeholder="URL"
validators={isUrl} validators={isUrl}

View File

@ -205,6 +205,7 @@ export class ClusterRoleBindingDialog extends React.Component<Props> {
<SubTitle title="Binding Name" /> <SubTitle title="Binding Name" />
<Input <Input
lightTheme
placeholder="Name of ClusterRoleBinding ..." placeholder="Name of ClusterRoleBinding ..."
disabled={this.isEditing} disabled={this.isEditing}
value={this.bindingName} value={this.bindingName}

View File

@ -75,6 +75,7 @@ export class AddClusterRoleDialog extends React.Component<Props> {
> >
<SubTitle title="ClusterRole Name" /> <SubTitle title="ClusterRole Name" />
<Input <Input
lightTheme
required autoFocus required autoFocus
placeholder="Name" placeholder="Name"
iconLeft="supervisor_account" iconLeft="supervisor_account"

View File

@ -203,6 +203,7 @@ export class RoleBindingDialog extends React.Component<Props> {
<SubTitle title="Binding Name" /> <SubTitle title="Binding Name" />
<Input <Input
lightTheme
disabled={this.isEditing} disabled={this.isEditing}
value={this.bindingName} value={this.bindingName}
onChange={value => this.bindingName = value} onChange={value => this.bindingName = value}

View File

@ -72,6 +72,7 @@ export class CreateServiceAccountDialog extends React.Component<Props> {
<WizardStep nextLabel="Create" next={this.createAccount}> <WizardStep nextLabel="Create" next={this.createAccount}>
<SubTitle title="Account Name" /> <SubTitle title="Account Name" />
<Input <Input
lightTheme
autoFocus autoFocus
required required
placeholder="Enter a name" placeholder="Enter a name"

View File

@ -105,6 +105,7 @@ export class CronJobTriggerDialog extends Component<Props> {
</div> </div>
<div className="flex gaps"> <div className="flex gaps">
<Input <Input
lightTheme
required autoFocus required autoFocus
placeholder={this.jobName} placeholder={this.jobName}
trim trim

View File

@ -162,6 +162,7 @@ export const ClusterLocalTerminalSetting = observer(({ cluster }: Props) => {
material="close" material="close"
title="Clear" title="Clear"
onClick={() => setAndCommitDirectory("")} onClick={() => setAndCommitDirectory("")}
smallest
/> />
) )
} }
@ -169,6 +170,7 @@ export const ClusterLocalTerminalSetting = observer(({ cluster }: Props) => {
material="folder" material="folder"
title="Pick from filesystem" title="Pick from filesystem"
onClick={openFilePicker} onClick={openFilePicker}
smallest
/> />
</> </>
} }

View File

@ -85,7 +85,6 @@ export class ClusterMetricsSetting extends React.Component<Props> {
options={Object.values(ClusterMetricsResourceType)} options={Object.values(ClusterMetricsResourceType)}
onChange={this.onChangeSelect} onChange={this.onChangeSelect}
formatOptionLabel={this.formatOptionLabel} formatOptionLabel={this.formatOptionLabel}
lightTheme
/> />
<Button <Button
primary primary

View File

@ -122,7 +122,6 @@ export class ClusterPrometheusSetting extends React.Component<Props> {
this.onSaveProvider(); this.onSaveProvider();
}} }}
options={this.options} options={this.options}
lightTheme
/> />
<small className="hint">What query format is used to fetch metrics from Prometheus</small> <small className="hint">What query format is used to fetch metrics from Prometheus</small>
</> </>

View File

@ -21,7 +21,7 @@
} }
.SearchInput label { .SearchInput label {
padding: 7px; // Align with sibling selector height: 34px; // Align with sibling selector
} }
} }

View File

@ -109,6 +109,7 @@ class NonInjectedPortForwardDialog extends Component<Props & Dependencies> {
value={this.desiredPort === 0 ? "" : String(this.desiredPort)} value={this.desiredPort === 0 ? "" : String(this.desiredPort)}
placeholder={"Random"} placeholder={"Random"}
onChange={this.changePort} onChange={this.changePort}
lightTheme
/> />
</div> </div>
<Checkbox <Checkbox