File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,23 +42,16 @@ export default function TitleBar() {
4242 fetch ( ) ;
4343 } , [ ] ) ;
4444
45- return show && (
46- < div className = "titlebar" >
47- < span data-tauri-drag-region > { appName } </ span >
48- < Stack direction = "horizontal" className = "flex-row-reverse" gap = { 1 } >
49- < TitleBarButton
50- icon = "x"
51- onClick = { onClickClose }
52- />
53- < TitleBarButton
54- icon = "window-maximize"
55- onClick = { onClickMaximize }
56- />
57- < TitleBarButton
58- icon = "window-minimize"
59- onClick = { onClickMinimize }
60- />
61- </ Stack >
62- </ div >
45+ return (
46+ show && (
47+ < div className = "titlebar px-3" >
48+ < span data-tauri-drag-region > { appName } </ span >
49+ < Stack direction = "horizontal" className = "flex-row-reverse" gap = { 1 } >
50+ < TitleBarButton icon = "x" onClick = { onClickClose } />
51+ < TitleBarButton icon = "window-maximize" onClick = { onClickMaximize } />
52+ < TitleBarButton icon = "window-minimize" onClick = { onClickMinimize } />
53+ </ Stack >
54+ </ div >
55+ )
6356 ) ;
6457}
Original file line number Diff line number Diff line change 66
77$body-bg : #d5edf4 ;
88$body-bg-dark : #000 ;
9- $title-bar-bg-opacity : 0.05 ;
9+ $title-bar-bg-opacity : 0.5 ;
1010
1111@import " ../../node_modules/bootstrap/scss/maps" ;
1212@import " ../../node_modules/bootstrap/scss/mixins" ;
@@ -16,11 +16,12 @@ $title-bar-bg-opacity: 0.05;
1616
1717@include color-mode (dark ) {
1818 .titlebar {
19- background-color : rgba ($body-bg , $title-bar-bg-opacity )
19+ background-color : rgba ($body-bg-dark , $title-bar-bg-opacity );
20+ backdrop-filter : blur (10px );
2021 }
2122
2223 .titlebar-button :hover {
23- background-color : rgba ($body-bg , $title-bar-bg-opacity * 2 );
24+ background-color : rgba ($body-bg , $title-bar-bg-opacity / 2 );
2425 }
2526
2627 .table-striped thead th {
@@ -172,11 +173,12 @@ $title-bar-bg-opacity: 0.05;
172173 }
173174
174175 .titlebar {
175- background-color : rgba ($body-bg-dark , $title-bar-bg-opacity )
176+ background-color : rgba ($body-bg , $title-bar-bg-opacity );
177+ backdrop-filter : blur (10px );
176178 }
177179
178180 .titlebar-button :hover {
179- background-color : rgba ($body-bg-dark , $title-bar-bg-opacity * 2 );
181+ background-color : rgba ($body-bg-dark , $title-bar-bg-opacity / 2 );
180182 }
181183
182184 .table-striped thead th {
You can’t perform that action at this time.
0 commit comments