Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve floating toolbar #312

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class FloatingToolbarPanel : FlatToolBar(), Disposable {

init {
border = FlatRoundBorder()
isOpaque = false
isFocusable = false
isFloatable = false
isVisible = false
Expand Down Expand Up @@ -195,6 +194,7 @@ class FloatingToolbarPanel : FlatToolBar(), Disposable {

private fun initCloseActionButton(): JButton {
val btn = JButton(Icons.closeSmall)
btn.toolTipText = I18n.getString("termora.floating-toolbar.close-in-current-tab")
btn.pressedIcon = Icons.closeSmallHovered
btn.rolloverIcon = Icons.closeSmallHovered
btn.addActionListener {
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ termora.visual-window.nvidia-smi=NVIDIA SMI


termora.floating-toolbar.not-supported=This action is not supported
termora.floating-toolbar.close-in-current-tab=Close in current tab


# zmodem
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/i18n/messages_zh_CN.properties
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ termora.visual-window.system-information.filesystem=文件系统
termora.visual-window.system-information.used-total=使用 / 大小

termora.floating-toolbar.not-supported=不允许此操作
termora.floating-toolbar.close-in-current-tab=在当前标签页关闭


# zmodem
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/i18n/messages_zh_TW.properties
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ termora.visual-window.system-information.filesystem=檔案系統
termora.visual-window.system-information.used-total=使用 / 大小

termora.floating-toolbar.not-supported=不允許此操作
termora.floating-toolbar.close-in-current-tab=在目前標籤頁關閉

# zmodem
termora.addons.zmodem.skip=跳過