Skip to content

Commit 06c8b5d

Browse files
committed
feat: update Git toolbar icons and adjust spacing in the menu bar
1 parent 432a375 commit 06c8b5d

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/main/java/com/laker/postman/panel/topmenu/TopMenuBar.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private void addGitToolbarIfNeeded() {
290290
if (currentWorkspace != null && currentWorkspace.getType() == WorkspaceType.GIT) {
291291
JPanel gitToolbarPanel = createGitToolbar(currentWorkspace);
292292
add(gitToolbarPanel);
293-
add(Box.createHorizontalStrut(20)); // Git 工具栏和工作区图标之间的间距
293+
add(Box.createHorizontalStrut(12)); // Git 工具栏和工作区图标之间的间距
294294
}
295295
} catch (Exception e) {
296296
log.error("Failed to create Git toolbar", e);
@@ -426,7 +426,7 @@ private JPanel createGitToolbar(Workspace workspace) {
426426
// Commit 按钮(本地提交,始终显示)
427427
JButton commitButton = createGitButton(
428428
I18nUtil.getMessage(MessageKeys.WORKSPACE_GIT_COMMIT),
429-
"icons/save.svg",
429+
"icons/git-commit.svg",
430430
e -> performGitOperation(workspace, GitOperation.COMMIT)
431431
);
432432
toolbar.add(commitButton);
@@ -436,7 +436,7 @@ private JPanel createGitToolbar(Workspace workspace) {
436436
// Pull 按钮(拉取远程更新)
437437
JButton pullButton = createGitButton(
438438
I18nUtil.getMessage(MessageKeys.WORKSPACE_GIT_PULL),
439-
"icons/download.svg",
439+
"icons/git-pull.svg",
440440
e -> performGitOperation(workspace, GitOperation.PULL)
441441
);
442442
toolbar.add(pullButton);
@@ -445,7 +445,7 @@ private JPanel createGitToolbar(Workspace workspace) {
445445
if (remoteStatus.hasUpstream) {
446446
JButton pushButton = createGitButton(
447447
I18nUtil.getMessage(MessageKeys.WORKSPACE_GIT_PUSH),
448-
"icons/upload.svg",
448+
"icons/git-push.svg",
449449
e -> performGitOperation(workspace, GitOperation.PUSH)
450450
);
451451
toolbar.add(pushButton);
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)