Skip to content

Commit

Permalink
pursue tokyonight theming
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisnsns committed Jan 25, 2024
1 parent 39e9530 commit 461ddba
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ui/app/src/StreamPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ const StreamPage = () => {

// UI; to pass as props to the component
const themeColors = {
sakura: { background: "#ff4499", color: "#ff4499" },
tokyoNight: { background: "#ff4499", color: "#ff4499" },
sakura: { background: "#ff4499", color: "#00ffd2" },
tokyoNight: { background: "#ff4499", color: "#00ffd2" },
};

type ThemeName = "sakura" | "tokyoNight";
Expand Down
4 changes: 2 additions & 2 deletions ui/app/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ a:hover {
justify-content: flex-end;
}

.cancel-stream-button,
.update-stream-button,
.button-validate-select-token,
.button-validate-transaction,
.button-create-stream {
Expand Down Expand Up @@ -294,6 +292,8 @@ li {
overflow: auto;
}



.cancel-stream-button:disabled {
opacity: 0.5;
cursor: not-allowed;
Expand Down
35 changes: 33 additions & 2 deletions ui/app/src/tokyoNight.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ body.tokyoNight {
.app.tokyoNight .stream-data-box,
.app.tokyoNight .cancel-stream-box,
.app.tokyoNight .update-stream-box {
border: 1px solid white;
border: 1px solid var(--aquamarine);
padding: 10px;
}

Expand All @@ -86,7 +86,7 @@ body.tokyoNight {
}

.app.tokyoNight .stream-status-bar-label {
color: #00ffd2;
color: #004687;
}

.app.tokyoNight .stream-status-pie text {
Expand All @@ -97,6 +97,37 @@ body.tokyoNight {
min-width: 120px;
}

.app.tokyoNight .cancel-stream-button,
.app.tokyoNight .update-stream-button {
font-family: "Tomorrow", sans-serif;
background-color: var(--aquamarine);
color: var(--federal-blue);
border: none;
}

.app.tokyoNight .cancel-stream-button:hover,
.app.tokyoNight .update-stream-button:hover {
background-color: var(--rose-bonbon);
border: none;
}

.app.tokyoNight .rc-slider-dot {
background-color: var(--rose-bonbon);
border: 2px solid var(--aquamarine);
}

.app.tokyoNight .rc-slider-step {
background: var(--rose-bonbon) !important;
}

.app.tokyoNight .rc-slider-mark-text {
color: var(--aquamarine);
}

.app.tokyoNight .rc-slider-handle {
background-color: var(--aquamarine);
}

@keyframes pulsate {
0% {
box-shadow:
Expand Down
5 changes: 3 additions & 2 deletions ui/lib/CancelStream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState, useEffect } from "react";
import { Stream } from "@apeworx/apepay";
import { formatTime } from "./utils";
import { useCurrentTime } from "./utils";
import { Button } from "evergreen-ui";

interface CancelStreamProps {
stream: Stream;
Expand Down Expand Up @@ -80,13 +81,13 @@ const CancelStream: React.FC<CancelStreamProps> = (props) => {
</div>
)
)}
<button
<Button
className="cancel-stream-button"
onClick={handleCancel}
disabled={!isButtonEnabled}
>
Cancel {props.productName || "Stream"}
</button>
</Button>
<div className="cancel-stream-error"> {error && error}</div>
</div>
);
Expand Down
9 changes: 5 additions & 4 deletions ui/lib/UpdateStream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
useBalance,
} from "wagmi";
import Slider from "rc-slider";
import { Button } from "evergreen-ui";

interface UpdateStreamProps {
stream: Stream;
Expand Down Expand Up @@ -102,11 +103,11 @@ const UpdateStream: React.FC<UpdateStreamProps> = (props) => {
typeof value === "number" && setSelectedTime(value)
}
/>
<button onClick={approveStream} className="update-stream-button">
<Button onClick={approveStream} className="update-stream-button">
{`Validate adding funds for ${selectedTime} additional day${
selectedTime !== 1 ? "s" : ""
}`}
</button>
</Button>
</>
) : (
<>
Expand Down Expand Up @@ -155,13 +156,13 @@ const UpdateStream: React.FC<UpdateStreamProps> = (props) => {
selectedTime !== 1 ? "s:" : ":"
}`}
</div>
<button
<Button
onClick={handleUpdate}
disabled={isButtonDisabled}
className="update-stream-button"
>
Add Time
</button>
</Button>
<div className="update-stream-error"> {Error && Error}</div>
</div>
</>
Expand Down

0 comments on commit 461ddba

Please sign in to comment.