branding fixes
This commit is contained in:
@@ -5,6 +5,7 @@ import 'dart:typed_data';
|
||||
import 'package:riverpod/riverpod.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:search_client/search_client.dart';
|
||||
import 'package:weblibre/core/branding/proxy_brands.dart';
|
||||
import 'package:weblibre/domain/services/generic_website.dart';
|
||||
import 'package:weblibre/features/search_credits/domain/controllers/search_token_issuance_controller.dart';
|
||||
import 'package:weblibre/features/search_credits/domain/providers.dart';
|
||||
@@ -302,7 +303,7 @@ class MetaSearchController extends _$MetaSearchController {
|
||||
state = state.copyWith(
|
||||
status: WebSearchStatus.error,
|
||||
errorMessage:
|
||||
'Could not start Tor for the search. Disable the Tor toggle or try again.',
|
||||
'Could not start $torBrand for the search. Disable the $torBrand toggle or try again.',
|
||||
hasOpenSession: false,
|
||||
);
|
||||
return;
|
||||
|
||||
+2
-1
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:weblibre/core/branding/proxy_brands.dart';
|
||||
import 'package:weblibre/core/design/app_colors.dart';
|
||||
import 'package:weblibre/features/search_credits/domain/providers/proxy_client.dart';
|
||||
import 'package:weblibre/features/search_credits/domain/repositories/web_search_settings.dart';
|
||||
@@ -121,7 +122,7 @@ class RouteThroughTorToggle extends HookConsumerWidget {
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Text(
|
||||
routeThroughTor ? 'Tor on' : 'Tor off',
|
||||
routeThroughTor ? '$torBrand on' : '$torBrand off',
|
||||
style: textTheme.labelLarge?.copyWith(
|
||||
color: routeThroughTor
|
||||
? colorScheme.onPrimaryContainer
|
||||
|
||||
Reference in New Issue
Block a user