Window border on Linux

This commit is contained in:
Gregory Schier
2024-05-31 08:43:35 -07:00
parent bce3d26a1a
commit 1ce50e0c1b
10 changed files with 180 additions and 35 deletions

View File

@@ -2,12 +2,22 @@ import { Outlet } from 'react-router-dom';
import { DialogProvider } from './DialogContext';
import { GlobalHooks } from './GlobalHooks';
import { ToastProvider } from './ToastContext';
import classNames from 'classnames';
import { useOsInfo } from '../hooks/useOsInfo';
export function DefaultLayout() {
const osInfo = useOsInfo();
return (
<DialogProvider>
<ToastProvider>
<Outlet />
<div
className={classNames(
'w-full h-full',
osInfo?.osType === 'linux' && 'border border-background-highlight-secondary',
)}
>
<Outlet />
</div>
<GlobalHooks />
</ToastProvider>
</DialogProvider>

View File

@@ -28,7 +28,7 @@ export const Settings = () => {
useKeyPressEvent('Escape', () => getCurrent().close());
return (
<>
<div className={classNames('grid grid-rows-[auto_minmax(0,1fr)] h-full')}>
<HeaderSize
data-tauri-drag-region
ignoreStoplights
@@ -60,6 +60,6 @@ export const Settings = () => {
<SettingsAppearance />
</TabContent>
</Tabs>
</>
</div>
);
};