import { X, Minus, Square, Wrench } from "@styled-icons/boxicons-regular"; import styled from "styled-components"; export const USE_TITLEBAR = window.isNative && !window.native.getConfig().frame; const TitlebarBase = styled.div` height: var(--titlebar-height); display: flex; user-select: none; align-items: center; .title { flex-grow: 1; -webkit-app-region: drag; font-size: 16px; font-weight: 600; margin-left: 8px; gap: 8px; display: flex; align-items: center; justify-content: flex-start; svg { height: calc(var(--titlebar-height) / 2); } } .actions { z-index: 100; display: flex; align-items: center; div { width: calc( var(--titlebar-height) + var(--titlebar-action-padding) ); height: var(--titlebar-height); display: grid; place-items: center; transition: 0.2s ease background-color; &:hover { background: var(--primary-background); } &.error:hover { background: var(--error); } } } `; export function Titlebar() { return ( {window.native.getConfig().build === "dev" && }
); }