mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-01 12:44:45 -04:00
Add darkOverlay in theme
This commit is contained in:
parent
2ce8e7f866
commit
9ba7cb1ba5
@ -92,7 +92,7 @@ export const ImageBackground = <AsProps = ViewProps,>({
|
|||||||
<LinearGradient
|
<LinearGradient
|
||||||
start={{ x: 0, y: 0.25 }}
|
start={{ x: 0, y: 0.25 }}
|
||||||
end={{ x: 0, y: 1 }}
|
end={{ x: 0, y: 1 }}
|
||||||
colors={["transparent", alpha(theme.colors.black, 0.6)]}
|
colors={["transparent", theme.darkOverlay]}
|
||||||
{...css(
|
{...css(
|
||||||
{
|
{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
* along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ThemeBuilder } from "./theme";
|
import { ThemeBuilder, alpha } from "./theme";
|
||||||
|
|
||||||
// Ref: https://github.com/catppuccin/catppuccin
|
// Ref: https://github.com/catppuccin/catppuccin
|
||||||
export const catppuccin: ThemeBuilder = {
|
export const catppuccin: ThemeBuilder = {
|
||||||
@ -26,6 +26,7 @@ export const catppuccin: ThemeBuilder = {
|
|||||||
// Catppuccin latte
|
// Catppuccin latte
|
||||||
overlay0: "#9ca0b0",
|
overlay0: "#9ca0b0",
|
||||||
overlay1: "#7c7f93",
|
overlay1: "#7c7f93",
|
||||||
|
darkOverlay: "#4c4f6999",
|
||||||
link: "#1e66f5",
|
link: "#1e66f5",
|
||||||
default: {
|
default: {
|
||||||
background: "#eff1f5",
|
background: "#eff1f5",
|
||||||
@ -56,6 +57,7 @@ export const catppuccin: ThemeBuilder = {
|
|||||||
// Catppuccin mocha
|
// Catppuccin mocha
|
||||||
overlay0: "#6c7086",
|
overlay0: "#6c7086",
|
||||||
overlay1: "#9399b2",
|
overlay1: "#9399b2",
|
||||||
|
darkOverlay: "#11111b99",
|
||||||
link: "#89b4fa",
|
link: "#89b4fa",
|
||||||
default: {
|
default: {
|
||||||
background: "#1e1e2e",
|
background: "#1e1e2e",
|
||||||
|
@ -38,6 +38,7 @@ type Mode = {
|
|||||||
mode: "light" | "dark" | "auto";
|
mode: "light" | "dark" | "auto";
|
||||||
overlay0: Property.Color;
|
overlay0: Property.Color;
|
||||||
overlay1: Property.Color;
|
overlay1: Property.Color;
|
||||||
|
darkOverlay: Property.Color;
|
||||||
link: Property.Color;
|
link: Property.Color;
|
||||||
contrast: Property.Color;
|
contrast: Property.Color;
|
||||||
variant: Variant;
|
variant: Variant;
|
||||||
|
@ -96,7 +96,7 @@ export const Hover = ({
|
|||||||
bottom: 0,
|
bottom: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
bg: (theme) => alpha(theme.colors.black, 0.6),
|
bg: (theme) => theme.darkOverlay,
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
padding: percent(1),
|
padding: percent(1),
|
||||||
},
|
},
|
||||||
@ -176,7 +176,7 @@ export const Back = ({
|
|||||||
top: 0,
|
top: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
bg: (theme) => alpha(theme.colors.black, 0.6),
|
bg: (theme) => theme.darkOverlay,
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user