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,
|
columnSpacing: columnSpacing,
|
||||||
horizontalMargin: 5,
|
horizontalMargin: 5,
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
headingRowHeight: 48,
|
headingRowHeight: 36,
|
||||||
|
dataRowMinHeight: 36,
|
||||||
|
dataRowMaxHeight: 36,
|
||||||
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
||||||
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
||||||
columns: [
|
columns: [
|
||||||
|
@ -472,7 +474,7 @@ class WoxSettingPluginTable extends WoxSettingPluginItem {
|
||||||
label: columnWidth(
|
label: columnWidth(
|
||||||
column: PluginSettingValueTableColumn.fromJson(<String, dynamic>{
|
column: PluginSettingValueTableColumn.fromJson(<String, dynamic>{
|
||||||
"Key": "Operation",
|
"Key": "Operation",
|
||||||
"Label": tr("operation"),
|
"Label": tr("ui_operation"),
|
||||||
"Tooltip": "",
|
"Tooltip": "",
|
||||||
"Width": operationWidth.toInt(),
|
"Width": operationWidth.toInt(),
|
||||||
"Type": PluginSettingValueType.pluginSettingValueTableColumnTypeText,
|
"Type": PluginSettingValueType.pluginSettingValueTableColumnTypeText,
|
||||||
|
@ -481,9 +483,9 @@ class WoxSettingPluginTable extends WoxSettingPluginItem {
|
||||||
isHeader: false,
|
isHeader: false,
|
||||||
isOperation: true,
|
isOperation: true,
|
||||||
child: material.Tooltip(
|
child: material.Tooltip(
|
||||||
message: tr("operation"),
|
message: tr("ui_operation"),
|
||||||
child: Text(
|
child: Text(
|
||||||
tr("operation"),
|
tr("ui_operation"),
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
@ -565,7 +567,9 @@ class WoxSettingPluginTable extends WoxSettingPluginItem {
|
||||||
child: material.DataTable(
|
child: material.DataTable(
|
||||||
columnSpacing: columnSpacing,
|
columnSpacing: columnSpacing,
|
||||||
horizontalMargin: 5,
|
horizontalMargin: 5,
|
||||||
headingRowHeight: 40,
|
headingRowHeight: 36,
|
||||||
|
dataRowMinHeight: 36,
|
||||||
|
dataRowMaxHeight: 36,
|
||||||
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
||||||
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
||||||
columns: [
|
columns: [
|
||||||
|
|
|
@ -145,7 +145,9 @@ class WoxSettingDataView extends WoxSettingBaseView {
|
||||||
return material.DataTable(
|
return material.DataTable(
|
||||||
columnSpacing: 10,
|
columnSpacing: 10,
|
||||||
horizontalMargin: 5,
|
horizontalMargin: 5,
|
||||||
headingRowHeight: 48,
|
headingRowHeight: 36,
|
||||||
|
dataRowMinHeight: 36,
|
||||||
|
dataRowMaxHeight: 36,
|
||||||
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
headingRowColor: material.WidgetStateProperty.resolveWith((states) => fromCssColor(WoxThemeUtil.instance.currentTheme.value.actionItemActiveBackgroundColor)),
|
||||||
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
border: TableBorder.all(color: fromCssColor(WoxThemeUtil.instance.currentTheme.value.previewSplitLineColor)),
|
||||||
columns: [
|
columns: [
|
||||||
|
|
Loading…
Reference in New Issue