Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add todo comments on deprecated features #883

Merged
merged 2 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/src/colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ 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]

Expand Down Expand Up @@ -101,9 +103,11 @@ 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]

Expand Down
1 change: 1 addition & 0 deletions lib/src/themes/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ 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.')
Expand Down
2 changes: 2 additions & 0 deletions lib/src/themes/ubuntu_mate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ 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;

Expand Down