-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4070df
commit c37f709
Showing
8 changed files
with
109 additions
and
17 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { generateGradient } from "./generateGradient.ts"; | ||
import { Gradient } from "./Gradient.ts"; | ||
import { html } from "lit"; | ||
|
||
interface Props { | ||
outs: number; | ||
layoutGradient: Gradient; | ||
activeOutColor: string; | ||
inactiveOutColor: string; | ||
} | ||
|
||
export const OutsDots = ({ | ||
outs, | ||
layoutGradient, | ||
activeOutColor, | ||
inactiveOutColor, | ||
}: Props) => { | ||
const out1Color = | ||
outs === 1 || outs === 2 ? activeOutColor : inactiveOutColor; | ||
const out2Color = outs === 2 ? activeOutColor : inactiveOutColor; | ||
|
||
const style = `color: state.displaySettings.fontColorDark; background: ${generateGradient( | ||
layoutGradient, | ||
)};`; | ||
|
||
return html` | ||
<div class="counts-bottom" style=${style}> | ||
<div | ||
class="outs-dot" | ||
style="background-color: ${out1Color}; filter: drop-shadow(0px 0px 1px color-mix(in srgb, ${out1Color} 50%, black));" | ||
></div> | ||
<div | ||
class="outs-dot" | ||
style="background-color: ${out2Color}; filter: drop-shadow(0px 0px 1px color-mix(in srgb, ${out2Color} 50%, black))" | ||
></div> | ||
</div> | ||
`; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { generateGradient } from "./generateGradient.ts"; | ||
import { Gradient } from "./Gradient.ts"; | ||
import { html } from "lit"; | ||
|
||
interface Props { | ||
outs: number; | ||
layoutGradient: Gradient; | ||
} | ||
|
||
export const OutsText = ({ outs, layoutGradient }: Props) => { | ||
const style = `color: state.displaySettings.fontColorDark; background: ${generateGradient( | ||
layoutGradient, | ||
)}`; | ||
|
||
return html` | ||
<div class="counts-bottom" style=${style}> | ||
<span class="outs-count">${outs}</span> | ||
<span class="outs-text">out</span> | ||
</div> | ||
`; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters