Skip to content

Commit 09754aa

Browse files
Ralph Kuepperclaude
andcommitted
Linux: orange gradient toolbar with compact height
On GTK4 the white toolbar background blends into the beige window bg. Use the orange gradient, white text, and constrained 44px height for a distinct header that matches the connection screen style. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5a8e505 commit 09754aa

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/app.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,8 +1386,18 @@ if (mobile) {
13861386
toolbarRow = HStack(10, [browserLogo, browserTitle, Spacer(), connLabel, disconnectBtn]);
13871387
}
13881388
const toolbarBox = VStack(0, [toolbarRow]);
1389-
setPadding(toolbarBox, isIOS ? 52 : 12, mobile ? 16 : 24, 12, mobile ? 16 : 24); // iOS/iPad top safe area
1390-
widgetSetBackgroundColor(toolbarBox, sfR, sfG, sfB, 1.0);
1389+
setPadding(toolbarBox, isIOS ? 52 : (__platform__ === 4 ? 6 : 12), mobile ? 16 : 24, __platform__ === 4 ? 6 : 12, mobile ? 16 : 24); // iOS/iPad top safe area; Linux: tighter padding
1390+
if (__platform__ === 4) {
1391+
// Linux/GTK4: use orange gradient so the toolbar stands out against the beige window background
1392+
widgetSetBackgroundGradient(toolbarBox, moR, moG, moB, 1.0, myR, myG, myB, 1.0, 1);
1393+
textSetColor(browserTitle, 1.0, 1.0, 1.0, 1.0);
1394+
textSetColor(connLabel, 1.0, 1.0, 1.0, 0.9);
1395+
buttonSetTextColor(disconnectBtn, 1.0, 1.0, 1.0, 0.9);
1396+
widgetSetHeight(toolbarBox, 44);
1397+
browserLogo.setSize(28, 28);
1398+
} else {
1399+
widgetSetBackgroundColor(toolbarBox, sfR, sfG, sfB, 1.0);
1400+
}
13911401

13921402
// Query card
13931403
const queryCard = VStack(8, []);

0 commit comments

Comments
 (0)