Skip to content

Commit d2c9ae4

Browse files
committed
Add ugly pink background to the title bar in dev
So I don't mix it up with prod
1 parent 44b7105 commit d2c9ae4

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

apps/desktop/src/routes/(main)/+page.svelte

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,10 @@
985985
<div class="page-container">
986986
{#if isMacOS()}
987987
<!-- svelte-ignore a11y_no_static_element_interactions -->
988-
<div class="title-bar" onmousedown={handleTitleBarMouseDown}>
989-
<span class="title-text">{windowTitle}</span>
988+
<div class="title-bar" class:dev-mode={import.meta.env.DEV} onmousedown={handleTitleBarMouseDown}>
989+
<span class="title-text"
990+
>{import.meta.env.DEV ? `DEV MODE - ${windowTitle} - DEV MODE` : windowTitle}</span
991+
>
990992
</div>
991993
{/if}
992994

@@ -1050,6 +1052,16 @@
10501052
padding-top: 2px;
10511053
background-color: var(--color-bg-secondary);
10521054
flex-shrink: 0;
1055+
position: relative;
1056+
}
1057+
1058+
/*noinspection CssUnusedSymbol*/
1059+
.title-bar.dev-mode::after {
1060+
content: '';
1061+
position: absolute;
1062+
inset: 0;
1063+
background-color: rgba(255, 105, 180, 0.6);
1064+
pointer-events: none;
10531065
}
10541066
10551067
.title-text {

0 commit comments

Comments
 (0)