diff --git a/doc/gui_w32.jax b/doc/gui_w32.jax index 1d0ab98e2..abca751de 100644 --- a/doc/gui_w32.jax +++ b/doc/gui_w32.jax @@ -1,4 +1,4 @@ -*gui_w32.txt* For Vim バージョン 9.1. Last change: 2025 Aug 06 +*gui_w32.txt* For Vim バージョン 9.1. Last change: 2025 Oct 11 VIMリファレンスマニュアル by Bram Moolenaar @@ -487,4 +487,20 @@ ToUnicode() Win API 呼び出しに切り替えられた。このアプローチ set VIM_KEYCODE_TRANS_STRATEGY=experimental gvim.exe < + +タイトルバー *gui-w32-title-bar* + +Windows 11 以降では、|'go-C'| オプションを有効にすることで、gVim のタイトルバー +(キャプションバーとも呼ばれる) をカスタマイズできる。 + +有効にすると、外観は次の 2 つのハイライトグループによって制御される: +1. |hl-TitleBar| -- アクティブウィンドウのタイトルバーの色を設定する。 +2. |hl-TitleBarNC| -- 非アクティブウィンドウのタイトルバーの色を設定する。 + +システムのデフォルトのタイトルバーの色を使用するには、ハイライトグループを +`NONE` に設定する: > + + hi TitleBar guibg=NONE guifg=NONE + hi TitleBarNC guibg=NONE guifg=NONE +< vim:tw=78:sw=4:ts=8:noet:ft=help:norl: diff --git a/en/gui_w32.txt b/en/gui_w32.txt index 6c0af5079..1c33ff696 100644 --- a/en/gui_w32.txt +++ b/en/gui_w32.txt @@ -1,4 +1,4 @@ -*gui_w32.txt* For Vim version 9.1. Last change: 2025 Aug 06 +*gui_w32.txt* For Vim version 9.1. Last change: 2025 Oct 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -235,7 +235,7 @@ The "* register reflects the contents of the clipboard. |quotestar| When the "unnamed" string is included in the 'clipboard' option, the unnamed register is the same. Thus you can yank to and paste from the clipboard -without prepending "* to commands. If this doesn't work use the "unnamedplus" +without prepending "* to commands. If this doesn't work use the "unnamedplus" string in the 'clipboard' option. The 'a' flag in 'guioptions' is not included by default. This means that text @@ -458,17 +458,17 @@ Keycode translation strategy *w32-experimental-keycode-trans-strategy* In Patch v8.2.4807 W32 GVIM was changed over to experimental keycode translation method with the aim to be able to use more keyboard shortcuts and -especially supporting non-standard keyboard layouts. In order to implement +especially supporting non-standard keyboard layouts. In order to implement this support Win API TranslateMessage() call was dropped, and instead the -recognition of keycode was changed over to ToUnicode() Win API call. This +recognition of keycode was changed over to ToUnicode() Win API call. This approach uncovered numerous corner cases, which are apparently covered by TranslateMessage() implementation, each of it is necessary to be dealt with on -an individual basis. Therefore the decision was taken to declare this +an individual basis. Therefore the decision was taken to declare this functionality experimental for the time being and to recover "classic" keycode translation method as default again. Discussion about use of "experimental" keycode translation method will -probably last some time yet. In the meantime, if you are impacted by this +probably last some time yet. In the meantime, if you are impacted by this change over back to "classic" keycode translation method in W32 GVIM, you can enable "experimental" translation method again in your vimrc using following snippet: @@ -488,4 +488,20 @@ VIM_KEYCODE_TRANS_STRATEGY can be set to the desired value ("experimental" or set VIM_KEYCODE_TRANS_STRATEGY=experimental gvim.exe < + +Title Bar *gui-w32-title-bar* + +Starting with Windows 11, you can customize the gVim title bar (also known as +the caption bar) by enabling the |'go-C'| option. + +Once enabled, the appearance is controlled by two highlighting groups: +1. |hl-TitleBar| -- Sets the color of the title bar for the active window. +2. |hl-TitleBarNC| -- Sets the color of the title bar for inactive windows. + +To use the system's default title bar colors, set highlighting groups to +`NONE`: > + + hi TitleBar guibg=NONE guifg=NONE + hi TitleBarNC guibg=NONE guifg=NONE +< vim:tw=78:sw=4:ts=8:noet:ft=help:norl: