From f1626b9c99ad9819457fe6d7de82a25eb8b6c02d Mon Sep 17 00:00:00 2001 From: nizune <9-nizune@users.noreply.gitlab.insrt.uk> Date: Sun, 1 Aug 2021 18:17:22 +0200 Subject: [PATCH] Added fixes to electron titlebar --- external/lang | 2 +- src/components/native/Titlebar.tsx | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/external/lang b/external/lang index e03c9f3a..8a9c21da 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit e03c9f3a9ef39b6d93a5890a3ee1a64cfb1ffec4 +Subproject commit 8a9c21da8527b9609404ad64205f6b876c9f53d2 diff --git a/src/components/native/Titlebar.tsx b/src/components/native/Titlebar.tsx index c4ec0a67..02feb7e0 100644 --- a/src/components/native/Titlebar.tsx +++ b/src/components/native/Titlebar.tsx @@ -1,11 +1,11 @@ -import { X, Minus, Square, Wrench } from "@styled-icons/boxicons-regular"; +import { X, Minus, Square } 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; user-select: none; align-items: center; @@ -13,18 +13,19 @@ const TitlebarBase = styled.div` .title { flex-grow: 1; -webkit-app-region: drag; - + height: var(--titlebar-height); font-size: 16px; font-weight: 600; - margin-left: 8px; - + margin-inline-start: 10px; + margin-top: 4px; gap: 8px; display: flex; align-items: center; justify-content: flex-start; svg { - height: calc(var(--titlebar-height) / 2); + height: calc(var(--titlebar-height) / 3); + margin-bottom: 4px; } } @@ -57,7 +58,7 @@ const TitlebarBase = styled.div` export function Titlebar() { return ( - +
@@ -70,7 +71,7 @@ export function Titlebar() { /> {window.native.getConfig().build === "dev" && } - +
@@ -79,7 +80,7 @@ export function Titlebar() {
- +