chore: improve floating toolbar

This commit is contained in:
hstyi
2025-02-24 18:35:27 +08:00
committed by hstyi
parent 562c1f98fe
commit d388bcfc92
4 changed files with 4 additions and 1 deletions

View File

@@ -59,7 +59,6 @@ class FloatingToolbarPanel : FlatToolBar(), Disposable {
init {
border = FlatRoundBorder()
isOpaque = false
isFocusable = false
isFloatable = false
isVisible = false
@@ -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 {

View File

@@ -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

View File

@@ -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

View File

@@ -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=跳過