mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Minor fixes
This commit is contained in:
parent
50c3ca720e
commit
1a6cbc71c3
4 changed files with 25 additions and 3 deletions
|
@ -188,6 +188,13 @@ ThemeData lightThemeOldVersions() => ThemeData(
|
|||
overlayColor: MaterialStateProperty.all(primaryColor.withOpacity(0.1))
|
||||
),
|
||||
),
|
||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
foregroundColor: MaterialStateProperty.all(primaryColor),
|
||||
surfaceTintColor: MaterialStateProperty.all(primaryColor),
|
||||
overlayColor: MaterialStateProperty.all(primaryColor.shade50),
|
||||
)
|
||||
),
|
||||
navigationBarTheme: NavigationBarThemeData(
|
||||
surfaceTintColor: primaryColor,
|
||||
indicatorColor: primaryColor
|
||||
|
@ -276,6 +283,13 @@ ThemeData darkThemeOldVersions() => ThemeData(
|
|||
overlayColor: MaterialStateProperty.all(primaryColor.withOpacity(0.1))
|
||||
),
|
||||
),
|
||||
elevatedButtonTheme: ElevatedButtonThemeData(
|
||||
style: ButtonStyle(
|
||||
foregroundColor: MaterialStateProperty.all(primaryColor),
|
||||
surfaceTintColor: MaterialStateProperty.all(primaryColor),
|
||||
overlayColor: MaterialStateProperty.all(primaryColor.shade50),
|
||||
)
|
||||
),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
floatingLabelStyle: TextStyle(
|
||||
color: primaryColor
|
||||
|
|
|
@ -304,5 +304,7 @@
|
|||
"example4": "Block access to domains matching the specified regular expression.",
|
||||
"moreInformation": "More information",
|
||||
"addingRule": "Adding rule...",
|
||||
"deletingRule": "Deleting rule..."
|
||||
"deletingRule": "Deleting rule...",
|
||||
"enablingList": "Enabling list...",
|
||||
"disablingList": "Disabling list..."
|
||||
}
|
|
@ -304,5 +304,7 @@
|
|||
"example4": "Bloquea el acceso a los dominios que coincidan con la expresión regular especificada.",
|
||||
"moreInformation": "Más información",
|
||||
"addingRule": "Añadiendo regla...",
|
||||
"deletingRule": "Eliminando regla..."
|
||||
"deletingRule": "Eliminando regla...",
|
||||
"enablingList": "Habilitando lista...",
|
||||
"disablingList": "Deshabilitando lista..."
|
||||
}
|
|
@ -72,7 +72,11 @@ class _FiltersListState extends State<FiltersList> {
|
|||
|
||||
void enableDisableList(Filter list, bool enabled) async {
|
||||
ProcessModal processModal = ProcessModal(context: context);
|
||||
processModal.open(AppLocalizations.of(context)!.updatingListData);
|
||||
processModal.open(
|
||||
enabled == true
|
||||
? AppLocalizations.of(context)!.enablingList
|
||||
: AppLocalizations.of(context)!.disablingList,
|
||||
);
|
||||
|
||||
final result = await updateFilterList(server: serversProvider.selectedServer!, data: {
|
||||
"data": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue