|
592 | 592 | </member>
|
593 | 593 | <member name="extend_to_title" type="bool" setter="set_flag" getter="get_flag" default="false">
|
594 | 594 | If [code]true[/code], the [Window] contents is expanded to the full size of the window, window title bar is transparent.
|
595 |
| - [b]Note:[/b] This property is implemented only on macOS. |
| 595 | + [b]Note:[/b] This property is implemented on macOS, Linux, and Windows. |
596 | 596 | [b]Note:[/b] This property only works with native windows.
|
597 | 597 | </member>
|
598 | 598 | <member name="force_native" type="bool" setter="set_force_native" getter="get_force_native" default="false">
|
|
835 | 835 | </constant>
|
836 | 836 | <constant name="FLAG_EXTEND_TO_TITLE" value="6" enum="Flags">
|
837 | 837 | Window content is expanded to the full size of the window. Unlike borderless window, the frame is left intact and can be used to resize the window, title bar is transparent, but have minimize/maximize/close buttons. Set with [member extend_to_title].
|
838 |
| - [b]Note:[/b] This flag is implemented only on macOS. |
| 838 | + [b]Note:[/b] This flag is implemented on macOS, Linux, and Windows. |
839 | 839 | [b]Note:[/b] This flag has no effect in embedded windows.
|
| 840 | + [b]Note:[/b] On Linux and Windows, the decoration buttons (Minimize, Maximize and Close) are rendered by Godot and use the Window theme. |
840 | 841 | </constant>
|
841 | 842 | <constant name="FLAG_MOUSE_PASSTHROUGH" value="7" enum="Flags">
|
842 | 843 | All mouse events are passed to the underlying window of the same application.
|
|
907 | 908 | </constant>
|
908 | 909 | </constants>
|
909 | 910 | <theme_items>
|
| 911 | + <theme_item name="decoration_button_hover_modulate" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)"> |
| 912 | + Window decoration buttons modulation color, when the buttons are hovered, [member extend_to_title] is true and the buttons are rendered by Godot. |
| 913 | + </theme_item> |
| 914 | + <theme_item name="decoration_button_normal_modulate" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)"> |
| 915 | + Window decoration buttons modulation color, when [member extend_to_title] is true and the buttons are rendered by Godot. |
| 916 | + </theme_item> |
| 917 | + <theme_item name="decoration_button_pressed_modulate" data_type="color" type="Color" default="Color(1, 1, 1, 1)"> |
| 918 | + Window decoration buttons modulation color, when the buttons are pressed, [member extend_to_title] is true and the buttons are rendered by Godot. |
| 919 | + </theme_item> |
910 | 920 | <theme_item name="title_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
|
911 | 921 | The color of the title's text.
|
912 | 922 | </theme_item>
|
|
916 | 926 | <theme_item name="close_h_offset" data_type="constant" type="int" default="18">
|
917 | 927 | Horizontal position offset of the close button.
|
918 | 928 | </theme_item>
|
919 |
| - <theme_item name="close_v_offset" data_type="constant" type="int" default="24"> |
| 929 | + <theme_item name="close_v_offset" data_type="constant" type="int" default="20"> |
920 | 930 | Vertical position offset of the close button.
|
921 | 931 | </theme_item>
|
| 932 | + <theme_item name="maximize_h_offset" data_type="constant" type="int" default="36"> |
| 933 | + Horizontal position offset of the maximize/restore decoration button, when [member extend_to_title] is true and the button is rendered by Godot. |
| 934 | + </theme_item> |
| 935 | + <theme_item name="maximize_v_offset" data_type="constant" type="int" default="20"> |
| 936 | + Vertical position offset of the maximize/restore decoration button, when [member extend_to_title] is true and the button is rendered by Godot. |
| 937 | + </theme_item> |
| 938 | + <theme_item name="minimize_h_offset" data_type="constant" type="int" default="54"> |
| 939 | + Horizontal position offset of the minimize decoration button, when [member extend_to_title] is true and the button is rendered by Godot. |
| 940 | + </theme_item> |
| 941 | + <theme_item name="minimize_v_offset" data_type="constant" type="int" default="20"> |
| 942 | + Vertical position offset of the minimize decoration button, when [member extend_to_title] is true and the button is rendered by Godot. |
| 943 | + </theme_item> |
922 | 944 | <theme_item name="resize_margin" data_type="constant" type="int" default="4">
|
923 | 945 | Defines the outside margin at which the window border can be grabbed with mouse and resized.
|
924 | 946 | </theme_item>
|
|
940 | 962 | <theme_item name="close_pressed" data_type="icon" type="Texture2D">
|
941 | 963 | The icon for the close button when it's being pressed.
|
942 | 964 | </theme_item>
|
| 965 | + <theme_item name="maximize" data_type="icon" type="Texture2D"> |
| 966 | + The icon for the maximize decoration button, when [member extend_to_title] is true and the button is rendered by Godot. |
| 967 | + </theme_item> |
| 968 | + <theme_item name="maximize_disabled" data_type="icon" type="Texture2D"> |
| 969 | + The icon for the maximize decoration button when disabled (window not resizable), [member extend_to_title] is true and the button is rendered by Godot. |
| 970 | + </theme_item> |
| 971 | + <theme_item name="maximize_pressed" data_type="icon" type="Texture2D"> |
| 972 | + The icon for the maximize decoration button when it's being pressed, [member extend_to_title] is true and the button is rendered by Godot. |
| 973 | + </theme_item> |
| 974 | + <theme_item name="minimize" data_type="icon" type="Texture2D"> |
| 975 | + The icon for the minimize decoration button, when [member extend_to_title] is true and the button is rendered by Godot. |
| 976 | + </theme_item> |
| 977 | + <theme_item name="minimize_pressed" data_type="icon" type="Texture2D"> |
| 978 | + The icon for the minimize decoration button when it's being pressed, [member extend_to_title] is true and the button is rendered by Godot. |
| 979 | + </theme_item> |
| 980 | + <theme_item name="restore" data_type="icon" type="Texture2D"> |
| 981 | + The icon for the restore decoration button, when [member extend_to_title] is true and the button is rendered by Godot. |
| 982 | + </theme_item> |
| 983 | + <theme_item name="restore_pressed" data_type="icon" type="Texture2D"> |
| 984 | + The icon for the restore decoration button when it's being pressed, [member extend_to_title] is true and the button is rendered by Godot. |
| 985 | + </theme_item> |
| 986 | + <theme_item name="decoration_button_hover" data_type="style" type="StyleBox"> |
| 987 | + The background style used of the window decoration buttons when the mouse pointer is hovering them, [member extend_to_title] is true and the button is rendered by Godot. |
| 988 | + </theme_item> |
| 989 | + <theme_item name="decoration_button_normal" data_type="style" type="StyleBox"> |
| 990 | + The background style used of the window decoration buttons when [member extend_to_title] is true and the button is rendered by Godot. |
| 991 | + </theme_item> |
| 992 | + <theme_item name="decoration_button_pressed" data_type="style" type="StyleBox"> |
| 993 | + The background style used of the window decoration buttons when they are being pressed, [member extend_to_title] is true and the button is rendered by Godot. |
| 994 | + </theme_item> |
943 | 995 | <theme_item name="embedded_border" data_type="style" type="StyleBox">
|
944 | 996 | The background style used when the [Window] is embedded. Note that this is drawn only under the window's content, excluding the title. For proper borders and title bar style, you can use [code]expand_margin_*[/code] properties of [StyleBoxFlat].
|
945 | 997 | [b]Note:[/b] The content background will not be visible unless [member transparent] is enabled.
|
|
0 commit comments