feat: SSH page background (#775)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-06-05 08:53:00 +08:00
committed by GitHub
parent 176cb7da03
commit 4701757857
10 changed files with 289 additions and 166 deletions

View File

@@ -72,7 +72,6 @@ extension _Server on _AppSettingsPageState {
}
Widget _buildTextScaler() {
final ctrl = TextEditingController(text: _setting.textFactor.toString());
return ListTile(
// title: Text(l10n.textScaler),
// subtitle: Text(l10n.textScalerTip, style: UIs.textGrey),
@@ -88,11 +87,11 @@ extension _Server on _AppSettingsPageState {
type: TextInputType.number,
hint: '1.0',
icon: Icons.format_size,
controller: ctrl,
controller: _textScalerCtrl,
onSubmitted: _onSaveTextScaler,
suggestion: false,
),
actions: Btn.ok(onTap: () => _onSaveTextScaler(ctrl.text)).toList,
actions: Btn.ok(onTap: () => _onSaveTextScaler(_textScalerCtrl.text)).toList,
),
);
}
@@ -273,14 +272,13 @@ extension _Server on _AppSettingsPageState {
title: const Text('Logo URL'),
trailing: const Icon(Icons.keyboard_arrow_right),
onTap: () {
final ctrl = TextEditingController(text: _setting.serverLogoUrl.fetch());
context.showRoundDialog(
title: 'Logo URL',
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Input(
controller: ctrl,
controller: _serverLogoCtrl,
autoFocus: true,
hint: 'https://example.com/logo.png',
icon: Icons.link,
@@ -295,7 +293,7 @@ extension _Server on _AppSettingsPageState {
),
],
),
actions: Btn.ok(onTap: () => onSave(ctrl.text)).toList,
actions: Btn.ok(onTap: () => onSave(_serverLogoCtrl.text)).toList,
);
},
);