mirror of
https://github.com/lumehq/lume.git
synced 2025-03-28 18:52:33 +01:00
fix: titlebar on windows
This commit is contained in:
parent
ce7828310b
commit
307fff7a53
@ -174,9 +174,6 @@ fn main() {
|
|||||||
if let tauri::WindowEvent::ThemeChanged(_) = event {
|
if let tauri::WindowEvent::ThemeChanged(_) = event {
|
||||||
win.set_traffic_lights_inset(8.0, 16.0).unwrap();
|
win.set_traffic_lights_inset(8.0, 16.0).unwrap();
|
||||||
}
|
}
|
||||||
if let tauri::WindowEvent::Resized(_) = event {
|
|
||||||
win.set_traffic_lights_inset(8.0, 16.0).unwrap();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Create data folder if not exist
|
// Create data folder if not exist
|
||||||
|
160
src/app.css
160
src/app.css
@ -3,25 +3,25 @@
|
|||||||
@tailwind components;
|
@tailwind components;
|
||||||
|
|
||||||
@layer utilities {
|
@layer utilities {
|
||||||
.content-break {
|
.content-break {
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shadow-toolbar {
|
.shadow-toolbar {
|
||||||
box-shadow:
|
box-shadow:
|
||||||
0 0 #0000,
|
0 0 #0000,
|
||||||
0 0 #0000,
|
0 0 #0000,
|
||||||
0 8px 24px 0 rgba(0, 0, 0, 0.2),
|
0 8px 24px 0 rgba(0, 0, 0, 0.2),
|
||||||
0 2px 8px 0 rgba(0, 0, 0, 0.08),
|
0 2px 8px 0 rgba(0, 0, 0, 0.08),
|
||||||
inset 0 0 0 1px rgba(0, 0, 0, 0.2),
|
inset 0 0 0 1px rgba(0, 0, 0, 0.2),
|
||||||
inset 0 0 0 2px hsla(0, 0%, 100%, 0.14);
|
inset 0 0 0 2px hsla(0, 0%, 100%, 0.14);
|
||||||
}
|
}
|
||||||
|
|
||||||
.shadow-primary {
|
.shadow-primary {
|
||||||
box-shadow: 0px 0px 4px rgba(66, 65, 73, 0.14);
|
box-shadow: 0px 0px 4px rgba(66, 65, 73, 0.14);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -29,82 +29,94 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@apply cursor-default no-underline !important;
|
@apply cursor-default no-underline !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@apply cursor-default focus:outline-none;
|
@apply cursor-default focus:outline-none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input::-ms-reveal,
|
input::-ms-reveal,
|
||||||
input::-ms-clear {
|
input::-ms-clear {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-input-placeholder {
|
::-webkit-input-placeholder {
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
div[data-tauri-decorum-tb] {
|
||||||
|
@apply h-11;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spinner-leaf {
|
.spinner-leaf {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: calc(50% - 12.5% / 2);
|
left: calc(50% - 12.5% / 2);
|
||||||
width: 12.5%;
|
width: 12.5%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
animation: spinner-leaf-fade 800ms linear infinite;
|
animation: spinner-leaf-fade 800ms linear infinite;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: "";
|
content: "";
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 30%;
|
height: 30%;
|
||||||
background-color: currentColor;
|
background-color: currentColor;
|
||||||
@apply rounded;
|
@apply rounded;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:where(:nth-child(1)) {
|
&:where(:nth-child(1)) {
|
||||||
transform: rotate(0deg);
|
transform: rotate(0deg);
|
||||||
animation-delay: -800ms;
|
animation-delay: -800ms;
|
||||||
}
|
}
|
||||||
&:where(:nth-child(2)) {
|
|
||||||
transform: rotate(45deg);
|
&:where(:nth-child(2)) {
|
||||||
animation-delay: -700ms;
|
transform: rotate(45deg);
|
||||||
}
|
animation-delay: -700ms;
|
||||||
&:where(:nth-child(3)) {
|
}
|
||||||
transform: rotate(90deg);
|
|
||||||
animation-delay: -600ms;
|
&:where(:nth-child(3)) {
|
||||||
}
|
transform: rotate(90deg);
|
||||||
&:where(:nth-child(4)) {
|
animation-delay: -600ms;
|
||||||
transform: rotate(135deg);
|
}
|
||||||
animation-delay: -500ms;
|
|
||||||
}
|
&:where(:nth-child(4)) {
|
||||||
&:where(:nth-child(5)) {
|
transform: rotate(135deg);
|
||||||
transform: rotate(180deg);
|
animation-delay: -500ms;
|
||||||
animation-delay: -400ms;
|
}
|
||||||
}
|
|
||||||
&:where(:nth-child(6)) {
|
&:where(:nth-child(5)) {
|
||||||
transform: rotate(225deg);
|
transform: rotate(180deg);
|
||||||
animation-delay: -300ms;
|
animation-delay: -400ms;
|
||||||
}
|
}
|
||||||
&:where(:nth-child(7)) {
|
|
||||||
transform: rotate(270deg);
|
&:where(:nth-child(6)) {
|
||||||
animation-delay: -200ms;
|
transform: rotate(225deg);
|
||||||
}
|
animation-delay: -300ms;
|
||||||
&:where(:nth-child(8)) {
|
}
|
||||||
transform: rotate(315deg);
|
|
||||||
animation-delay: -100ms;
|
&:where(:nth-child(7)) {
|
||||||
}
|
transform: rotate(270deg);
|
||||||
|
animation-delay: -200ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:where(:nth-child(8)) {
|
||||||
|
transform: rotate(315deg);
|
||||||
|
animation-delay: -100ms;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes spinner-leaf-fade {
|
@keyframes spinner-leaf-fade {
|
||||||
from {
|
from {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
to {
|
|
||||||
opacity: 0.25;
|
to {
|
||||||
}
|
opacity: 0.25;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,14 +35,14 @@ function Screen() {
|
|||||||
<div className="flex flex-col w-screen h-screen">
|
<div className="flex flex-col w-screen h-screen">
|
||||||
<div
|
<div
|
||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
className="flex h-11 shrink-0 items-center justify-between px-3"
|
className={cn(
|
||||||
|
"flex h-11 shrink-0 items-center justify-between",
|
||||||
|
platform === "macos" ? "pl-[72px] pr-3" : "pr-[128px] pl-3",
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
className={cn(
|
className="relative z-[200] flex-1 flex items-center gap-2"
|
||||||
"flex-1 flex items-center gap-2",
|
|
||||||
platform === "macos" ? "pl-[64px]" : "",
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@ -54,12 +54,15 @@ function Screen() {
|
|||||||
</button>
|
</button>
|
||||||
<div id="toolbar" />
|
<div id="toolbar" />
|
||||||
</div>
|
</div>
|
||||||
<div data-tauri-drag-region className="hidden md:flex md:flex-1">
|
<div
|
||||||
|
data-tauri-drag-region
|
||||||
|
className="relative z-[200] hidden md:flex md:flex-1"
|
||||||
|
>
|
||||||
<Search />
|
<Search />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
data-tauri-drag-region
|
data-tauri-drag-region
|
||||||
className="flex-1 flex items-center justify-end gap-3"
|
className="relative z-[200] flex-1 flex items-center justify-end gap-3"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user