Skip to content

Commit 24728d5

Browse files
committed
fix transcluent not working on tauri. Next to v0.1.3_dev
1 parent f7bd127 commit 24728d5

3 files changed

Lines changed: 17 additions & 8 deletions

File tree

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "phocus",
4-
"version": "0.1.2",
4+
"version": "0.1.3",
55
"identifier": "com.phocus.app",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

src/components/TitleBar.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
</script>
2323

2424
<div
25-
class="min-h-12 xl:h-16 h-12 rounded-lg w-full flex hover:bg-white/20 transition-colors duration-200 flex-row-reverse items-center"
25+
class="min-h-12 backdrop-blur-xs xl:h-16 h-12 rounded-lg w-full flex hover:bg-black/5 transition-colors duration-200 flex-row-reverse items-center"
2626
>
2727
<div class="flex flex-row-reverse gap-2 pr-2">
2828
<button
2929
onclick={close_app}
30-
class="group w-8 h-8 flex justify-center items-center rounded-full bg-white/50 hover:bg-white/40 transition-colors duration-200"
30+
class="group w-8 h-8 flex justify-center items-center rounded-full bg-black/20 hover:bg-white/40 transition-colors duration-200"
3131
><img
3232
class="w-4 h-4 transition-transform duration-200 group-hover:scale-125"
3333
src="/X.svg"
@@ -36,7 +36,7 @@
3636
>
3737
<button
3838
onclick={minimize_app}
39-
class="group w-8 h-8 flex justify-center items-center rounded-full bg-white/50 hover:bg-white/40 transition-colors duration-200"
39+
class="group w-8 h-8 flex justify-center items-center rounded-full bg-black/20 hover:bg-white/40 transition-colors duration-200"
4040
><img
4141
class="w-4 h-4 transition-transform duration-200 group-hover:scale-125"
4242
src="/Minus.svg"
@@ -45,7 +45,7 @@
4545
>
4646
<button
4747
onclick={fullscreen_app}
48-
class="group w-8 h-8 flex justify-center items-center rounded-full bg-white/50 hover:bg-white/40 transition-colors duration-200"
48+
class="group w-8 h-8 flex justify-center items-center rounded-full bg-black/20 hover:bg-white/40 transition-colors duration-200"
4949
><img
5050
class="w-4 h-4 transition-transform duration-200 group-hover:scale-125"
5151
src="/CornersOut.svg"
@@ -59,7 +59,7 @@
5959
class=" w-full h-full flex items-center justify-start"
6060
aria-label="Drag"
6161
><span
62-
class="px-2 py-1 font-medium text-white/60 hover:text-white/80 hover:scale-105 transition-transform duration-200 rounded-md text-xl"
62+
class="px-2 py-1 font-medium text-black/50 hover:text-black/80 hover:scale-105 transition-transform duration-200 rounded-md text-xl"
6363
>Phocus</span
6464
></button
6565
>

src/routes/+layout.svelte

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@
77
</script>
88

99
<main
10-
style={$bgImage ? `background-image: url('${$bgImage}'); ` : ""}
10+
style={$bgImage
11+
? `background-image: url('${$bgImage}');`
12+
: `--color: #E1E1E1;
13+
background-color: #F3F3F3;
14+
background-image:
15+
linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent),
16+
linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%, transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%, transparent);
17+
background-size: 55px 55px;`}
1118
class="h-lvh bg-cover"
1219
>
13-
<div class="backdrop-blur-2xl h-lvh p-2 overflow-hidden overflow-y-hidden">
20+
<div
21+
class={`${!$bgImage ? "" : "backdrop-blur-2xl"} h-lvh p-2 overflow-hidden overflow-y-hidden`}
22+
>
1423
<TitleBar></TitleBar>
1524
<div class="h-[calc(100lvh - 3rem)]">{@render children()}</div>
1625
</div>

0 commit comments

Comments
 (0)