Skip to content

Commit 25f4b9e

Browse files
committed
fix(panels): all panels title should be unified
1 parent ef53390 commit 25f4b9e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

example/panel.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ local function render()
4444
-- The panel surface already insets its content (Style::panelPadding), so this
4545
-- adds gaps between rows, not its own outer padding.
4646
panel.render(ui.column({ flexGrow = 1, gap = 16 }, {
47-
-- Header: primary title on the left, close button pinned to the top right —
47+
-- Header: title on the left, close button pinned to the top right —
4848
-- matching the built-in panels (no divider rule).
4949
ui.row({ align = "center", justify = "space_between", gap = 8 }, {
50-
ui.label({ text = "Example Panel", fontSize = 16, fontWeight = "bold", color = "primary", flexGrow = 1 }),
50+
ui.label({ text = "Example Panel", fontSize = 16, fontWeight = "bold", color = "on_surface", flexGrow = 1 }),
5151
ui.button({ glyph = "close", onClick = "onCloseClicked" }),
5252
}),
5353

mpvpaper/panel.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ render = function()
316316

317317
panel.render(ui.column({ flexGrow = 1, gap = 12, align = "stretch" }, {
318318
ui.row({ align = "center", justify = "space_between", gap = 8 }, {
319-
ui.label({ text = tr("title"), fontSize = 16, fontWeight = "bold", color = "primary", flexGrow = 1 }),
319+
ui.label({ text = tr("title"), fontSize = 16, fontWeight = "bold", color = "on_surface", flexGrow = 1 }),
320320
ui.button({ glyph = "close", onClick = "onClose" }),
321321
}),
322322

wallhaven/panel.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ render = function()
481481
local pageLabel = if applying then tr("applying") else `Page {page} / {totalPages}`
482482
panel.render(ui.column({ flexGrow = 1, gap = 12, align = "stretch" }, {
483483
ui.row({ align = "center", justify = "space_between", gap = 8 }, {
484-
ui.label({ text = tr("title"), fontSize = 16, fontWeight = "bold", color = "primary", flexGrow = 1 }),
484+
ui.label({ text = tr("title"), fontSize = 16, fontWeight = "bold", color = "on_surface", flexGrow = 1 }),
485485
ui.button({ glyph = "close", onClick = "onCloseClicked" }),
486486
}),
487487

0 commit comments

Comments
 (0)