fix: deprecated normal functions for getting theme

This commit is contained in:
Prateek Sunal
2025-08-22 02:27:00 +05:30
parent eb959046cd
commit da15842597

View File

@@ -57,3 +57,23 @@ EnteTheme darkTheme = EnteTheme(
shadowMenu: shadowMenuDark,
shadowButton: shadowButtonDark,
);
@Deprecated('Use EnteTheme.getColorScheme instead')
EnteColorScheme getEnteColorScheme(
BuildContext context, {
bool inverse = false,
}) {
return inverse
? Theme.of(context).colorScheme.inverseEnteTheme.colorScheme
: Theme.of(context).colorScheme.enteTheme.colorScheme;
}
@Deprecated('Use EnteTheme.getTextTheme instead')
EnteTextTheme getEnteTextTheme(
BuildContext context, {
bool inverse = false,
}) {
return inverse
? Theme.of(context).colorScheme.inverseEnteTheme.textTheme
: Theme.of(context).colorScheme.enteTheme.textTheme;
}