mirror of https://github.com/Wox-launcher/Wox
refactor(ui): adjust DataTable row heights for improved layout
* Reduced `headingRowHeight` to 36 for consistency across tables. * Set `dataRowMinHeight` and `dataRowMaxHeight` to 36 to enhance visual uniformity. * Updated tooltip labels to use `tr("ui_operation")` for better localization.
This commit is contained in:
parent
9d9c173ae9
commit
816f28e3d3
|
@ -444,7 +444,9 @@ class WoxSettingPluginTable extends WoxSettingPluginItem {
|
|||
columnSpacing: columnSpacing,
|
||||
horizontalMargin: 5,
|
||||
clipBehavior: Clip.hardEdge,
|
||||
headingRowHeight: 48,
|
||||
headingRowHeight: 36,
|
||||
dataRowMinHeight: 36,
|
||||
dataRowMaxHeight: 36,
|
||||
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
||||
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
||||
columns: [
|
||||
|
@ -472,7 +474,7 @@ class WoxSettingPluginTable extends WoxSettingPluginItem {
|
|||
label: columnWidth(
|
||||
column: PluginSettingValueTableColumn.fromJson(<String, dynamic>{
|
||||
"Key": "Operation",
|
||||
"Label": tr("operation"),
|
||||
"Label": tr("ui_operation"),
|
||||
"Tooltip": "",
|
||||
"Width": operationWidth.toInt(),
|
||||
"Type": PluginSettingValueType.pluginSettingValueTableColumnTypeText,
|
||||
|
@ -481,9 +483,9 @@ class WoxSettingPluginTable extends WoxSettingPluginItem {
|
|||
isHeader: false,
|
||||
isOperation: true,
|
||||
child: material.Tooltip(
|
||||
message: tr("operation"),
|
||||
message: tr("ui_operation"),
|
||||
child: Text(
|
||||
tr("operation"),
|
||||
tr("ui_operation"),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
style: TextStyle(
|
||||
|
@ -565,7 +567,9 @@ class WoxSettingPluginTable extends WoxSettingPluginItem {
|
|||
child: material.DataTable(
|
||||
columnSpacing: columnSpacing,
|
||||
horizontalMargin: 5,
|
||||
headingRowHeight: 40,
|
||||
headingRowHeight: 36,
|
||||
dataRowMinHeight: 36,
|
||||
dataRowMaxHeight: 36,
|
||||
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
||||
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
||||
columns: [
|
||||
|
|
|
@ -145,7 +145,9 @@ class WoxSettingDataView extends WoxSettingBaseView {
|
|||
return material.DataTable(
|
||||
columnSpacing: 10,
|
||||
horizontalMargin: 5,
|
||||
headingRowHeight: 48,
|
||||
headingRowHeight: 36,
|
||||
dataRowMinHeight: 36,
|
||||
dataRowMaxHeight: 36,
|
||||
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
||||
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
||||
columns: [
|
||||
|
|
Loading…
Reference in New Issue