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;
}
