import { Wrench } from "@styled-icons/boxicons-solid"; import styled, { css } from "styled-components"; import UpdateIndicator from "../common/UpdateIndicator"; interface Props { overlay?: boolean; } const TitlebarBase = styled.div` height: var(--titlebar-height); display: flex; user-select: none; align-items: center; ${(props) => props.overlay && css` position: fixed; width: 100%; `} .drag { flex-grow: 1; -webkit-app-region: drag; margin-top: 10px; height: 100%; } .quick { color: var(--secondary-foreground); > div, > div > div { width: var(--titlebar-height) !important; } &.disabled { color: var(--error); } &.unavailable { background: var(--error); } } .title { -webkit-app-region: drag; /*height: var(--titlebar-height);*/ font-size: 16px; font-weight: 600; margin-inline-start: 10px; margin-top: 10px; gap: 6px; display: flex; align-items: center; justify-content: flex-start; z-index: 90000; color: var(--titlebar-logo-color); svg { margin-bottom: 10px; } svg:first-child { height: calc(var(--titlebar-height) / 3); } } .actions { z-index: 100; display: flex; align-items: center; margin-inline-start: 6px; div { width: calc( var(--titlebar-height) + var(--titlebar-action-padding) ); height: var(--titlebar-height); display: grid; place-items: center; transition: 0.2s ease color; transition: 0.2s ease background-color; &:hover { background: var(--primary-background); } &.error:hover { background: var(--error); } } } `; export function Titlebar(props: Props) { return (
{window.native.getConfig().build === "dev" && ( )}
{/*
*/}
); }