Skip to content

Commit

Permalink
feat!: drop deprecated features for 5.0 (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupi007 committed May 15, 2024
1 parent 012756b commit a07c9aa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
16 changes: 0 additions & 16 deletions lib/src/colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ class YaruColors {
/// Error
final Color error;

// TODO: remove this for 5.0 release.
@Deprecated('Use YaruColors.dark.error instead.')
static const Color errorLight = Color(0xFFE86581); // YaruColors.red[300]

// TODO: remove this for 5.0 release.
@Deprecated('Use YaruColors.light.error instead.')
static const Color errorDark = Color(0xFFB52A4A); // YaruColors.red[700]

/// Warning
final Color warning;

Expand Down Expand Up @@ -103,14 +95,6 @@ class YaruColors {
/// Link
final Color link;

// TODO: remove this for 5.0 release.
@Deprecated('Use YaruColors.dark.link instead.')
static const Color linkLight = Color(0xFF0094FF); // YaruColors.blue[500]

// TODO: remove this for 5.0 release.
@Deprecated('Use YaruColors.light.link instead.')
static const Color linkDark = Color(0xFF0073E5); // YaruColors.blue[700]

/// Olive
static const Color olive = Color(0xFF4B8501);

Expand Down
10 changes: 0 additions & 10 deletions lib/src/themes/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@ import 'package:flutter/material.dart';

import '../colors.dart';

// TODO: remove this for 5.0 release.
@Deprecated('Use YaruColorSchemeExtension instead.')
extension YaruThemeDataExtension on ThemeData {
@Deprecated('Use ColorScheme.success instead.')
Color get successColor => colorScheme.success;

@Deprecated('Use ColorScheme.warning instead.')
Color get warningColor => colorScheme.warning;
}

/// Yaru-specific color scheme extensions.
extension YaruColorSchemeExtension on ColorScheme {
/// Whether the brightness is dark.
Expand Down
8 changes: 0 additions & 8 deletions lib/src/themes/ubuntu_mate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@ import '../../theme.dart';

const _primaryColor = YaruColors.ubuntuMateGreen;

// TODO: remove this for 5.0 release.
@Deprecated('Use yaruUbuntuMateLight instead')
final yaruMateLight = yaruUbuntuMateLight;

final yaruUbuntuMateLight = createYaruLightTheme(
primaryColor: _primaryColor,
);

// TODO: remove this for 5.0 release.
@Deprecated('Use yaruUbuntuMateDark instead')
final yaruMateDark = yaruUbuntuMateDark;

final yaruUbuntuMateDark = createYaruDarkTheme(
primaryColor: _primaryColor,
);

0 comments on commit a07c9aa

Please sign in to comment.