mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
CommandRow: * icon, SRC: label, remove separator, clean margins
- Replace diamond with * for pixel-perfect fold alignment - Add SRC: label prefix to command row source field - Remove vertical bar separator from command row - Clear footer margin text (no more ---) - Remove + prefix from offset margin (0x instead of +0x) - Remove codicon font infrastructure (use editor font chars)
This commit is contained in:
@@ -39,8 +39,8 @@ private slots:
|
||||
}
|
||||
|
||||
void testFmtOffsetMargin_primary() {
|
||||
QCOMPARE(fmt::fmtOffsetMargin(0x10, false), QString("+0x10"));
|
||||
QCOMPARE(fmt::fmtOffsetMargin(0, false), QString("+0x0"));
|
||||
QCOMPARE(fmt::fmtOffsetMargin(0x10, false), QString("0x10"));
|
||||
QCOMPARE(fmt::fmtOffsetMargin(0, false), QString("0x0"));
|
||||
}
|
||||
|
||||
void testFmtOffsetMargin_continuation() {
|
||||
@@ -51,10 +51,17 @@ private slots:
|
||||
Node n;
|
||||
n.kind = NodeKind::Struct;
|
||||
n.name = "Test";
|
||||
QString s = fmt::fmtStructHeader(n, 0);
|
||||
// Expanded header should contain opening brace
|
||||
QString s = fmt::fmtStructHeader(n, 0, /*collapsed=*/false);
|
||||
QVERIFY(s.contains("struct"));
|
||||
QVERIFY(s.contains("Test"));
|
||||
QVERIFY(s.contains("{"));
|
||||
|
||||
// Collapsed header should not contain opening brace
|
||||
QString collapsed = fmt::fmtStructHeader(n, 0, /*collapsed=*/true);
|
||||
QVERIFY(collapsed.contains("struct"));
|
||||
QVERIFY(collapsed.contains("Test"));
|
||||
QVERIFY(!collapsed.contains("{"));
|
||||
}
|
||||
|
||||
void testFmtStructFooter() {
|
||||
|
||||
Reference in New Issue
Block a user