mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Changing primary button colors to violet.
This commit is contained in:
parent
3ecc36ba24
commit
4d5eba59f7
7 changed files with 17 additions and 17 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import React, {useEffect, useState} from "react";
|
||||
import {addTag, deleteTag, getTags, removeTag, saveTag} from "./api";
|
||||
import {deleteTag, getTags, saveTag} from "./api";
|
||||
import {
|
||||
Button as SButton,
|
||||
Confirm,
|
||||
|
|
@ -21,7 +21,7 @@ import {
|
|||
TableHeaderCell,
|
||||
TableRow,
|
||||
} from "semantic-ui-react";
|
||||
import {contrastingColor, HelpPopup} from "./components/Common";
|
||||
import {contrastingColor} from "./components/Common";
|
||||
import {Segment} from "./components/Theme";
|
||||
import _ from "lodash";
|
||||
import {HexColorPicker} from "react-colorful";
|
||||
|
|
@ -218,7 +218,7 @@ function EditTagsModal() {
|
|||
|
||||
<HexColorPicker color={tagColor} onChange={setTagColor} style={{marginTop: '1em'}}/>
|
||||
|
||||
<SButton primary
|
||||
<SButton color='violet'
|
||||
size='big'
|
||||
onClick={localSaveTag}
|
||||
style={{marginTop: '2em'}}
|
||||
|
|
@ -242,7 +242,7 @@ function EditTagsModal() {
|
|||
</STable>
|
||||
</Modal.Content>
|
||||
</Modal>
|
||||
<SButton primary onClick={() => setOpen(true)}>
|
||||
<SButton onClick={() => setOpen(true)} color='violet'>
|
||||
Edit
|
||||
</SButton>
|
||||
</>
|
||||
|
|
@ -292,7 +292,7 @@ export function AddTagsButton({selectedTagNames = [], onToggle = _.noop, onAdd =
|
|||
const unusedTagsGroup = <TagsGroup tagNames={unusedTags} onClick={addTag}/>;
|
||||
|
||||
return <>
|
||||
<SButton icon='tag' onClick={handleOpen}/>
|
||||
<SButton icon='tag' onClick={handleOpen} color='violet'/>
|
||||
<Modal closeIcon
|
||||
open={open}
|
||||
onOpen={(e) => handleOpen(e)}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class Encrypt extends React.Component {
|
|||
</Segment>
|
||||
</SegmentGroup>
|
||||
<br/>
|
||||
<Button onClick={this.handleSubmit}>Encrypt</Button>
|
||||
<Button color='violet' onClick={this.handleSubmit}>Encrypt</Button>
|
||||
</>
|
||||
}
|
||||
}
|
||||
|
|
@ -116,7 +116,7 @@ class Decrypt extends React.Component {
|
|||
</Segment>
|
||||
</SegmentGroup>
|
||||
<br/>
|
||||
<Button onClick={this.handleSubmit}>Decrypt</Button>
|
||||
<Button color='violet' onClick={this.handleSubmit}>Decrypt</Button>
|
||||
</>
|
||||
}
|
||||
}
|
||||
|
|
@ -134,7 +134,7 @@ function OTP() {
|
|||
<Header as='h4'>One-Time Pads can be used to encrypt your communications. This can be done by hand
|
||||
(yes, really) or in this app.</Header>
|
||||
<p {...t}>These messages are never stored and cannot be retrieved.</p>
|
||||
<Button primary href={newPadURL}>Generate New Pad</Button>
|
||||
<Button color='violet' href={newPadURL}>Generate New Pad</Button>
|
||||
<Button secondary href={cheatSheetURL}>Cheat Sheet PDF</Button>
|
||||
|
||||
<Divider/>
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ function ArchivePage() {
|
|||
const readabilityUrl = data.readability_path;
|
||||
|
||||
const singlefileButton = <ExternalCardLink to={singlefileUrl}>
|
||||
<Button content='View' color='blue'/>
|
||||
<Button content='View' color='violet'/>
|
||||
</ExternalCardLink>;
|
||||
|
||||
const readabilityLink = readabilityUrl ?
|
||||
|
|
@ -97,7 +97,7 @@ function ArchivePage() {
|
|||
}
|
||||
|
||||
const updateButton = (<>
|
||||
<Button color='yellow' onClick={() => setUpdateOpen(true)} content='Update'/>
|
||||
<Button color='green' onClick={() => setUpdateOpen(true)} content='Update'/>
|
||||
<Confirm
|
||||
open={updateOpen}
|
||||
content='Download the latest version of this URL?'
|
||||
|
|
|
|||
|
|
@ -391,7 +391,7 @@ function ChannelPage({create, header}) {
|
|||
onConfirm={handleDeleteConfirm}
|
||||
/>
|
||||
<Button
|
||||
color='violet'
|
||||
color='green'
|
||||
size='small'
|
||||
onClick={handleDownloadChannel}
|
||||
disabled={!channel.url || !channel.download_frequency}
|
||||
|
|
@ -406,7 +406,7 @@ function ChannelPage({create, header}) {
|
|||
</Grid.Column>
|
||||
<Grid.Column>
|
||||
<Button
|
||||
color="green"
|
||||
color='violet'
|
||||
size='big'
|
||||
type="submit"
|
||||
floated='right'
|
||||
|
|
|
|||
|
|
@ -435,7 +435,7 @@ export function FilesSearchView({
|
|||
/>
|
||||
}
|
||||
|
||||
export function FilesProgress() {
|
||||
export function FilesRefreshProgress() {
|
||||
const {progress} = useFilesProgressInterval();
|
||||
|
||||
if (!progress) {
|
||||
|
|
@ -462,7 +462,7 @@ export function FilesProgress() {
|
|||
params['total'] = 4;
|
||||
label = 'Refresh: Cleanup';
|
||||
}
|
||||
return <Progress active {...params}>{label}</Progress>
|
||||
return <Progress active color='violet' {...params}>{label}</Progress>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -470,7 +470,7 @@ function FilesPage() {
|
|||
useTitle('Files');
|
||||
|
||||
return <>
|
||||
<FilesProgress/>
|
||||
<FilesRefreshProgress/>
|
||||
<FileBrowser/>
|
||||
</>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ class ManageMap extends React.Component {
|
|||
|
||||
let disabled = dockerized || _.isEmpty(files) || import_running;
|
||||
let importButton = <Button
|
||||
primary
|
||||
color='violet'
|
||||
disabled={disabled}
|
||||
onClick={this.import}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ export class Settings extends React.Component {
|
|||
|
||||
<br/>
|
||||
|
||||
<Button color="blue" type="submit" disabled={disabled} size='large'>
|
||||
<Button color='violet' type="submit" disabled={disabled} size='large'>
|
||||
Save
|
||||
</Button>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue