右側面板卡的真天地:內距 4px→12/10,行距 0→6
使用者指認的卡片:右側面板(進行中、檔案、記憶、頁面、聲音設定)的 panel_card 內距只有 4px、行距 0——所有行贴著框和彼此,全 app 唯一 「沒有天地」的卡片。內距 12/10、行距 6,跟聊天卡片的節奏一致。 已驗證: cargo test 721 全綠(含 layout_audit 全螢幕:右側面板兩場景)。 未驗證: 真機視窗外觀(使用者自觀)。
This commit is contained in:
parent
4a4ef03c46
commit
d89fc50ed5
|
|
@ -498,11 +498,12 @@ pub(super) fn panel_title(ui: &mut egui::Ui, title: &str, p: Palette) {
|
||||||
ui.add_space(8.0);
|
ui.add_space(8.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The original's card: radius 12, a hairline border, 4 px inside.
|
/// The original's card: radius 12, a hairline border — with real 天地 inside (a 4 px inset
|
||||||
|
/// made every row hug the frame; the panel's cards read as a stack of labels, not cards).
|
||||||
pub(super) fn panel_card(ui: &mut egui::Ui, p: Palette, body: impl FnOnce(&mut egui::Ui)) {
|
pub(super) fn panel_card(ui: &mut egui::Ui, p: Palette, body: impl FnOnce(&mut egui::Ui)) {
|
||||||
Frame::new().fill(p.elevated).stroke(Stroke::new(1.0, p.border)).corner_radius(R_M).inner_margin(Margin::same(4)).show(ui, |ui| {
|
Frame::new().fill(p.elevated).stroke(Stroke::new(1.0, p.border)).corner_radius(R_M).inner_margin(Margin::symmetric(12, 10)).show(ui, |ui| {
|
||||||
ui.set_width(ui.available_width());
|
ui.set_width(ui.available_width());
|
||||||
ui.spacing_mut().item_spacing.y = 0.0;
|
ui.spacing_mut().item_spacing.y = 6.0;
|
||||||
body(ui);
|
body(ui);
|
||||||
});
|
});
|
||||||
ui.add_space(22.0);
|
ui.add_space(22.0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue