Initial commit

This commit is contained in:
admin1
2026-07-14 11:11:36 +08:00
commit 656499cf94
604 changed files with 119518 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import 'dart:io';
import '../theme/app_theme.dart';
class WindowChrome {
WindowChrome._();
static const double buttonWidth = 36;
static const double controlsHeight = 30;
static const int buttonCount = 3;
static const double containerHorizontalPadding = 12;
static const double controlsWidth =
buttonWidth * buttonCount + containerHorizontalPadding;
static bool get isDesktop => Platform.isMacOS || Platform.isWindows;
static double reservedTrailingWidth(AppTokens tokens) =>
isDesktop ? controlsWidth + tokens.chromeInset + 8 : 0;
}