mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
Cleaned up titlebar look
This commit is contained in:
parent
0add738df3
commit
05f2994a19
3 changed files with 14 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
||||||
import { X, Minus, Square } from "@styled-icons/boxicons-regular";
|
|
||||||
import { Wrench } from "@styled-icons/boxicons-solid";
|
import { Wrench } from "@styled-icons/boxicons-solid";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
|
@ -12,6 +11,7 @@ const TitlebarBase = styled.div`
|
||||||
user-select: none;
|
user-select: none;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
|
@ -20,15 +20,20 @@ const TitlebarBase = styled.div`
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-inline-start: 10px;
|
margin-inline-start: 10px;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
gap: 8px;
|
gap: 6px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
z-index: 90000;
|
||||||
|
color: var(--titlebar-logo-color);
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
height: calc(var(--titlebar-height) / 3);
|
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
svg:first-child {
|
||||||
|
height: calc(var(--titlebar-height) / 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
|
@ -73,7 +78,7 @@ export function Titlebar() {
|
||||||
stroke-width="1"
|
stroke-width="1"
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
{window.native.getConfig().build === "dev" && <Wrench />}
|
{window.native.getConfig().build === "dev" && <Wrench size="12.5"/>}
|
||||||
</div>
|
</div>
|
||||||
<UpdateIndicator style="titlebar" />
|
<UpdateIndicator style="titlebar" />
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
background: var(--primary-background);
|
background: var(--primary-background);
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
flex: 2;
|
flex: 1 0 218px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
@ -91,6 +91,9 @@
|
||||||
width: 218px;
|
width: 218px;
|
||||||
padding: 60px 8px;
|
padding: 60px 8px;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
|
display: flex;
|
||||||
|
gap: 2px;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
|
|
|
@ -24,6 +24,7 @@ export function Native(props: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<h3>App Behavior</h3>
|
||||||
<Checkbox
|
<Checkbox
|
||||||
checked={autoStart ?? false}
|
checked={autoStart ?? false}
|
||||||
disabled={typeof autoStart === "undefined"}
|
disabled={typeof autoStart === "undefined"}
|
||||||
|
|
Loading…
Reference in a new issue