Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions openless-all/app/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ pub fn run() {
use window_vibrancy::{
apply_vibrancy, NSVisualEffectMaterial, NSVisualEffectState,
};
if let Err(e) = main.set_decorations(true) {
log::warn!("[main] enable native decorations failed: {e}");
}
if let Err(e) = apply_vibrancy(
&main,
NSVisualEffectMaterial::HudWindow,
Expand Down
8 changes: 6 additions & 2 deletions openless-all/app/src/components/WindowChrome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function WindowChrome({
children,
height = 800,
}: WindowChromeProps) {
const shellRadius = os === 'mac' ? 20 : os === 'win' ? WIN_WINDOW_RADIUS : 14;
const shellRadius = os === 'mac' ? 0 : os === 'win' ? WIN_WINDOW_RADIUS : 14;
const consoleRadius = os === 'mac' ? 20 : os === 'win' ? WIN_CONSOLE_RADIUS : 14;

return (
Expand All @@ -66,7 +66,11 @@ export function WindowChrome({
overflow: 'hidden',
display: 'flex',
flexDirection: 'column',
border: os === 'win' ? '1px solid rgba(255,255,255,0.18)' : '0.5px solid rgba(0,0,0,.10)',
border: os === 'mac'
? 'none'
: os === 'win'
? '1px solid rgba(255,255,255,0.18)'
: '0.5px solid rgba(0,0,0,.10)',
background: `
radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 60%),
radial-gradient(100% 70% at 100% 100%, rgba(37,99,235,0.07) 0%, rgba(37,99,235,0) 55%),
Expand Down
Loading