import { X, Minus, Square, CloudDownload } from "@styled-icons/boxicons-regular"; import { Wrench } from "@styled-icons/boxicons-solid"; 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; gap: 6px; user-select: none; align-items: center; .title { flex-grow: 1; -webkit-app-region: drag; height: var(--titlebar-height); font-size: 16px; font-weight: 600; margin-inline-start: 10px; margin-top: 4px; gap: 8px; display: flex; align-items: center; justify-content: flex-start; svg { height: calc(var(--titlebar-height) / 3); margin-bottom: 4px; } } .update-bar { background: var(--success); margin: 16px; font-size: 12px; border-radius: 60px; padding: 2px 10px; display: flex; align-items: center; gap: 2px; } .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" && }
{/*
New update available!
*/}
); }