solarized static method

Theme solarized()

solarized theme.

Implementation

static Theme solarized() {
  const primary = BasicColor('#268bd2');
  const secondary = BasicColor('#6c71c4');
  const accent = BasicColor('#2aa198');
  const error = BasicColor('#dc322f');
  const warning = BasicColor('#b58900');
  const success = BasicColor('#859900');
  const info = BasicColor('#cb4b16');
  const text = AdaptiveColor(
    dark: BasicColor('#839496'),
    light: BasicColor('#657b83'),
  );
  const textMuted = AdaptiveColor(
    dark: BasicColor('#586e75'),
    light: BasicColor('#93a1a1'),
  );
  const background = AdaptiveColor(
    dark: BasicColor('#002b36'),
    light: BasicColor('#fdf6e3'),
  );
  const backgroundPanel = AdaptiveColor(
    dark: BasicColor('#073642'),
    light: BasicColor('#eee8d5'),
  );
  const backgroundElement = AdaptiveColor(
    dark: BasicColor('#073642'),
    light: BasicColor('#eee8d5'),
  );
  const border = AdaptiveColor(
    dark: BasicColor('#073642'),
    light: BasicColor('#eee8d5'),
  );
  const borderActive = AdaptiveColor(
    dark: BasicColor('#586e75'),
    light: BasicColor('#93a1a1'),
  );
  const borderSubtle = AdaptiveColor(
    dark: BasicColor('#073642'),
    light: BasicColor('#eee8d5'),
  );

  return _withEditorThemeOverrides(
    _buildTheme(
      primary: primary,
      secondary: secondary,
      accent: accent,
      error: error,
      warning: warning,
      success: success,
      info: info,
      text: text,
      textMuted: textMuted,
      background: background,
      backgroundPanel: backgroundPanel,
      backgroundElement: backgroundElement,
      border: border,
      borderActive: borderActive,
      borderSubtle: borderSubtle,
    ),
    inactiveShellBackground: background,
    inactiveShellBorderColor: backgroundPanel,
    inactiveBodyBorderColor: backgroundPanel,
    blurredTextForeground: textMuted,
    blurredPromptForeground: textMuted,
    blurredPlaceholderForeground: textMuted,
    focusedLineNumberForeground: text,
    blurredLineNumberForeground: textMuted,
    blurredCursorLineBackground: background,
    blurredCursorLineNumberForeground: textMuted,
  );
}