Skip to content

Commit

Permalink
chore: improve floating toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
hstyi committed Feb 24, 2025
1 parent 562c1f9 commit d388bcf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
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=跳過

0 comments on commit d388bcf

Please sign in to comment.