opt.: term padding

This commit is contained in:
lollipopkit
2024-03-12 23:08:27 -06:00
parent 3747e2fc40
commit 98bee2aae7
14 changed files with 23 additions and 24 deletions

View File

@@ -98,7 +98,7 @@ class SettingStore extends PersistentStore {
// SSH virtual key (ctrl | alt) auto turn off // SSH virtual key (ctrl | alt) auto turn off
late final sshVirtualKeyAutoOff = property('sshVirtualKeyAutoOff', true); late final sshVirtualKeyAutoOff = property('sshVirtualKeyAutoOff', true);
late final editorFontSize = property('editorFontSize', 13.0); late final editorFontSize = property('editorFontSize', 12.5);
// Editor theme // Editor theme
late final editorTheme = property( late final editorTheme = property(

View File

@@ -246,7 +246,7 @@
"system": "Systeme", "system": "Systeme",
"tag": "Tags", "tag": "Tags",
"temperature": "Temperatur", "temperature": "Temperatur",
"termFontSizeTip": "Diese Einstellung beeinflusst die Größe des Terminals (Breite und Höhe).", "termFontSizeTip": "Diese Einstellung beeinflusst die Größe des Terminals (Breite und Höhe). Sie können die Terminalseite zoomen, um die Schriftgröße der aktuellen Sitzung anzupassen.",
"terminal": "Terminal", "terminal": "Terminal",
"test": "Prüfung", "test": "Prüfung",
"textScaler": "Skalierung der Schriftart", "textScaler": "Skalierung der Schriftart",

View File

@@ -246,7 +246,7 @@
"system": "System", "system": "System",
"tag": "Tags", "tag": "Tags",
"temperature": "Temperature", "temperature": "Temperature",
"termFontSizeTip": "This setting will affect the terminal size (width and height).", "termFontSizeTip": "This setting will affect the terminal size (width and height). You can zoom in on the terminal page to adjust the font size of the current session.",
"terminal": "Terminal", "terminal": "Terminal",
"test": "Test", "test": "Test",
"textScaler": "Text scaler", "textScaler": "Text scaler",

View File

@@ -246,7 +246,7 @@
"system": "Sistema", "system": "Sistema",
"tag": "Etiqueta", "tag": "Etiqueta",
"temperature": "Temperatura", "temperature": "Temperatura",
"termFontSizeTip": "Este ajuste afectará el tamaño del terminal (ancho y alto).", "termFontSizeTip": "Este ajuste afectará el tamaño del terminal (ancho y alto). Puedes hacer zoom en la página del terminal para ajustar el tamaño de fuente de la sesión actual.",
"terminal": "Terminal", "terminal": "Terminal",
"test": "Prueba", "test": "Prueba",
"textScaler": "Escalar texto", "textScaler": "Escalar texto",

View File

@@ -246,7 +246,7 @@
"system": "Système", "system": "Système",
"tag": "Étiquettes", "tag": "Étiquettes",
"temperature": "Température", "temperature": "Température",
"termFontSizeTip": "Ce paramètre affectera la taille du terminal (largeur et hauteur).", "termFontSizeTip": "Ce paramètre affectera la taille du terminal (largeur et hauteur). Vous pouvez zoomer sur la page du terminal pour ajuster la taille de la police de la session en cours.",
"terminal": "Terminal", "terminal": "Terminal",
"test": "Tester", "test": "Tester",
"textScaler": "Mise à l'échelle du texte", "textScaler": "Mise à l'échelle du texte",

View File

@@ -246,7 +246,7 @@
"system": "Sistem", "system": "Sistem",
"tag": "Tag", "tag": "Tag",
"temperature": "Suhu", "temperature": "Suhu",
"termFontSizeTip": "Pengaturan ini akan memengaruhi ukuran terminal (lebar dan tinggi).", "termFontSizeTip": "Pengaturan ini akan memengaruhi ukuran terminal (lebar dan tinggi). Anda dapat melakukan zoom pada halaman terminal untuk menyesuaikan ukuran font sesi saat ini.",
"terminal": "Terminal", "terminal": "Terminal",
"test": "pengujian", "test": "pengujian",
"textScaler": "Penskalaan font", "textScaler": "Penskalaan font",

View File

@@ -246,7 +246,7 @@
"system": "システム", "system": "システム",
"tag": "タグ", "tag": "タグ",
"temperature": "温度", "temperature": "温度",
"termFontSizeTip": "この設定は端末のサイズ(幅と高さ)に影響します", "termFontSizeTip": "この設定は端末のサイズ(幅と高さ)に影響します。現在のセッションのフォントサイズを調整するために、端末ページを拡大縮小できます。",
"terminal": "ターミナル", "terminal": "ターミナル",
"test": "テスト", "test": "テスト",
"textScaler": "テキストスケーラー", "textScaler": "テキストスケーラー",

View File

@@ -246,7 +246,7 @@
"system": "Sistema", "system": "Sistema",
"tag": "Tag", "tag": "Tag",
"temperature": "Temperatura", "temperature": "Temperatura",
"termFontSizeTip": "Esta configuração afetará o tamanho do terminal (largura e altura).", "termFontSizeTip": "Esta configuração afetará o tamanho do terminal (largura e altura). Você pode dar zoom na página do terminal para ajustar o tamanho da fonte da sessão atual.",
"terminal": "Terminal", "terminal": "Terminal",
"test": "Teste", "test": "Teste",
"textScaler": "Escala de texto", "textScaler": "Escala de texto",

View File

@@ -246,7 +246,7 @@
"system": "система", "system": "система",
"tag": "тег", "tag": "тег",
"temperature": "температура", "temperature": "температура",
"termFontSizeTip": "Эта настройка повлияет на размер терминала (ширина и высота).", "termFontSizeTip": "Эта настройка повлияет на размер терминала (ширина и высота). Вы можете масштабировать страницу терминала, чтобы调整 размер шрифта текущей сессии.",
"terminal": "терминал", "terminal": "терминал",
"test": "тест", "test": "тест",
"textScaler": "масштабирование текста", "textScaler": "масштабирование текста",

View File

@@ -246,7 +246,7 @@
"system": "系统", "system": "系统",
"tag": "标签", "tag": "标签",
"temperature": "温度", "temperature": "温度",
"termFontSizeTip": "此设置会影响终端大小(宽高)", "termFontSizeTip": "此设置会影响终端大小(宽高)。可以在终端页面缩放来调整当前会话的字体大小",
"terminal": "终端", "terminal": "终端",
"test": "测试", "test": "测试",
"textScaler": "字体缩放", "textScaler": "字体缩放",

View File

@@ -246,7 +246,7 @@
"system": "系統", "system": "系統",
"tag": "标签", "tag": "标签",
"temperature": "溫度", "temperature": "溫度",
"termFontSizeTip": "此設置將影響終端大小(寬度和高度)", "termFontSizeTip": "此設置將影響終端大小(寬度和高度)。您可以在終端頁面縮放,來調整當前會話的字體大小。",
"terminal": "终端機", "terminal": "终端機",
"test": "測試", "test": "測試",
"textScaler": "字體縮放", "textScaler": "字體縮放",

View File

@@ -172,8 +172,7 @@ class _SettingPageState extends State<SettingPage> {
_buildFont(), _buildFont(),
_buildTermFontSize(), _buildTermFontSize(),
_buildSSHVirtualKeyAutoOff(), _buildSSHVirtualKeyAutoOff(),
// Use hardware keyboard on desktop, so there is no need to set it //if (isAndroid) _buildCNKeyboardComp(),
if (isAndroid) _buildCNKeyboardComp(),
if (isMobile) _buildSSHVirtKeys(), if (isMobile) _buildSSHVirtKeys(),
].map((e) => CardX(child: e)).toList(), ].map((e) => CardX(child: e)).toList(),
); );
@@ -653,13 +652,13 @@ class _SettingPageState extends State<SettingPage> {
// ); // );
// } // }
Widget _buildCNKeyboardComp() { // Widget _buildCNKeyboardComp() {
return ListTile( // return ListTile(
title: Text(l10n.cnKeyboardComp), // title: Text(l10n.cnKeyboardComp),
subtitle: Text(l10n.cnKeyboardCompTip, style: UIs.textGrey), // subtitle: Text(l10n.cnKeyboardCompTip, style: UIs.textGrey),
trailing: StoreSwitch(prop: _setting.cnKeyboardComp), // trailing: StoreSwitch(prop: _setting.cnKeyboardComp),
); // );
} // }
Widget _buildSSHVirtKeys() { Widget _buildSSHVirtKeys() {
return ListTile( return ListTile(

View File

@@ -129,7 +129,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
_media.padding.top, _media.padding.top,
child: Padding( child: Padding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: CustomAppBar.barHeight ?? _media.padding.top, top: CustomAppBar.barHeight ?? 0,
left: _horizonPadding, left: _horizonPadding,
right: _horizonPadding, right: _horizonPadding,
), ),
@@ -137,7 +137,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
_terminal, _terminal,
controller: _terminalController, controller: _terminalController,
keyboardType: TextInputType.emailAddress, keyboardType: TextInputType.emailAddress,
enableSuggestions: Stores.setting.cnKeyboardComp.fetch(), enableSuggestions: true,
textStyle: _terminalStyle, textStyle: _terminalStyle,
theme: _terminalTheme, theme: _terminalTheme,
deleteDetection: isMobile, deleteDetection: isMobile,
@@ -148,7 +148,7 @@ class _SSHPageState extends State<SSHPage> with AutomaticKeepAliveClientMixin {
2 * _horizonPadding, 2 * _horizonPadding,
CustomAppBar.barHeight ?? _media.padding.top, CustomAppBar.barHeight ?? _media.padding.top,
), ),
//hideScrollBar: false, hideScrollBar: false,
), ),
), ),
); );

View File

@@ -1259,7 +1259,7 @@ packages:
description: description:
path: "." path: "."
ref: master ref: master
resolved-ref: ee64dc1541a18f513856de0f554d8227fdbf29da resolved-ref: "8f17dcbcafa9dc1b56cb3d7075dedfe0487d6a9b"
url: "https://github.com/lollipopkit/xterm.dart" url: "https://github.com/lollipopkit/xterm.dart"
source: git source: git
version: "4.0.0" version: "4.0.0"