|
25 | 25 | <img src='./logo_filled.png' class='position-absolute w-50 h-50 m-10 pointer d-md-block d-none p-5' alt='ico' use:click={close} />
|
26 | 26 | {/if}
|
27 | 27 | </div>
|
28 |
| - <div class='h-full bg-dark flex-grow-1'> |
29 |
| - {#if window.version?.platform === 'linux'} |
30 |
| - <div class='d-flex align-items-center close h-full' use:click={() => IPC.emit('close')}> |
31 |
| - <svg viewBox='0 0 24 24'> |
32 |
| - <path d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z' /> |
33 |
| - </svg> |
34 |
| - </div> |
35 |
| - {/if} |
| 28 | + <div class='window-controls d-flex position-absolute top-0 right-0 height-full'> |
| 29 | + <button class='button max-button d-flex border-0 color-white align-items-center justify-content-center' on:click={() => IPC.emit('minimize')}><svg class='svg-controls' height='12' role='img' viewBox='0 0 12 12'width='12'><rect fill='currentColor' height='1' width='10' x='1' y='6' /></svg></button> |
| 30 | + <button class='button restore-button d-flex border-0 color-white align-items-center justify-content-center' on:click={() => IPC.emit('maximize')}><svg class='svg-controls' height='12' role='img' viewBox='0 0 12 12'width='12'><rect fill='none' height='9' stroke='currentColor' width='9' x='1.5' y='1.5' /></svg></button> |
| 31 | + <button class='button close-button d-flex border-0 color-white align-items-center justify-content-center' on:click={() => IPC.emit('close')}><svg class='svg-controls' height='12' role='img' viewBox='0 0 12 12'width='12'><polygon fill='currentColor' fill-rule='evenodd' points='11 1.576 6.583 6 11 10.424 10.424 11 6 6.583 1.576 11 1 10.424 5.417 6 1 1.576 1.576 1 6 5.417 10.424 1' /></svg></button> |
36 | 32 | </div>
|
37 | 33 | </div>
|
38 | 34 | {#if $debug}
|
|
51 | 47 | transform: translate(-29.3%) rotate(-45deg);
|
52 | 48 | }
|
53 | 49 | .navbar {
|
54 |
| - --navbar-height: 28px !important; |
| 50 | + --navbar-height: 32px !important; |
55 | 51 | }
|
56 | 52 | .z-101 {
|
57 | 53 | z-index: 101 !important
|
|
66 | 62 | top: 0;
|
67 | 63 | -webkit-app-region: no-drag
|
68 | 64 | }
|
69 |
| - .close { |
70 |
| - width: 40px; |
71 |
| - } |
72 |
| - .close:hover { |
73 |
| - background-color: #e81123 !important; |
74 |
| - } |
75 | 65 | svg {
|
76 | 66 | width: 18px;
|
77 | 67 | height: 18px;
|
78 | 68 | width: 100%;
|
79 | 69 | }
|
80 |
| - path { |
81 |
| - fill: currentColor; |
82 |
| - } |
83 | 70 | .navbar {
|
84 |
| - left: unset !important |
| 71 | + left: unset !important; |
85 | 72 | }
|
86 | 73 | @media (pointer: none), (pointer: coarse) {
|
87 | 74 | .navbar {
|
88 | 75 | display: none !important;
|
89 | 76 | height: 0;
|
90 | 77 | }
|
91 | 78 | }
|
| 79 | + .window-controls { |
| 80 | + -webkit-app-region: no-drag; |
| 81 | + backdrop-filter: blur(8px); |
| 82 | + background: rgba(24, 24, 24, 0.1); |
| 83 | + } |
| 84 | + .window-controls .button { |
| 85 | + background: transparent; |
| 86 | + width: 46px; |
| 87 | + height: 32px; |
| 88 | + user-select: none; |
| 89 | + } |
| 90 | + .window-controls .button:hover { |
| 91 | + background: rgba(128, 128, 128, 0.2); |
| 92 | + } |
| 93 | + .window-controls .button:active { |
| 94 | + background: rgba(128, 128, 128, 0.4); |
| 95 | + } |
| 96 | + .close-button:hover { |
| 97 | + background: #e81123 !important; |
| 98 | + } |
| 99 | + .close-button:active { |
| 100 | + background: #f1707a !important; |
| 101 | + } |
| 102 | + .svg-controls { |
| 103 | + width: 12px; |
| 104 | + height: 12px; |
| 105 | + } |
92 | 106 | </style>
|
0 commit comments