feat(desktop): enable macOS version awareness for UI adjustments

- Fetch macOS major version from Rust to determine layout
- Adjust header padding and height for macOS versions
This commit is contained in:
Bohdan Triapitsyn
2026-01-30 02:46:43 +02:00
parent 5550193861
commit 2d305d18c6
8 changed files with 91 additions and 22 deletions
+1
View File
@@ -89,6 +89,7 @@ export type DesktopSettingsApi = {
export type DesktopApi = {
homeDirectory?: string;
macosMajorVersion?: number | null;
getServerInfo: () => Promise<DesktopServerInfo>;
restartOpenCode: () => Promise<{ success: boolean }>;
shutdown: () => Promise<{ success: boolean }>;