replace IconButton with ExpandButton for Quick Settings and improve quickSettings translations

This commit is contained in:
veto9292 2026-05-18 01:01:59 +03:30
parent e5fed9ca6e
commit 3152857060
12 changed files with 49 additions and 21 deletions

View File

@ -105,7 +105,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "الرئيسية", "title": "الرئيسية",
"quickSettings": "الإعدادات السريعة" "quickSettings": "خيارات الإعدادات السريعة"
}, },
"proxies": { "proxies": {
"title": "البروكسيات", "title": "البروكسيات",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "Home", "title": "Home",
"quickSettings": "Quick settings" "quickSettings": "Quick setting options"
}, },
"proxies": { "proxies": {
"title": "Proxies", "title": "Proxies",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "Inicio", "title": "Inicio",
"quickSettings": "Ajustes rápidos" "quickSettings": "Opciones de ajustes rápidos"
}, },
"proxies": { "proxies": {
"title": "Proxies", "title": "Proxies",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "خانه", "title": "خانه",
"quickSettings": "تنظیمات سریع" "quickSettings": "گزینه‌های تنظیمات سریع"
}, },
"proxies": { "proxies": {
"title": "پروکسی‌ها", "title": "پروکسی‌ها",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "Accueil", "title": "Accueil",
"quickSettings": "Réglages rapides" "quickSettings": "Options de réglages rapides"
}, },
"proxies": { "proxies": {
"title": "Proxys", "title": "Proxys",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "Beranda", "title": "Beranda",
"quickSettings": "Pengaturan cepat" "quickSettings": "Opsi pengaturan cepat"
}, },
"proxies": { "proxies": {
"title": "Proxy", "title": "Proxy",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "Início", "title": "Início",
"quickSettings": "Configurações rápidas" "quickSettings": "Opções de configurações rápidas"
}, },
"proxies": { "proxies": {
"title": "Proxies", "title": "Proxies",

View File

@ -103,7 +103,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "Главная", "title": "Главная",
"quickSettings": "Быстрые настройки" "quickSettings": "Опции быстрых настроек"
}, },
"proxies": { "proxies": {
"title": "Прокси", "title": "Прокси",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "Ana Sayfa", "title": "Ana Sayfa",
"quickSettings": "Hızlı ayarlar" "quickSettings": "Hızlı ayar seçenekleri"
}, },
"proxies": { "proxies": {
"title": "Proxy'ler", "title": "Proxy'ler",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "主页", "title": "主页",
"quickSettings": "快速设置" "quickSettings": "快速设置选项"
}, },
"proxies": { "proxies": {
"title": "代理", "title": "代理",

View File

@ -99,7 +99,7 @@
"pages": { "pages": {
"home": { "home": {
"title": "首頁", "title": "首頁",
"quickSettings": "快速設定" "quickSettings": "快速設定選項"
}, },
"proxies": { "proxies": {
"title": "代理", "title": "代理",

View File

@ -60,16 +60,6 @@ class HomePage extends HookConsumerWidget {
// material: (context, platform) => MaterialIconButtonData( // material: (context, platform) => MaterialIconButtonData(
// tooltip: t.profile.add.buttonText, // tooltip: t.profile.add.buttonText,
// )), // )),
if (ref.watch(hasAnyProfileProvider).value ?? false)
Semantics(
key: const ValueKey("profile_quick_settings"),
label: t.pages.home.quickSettings,
child: IconButton(
icon: Icon(Icons.tune_rounded, color: theme.colorScheme.primary),
onPressed: () => ref.read(bottomSheetsNotifierProvider.notifier).showQuickSettings(),
),
),
const Gap(8),
Semantics( Semantics(
key: const ValueKey("profile_add_button"), key: const ValueKey("profile_add_button"),
label: t.pages.profiles.add, label: t.pages.profiles.add,
@ -132,6 +122,7 @@ class HomePage extends HookConsumerWidget {
), ),
), ),
ActiveProxyFooter(), ActiveProxyFooter(),
Gap(32),
], ],
), ),
), ),
@ -148,6 +139,43 @@ class HomePage extends HookConsumerWidget {
), ),
), ),
), ),
if (ref.watch(hasAnyProfileProvider).value ?? false)
Positioned(
right: 0,
left: 0,
bottom: 0,
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Material(
color: theme.colorScheme.primaryContainer,
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
),
child: InkWell(
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
),
onTap: () => ref.read(bottomSheetsNotifierProvider.notifier).showQuickSettings(),
child: Container(
height: 32,
padding: const EdgeInsetsDirectional.only(start: 16, end: 8),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(t.pages.home.quickSettings),
const Gap(4),
const Icon(Icons.arrow_drop_up_rounded, size: 16),
],
),
),
),
),
],
),
),
], ],
), ),
), ),