Adjust grid layout, optimize widget placement, and refine QR Code rendering logic
This commit is contained in:
@@ -55,19 +55,47 @@ func layout() []container.Option {
|
||||
builder.Add(
|
||||
|
||||
grid.ColWidthFixed(84,
|
||||
grid.RowHeightFixed(44,
|
||||
grid.Widget(widgets.Get["Wifi"],
|
||||
container.BorderTitle("Wifi"),
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite)),
|
||||
grid.RowHeightFixed(21,
|
||||
grid.ColWidthFixed(38,
|
||||
grid.RowHeightFixed(20,
|
||||
grid.Widget(widgets.Get["Wifi"],
|
||||
container.BorderTitle("Wifi"),
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
container.PaddingLeft(1),
|
||||
container.PaddingTop(1),
|
||||
),
|
||||
),
|
||||
),
|
||||
grid.ColWidthFixed(20,
|
||||
grid.Widget(widgets.Get["NetworkDevices"],
|
||||
container.BorderTitle("Network Devices"),
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
container.PaddingLeft(1),
|
||||
container.PaddingTop(1),
|
||||
),
|
||||
),
|
||||
),
|
||||
grid.RowHeightFixed(46,
|
||||
grid.Widget(widgets.Get["NetworkDevices"],
|
||||
container.BorderTitle("Network Devices"),
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
container.PaddingLeft(1),
|
||||
container.PaddingTop(1),
|
||||
|
||||
grid.RowHeightFixed(25,
|
||||
grid.RowHeightFixed(23,
|
||||
grid.Widget(widgets.Get["HTTPProber"],
|
||||
container.BorderTitle("Website Status"),
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
container.PaddingLeft(1),
|
||||
container.PaddingTop(1),
|
||||
),
|
||||
),
|
||||
grid.RowHeightFixed(40,
|
||||
grid.Widget(widgets.Get["Docker"],
|
||||
container.BorderTitle("Docker"),
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
container.PaddingLeft(1),
|
||||
container.PaddingTop(1),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -83,7 +111,7 @@ func layout() []container.Option {
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
),
|
||||
),
|
||||
grid.RowHeightFixed(12,
|
||||
grid.RowHeightFixed(13,
|
||||
grid.Widget(widgets.Get["PiHole"],
|
||||
container.BorderTitle("pi-hole"),
|
||||
container.Border(linestyle.Light),
|
||||
@@ -102,7 +130,7 @@ func layout() []container.Option {
|
||||
),
|
||||
|
||||
grid.ColWidthFixed(26,
|
||||
grid.RowHeightFixed(20,
|
||||
grid.RowHeightFixed(21,
|
||||
grid.Widget(widgets.Get["Calendar"],
|
||||
container.BorderTitle("Calendar"),
|
||||
container.Border(linestyle.Light),
|
||||
@@ -120,7 +148,7 @@ func layout() []container.Option {
|
||||
),
|
||||
|
||||
grid.ColWidthFixed(25,
|
||||
grid.RowHeightFixed(20,
|
||||
grid.RowHeightFixed(21,
|
||||
grid.Widget(widgets.Get["CalendarEvents"],
|
||||
container.BorderTitle("Events"),
|
||||
container.Border(linestyle.Light),
|
||||
@@ -168,7 +196,7 @@ func layout() []container.Option {
|
||||
),
|
||||
|
||||
grid.ColWidthPerc(35,
|
||||
grid.RowHeightFixed(20,
|
||||
grid.RowHeightFixed(21,
|
||||
grid.Widget(widgets.Get["Zukitchi"],
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
@@ -176,22 +204,10 @@ func layout() []container.Option {
|
||||
container.PaddingLeft(1),
|
||||
),
|
||||
),
|
||||
grid.RowHeightFixed(24,
|
||||
grid.Widget(widgets.Get["HTTPProber"],
|
||||
container.BorderTitle("Website Status"),
|
||||
grid.RowHeightFixed(85,
|
||||
grid.Widget(widgets.Get["empty"],
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
container.PaddingLeft(1),
|
||||
container.PaddingTop(1),
|
||||
),
|
||||
),
|
||||
grid.RowHeightFixed(40,
|
||||
grid.Widget(widgets.Get["Docker"],
|
||||
container.BorderTitle("Docker"),
|
||||
container.Border(linestyle.Light),
|
||||
container.BorderColor(cell.ColorWhite),
|
||||
container.PaddingLeft(1),
|
||||
container.PaddingTop(1),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user