one-dark yutent MIT May 2022 窗口主题 <title version=">= 3.1" x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))" y="(0 `max` ((height - title_height) /2))" ellipsize_width="width" color="C_title_focused" /> </draw_ops> <draw_ops name="title_unfocused"> <title version="< 3.1" x="(0 `max` ((width - title_width) / 2))" y="(0 `max` ((height - title_height) /2))" color="C_title_unfocused" /> <title version=">= 3.1" x="(0 `max` ((frame_x_center - title_width / 2) `min` (width - title_width)))" y="(0 `max` ((height - title_height) /2))" ellipsize_width="width" color="C_title_unfocused" /> </draw_ops> <!-- menu icon --> <draw_ops name="menu_focused"> <image filename="menu-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="menu_focused_pressed"> <image filename="button-bg.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="menu-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="menu_focused_prelight"> <image filename="button-bg.svg" colorize="C_button_bg_hover" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="menu-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="menu_unfocused"> <image filename="menu-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <!-- 关闭图标 icon --> <draw_ops name="close_focused"> <image filename="mac-close.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="close_focused_pressed"> <image filename="mac-close_a.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="close_focused_prelight"> <image filename="mac-close_a.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="close_unfocused"> <image filename="button-bg.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <!--最大化图标--> <draw_ops name="maximize_focused"> <image filename="mac-max.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="maximize_focused_pressed"> <image filename="mac-max_a.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="maximize_focused_prelight"> <image filename="mac-max_a.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="maximize_unfocused"> <image filename="button-bg.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <!--已最大化图标--> <draw_ops name="unmaximize_focused"> <image filename="mac-max.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unmaximize_focused_pressed"> <image filename="restore-icon.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unmaximize_focused_prelight"> <image filename="restore-icon.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unmaximize_unfocused"> <image filename="button-bg.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <!--最小化图标--> <draw_ops name="minimize_focused"> <image filename="mac-min.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="minimize_focused_pressed"> <image filename="mac-min_a.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="minimize_focused_prelight"> <image filename="mac-min_a.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="minimize_unfocused"> <image filename="button-bg.svg" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <!-- shade icon --> <draw_ops name="shade_focused"> <image filename="shade-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="shade_focused_pressed"> <image filename="button-bg.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="shade-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="shade_focused_prelight"> <image filename="button-bg.svg" colorize="C_button_bg_hover" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="shade-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="shade_unfocused"> <image filename="shade-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <!-- unshade icon --> <draw_ops name="unshade_focused"> <image filename="unshade-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unshade_focused_pressed"> <image filename="button-bg.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="unshade-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unshade_focused_prelight"> <image filename="button-bg.svg" colorize="C_button_bg_hover" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="unshade-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unshade_unfocused"> <image filename="unshade-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <!-- stick icon --> <draw_ops name="stick_focused"> <image filename="stick-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="stick_focused_pressed"> <image filename="button-bg.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="stick-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="stick_focused_prelight"> <image filename="button-bg.svg" colorize="C_button_bg_hover" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="stick-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="stick_unfocused"> <image filename="stick-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <!-- unstick icon --> <draw_ops name="unstick_focused"> <image filename="unstick-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unstick_focused_pressed"> <image filename="button-bg.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="unstick-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unstick_focused_prelight"> <image filename="button-bg.svg" colorize="C_button_bg_hover" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> <image filename="unstick-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="unstick_unfocused"> <image filename="unstick-icon.svg" colorize="C_icon_color" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/> </draw_ops> <draw_ops name="blank"> <!-- nothing --> </draw_ops> <!-- ::: FRAME STYLES ::: --> <frame_style name="normal_focused" geometry="normal"> <piece position="entire_background" draw_ops="entire_background_focused" /> <piece position="titlebar" draw_ops="rounded_titlebar_focused"/> <piece position="title" draw_ops="title_focused" /> <piece position="overlay" draw_ops="rounded_border_focused" /> <button function="close" state="normal" draw_ops="close_focused"/> <button function="close" state="prelight" draw_ops="close_focused_prelight"/> <button function="close" state="pressed" draw_ops="close_focused_pressed"/> <button function="maximize" state="normal" draw_ops="maximize_focused"/> <button function="maximize" state="prelight" draw_ops="maximize_focused_prelight"/> <button function="maximize" state="pressed" draw_ops="maximize_focused_pressed"/> <button function="minimize" state="normal" draw_ops="minimize_focused"/> <button function="minimize" state="prelight" draw_ops="minimize_focused_prelight"/> <button function="minimize" state="pressed" draw_ops="minimize_focused_pressed"/> <button function="menu" state="normal" draw_ops="menu_focused"/> <button function="menu" state="prelight" draw_ops="menu_focused_prelight"/> <button function="menu" state="pressed" draw_ops="menu_focused_pressed"/> <button function="shade" state="normal" draw_ops="shade_focused"/> <button function="shade" state="prelight" draw_ops="shade_focused_prelight"/> <button function="shade" state="pressed" draw_ops="shade_focused_pressed"/> <button function="unshade" state="normal" draw_ops="unshade_focused"/> <button function="unshade" state="prelight" draw_ops="unshade_focused_prelight"/> <button function="unshade" state="pressed" draw_ops="unshade_focused_pressed"/> <button function="above" state="normal"><draw_ops></draw_ops></button> <button function="above" state="pressed"><draw_ops></draw_ops></button> <button function="unabove" state="normal"><draw_ops></draw_ops></button> <button function="unabove" state="pressed"><draw_ops></draw_ops></button> <button function="stick" state="normal" draw_ops="stick_focused"/> <button function="stick" state="prelight" draw_ops="stick_focused_prelight"/> <button function="stick" state="pressed" draw_ops="stick_focused_pressed"/> <button function="unstick" state="normal" draw_ops="unstick_focused"/> <button function="unstick" state="prelight" draw_ops="unstick_focused_prelight"/> <button function="unstick" state="pressed" draw_ops="unstick_focused_pressed"/> </frame_style> <frame_style name="normal_unfocused" geometry="normal" parent="normal_focused"> <piece position="entire_background" draw_ops="entire_background_unfocused" /> <piece position="titlebar" draw_ops="titlebar_fill_unfocused" /> <piece position="title" draw_ops="title_unfocused" /> <piece position="overlay" draw_ops="rounded_border_unfocused" /> <button function="close" state="normal" draw_ops="close_unfocused"/> <button function="maximize" state="normal" draw_ops="maximize_unfocused"/> <button function="minimize" state="normal" draw_ops="minimize_unfocused"/> <button function="menu" state="normal" draw_ops="menu_unfocused"/> <button function="shade" state="normal" draw_ops="shade_unfocused"/> <button function="unshade" state="normal" draw_ops="unshade_unfocused"/> <button function="stick" state="normal" draw_ops="stick_unfocused"/> <button function="unstick" state="normal" draw_ops="unstick_unfocused"/> </frame_style> <frame_style name="maximized_focused" geometry="maximized" parent="normal_focused"> <piece position="entire_background" draw_ops="entire_background_focused" /> <piece position="titlebar" draw_ops="titlebar_fill_focused" /> <piece position="title" draw_ops="title_focused" /> <piece position="overlay"><draw_ops></draw_ops></piece> <button function="maximize" state="normal" draw_ops="unmaximize_focused" /> <button function="maximize" state="pressed" draw_ops="unmaximize_focused_pressed" /> <button function="maximize" state="prelight" draw_ops="unmaximize_focused_prelight" /> </frame_style> <frame_style name="maximized_unfocused" geometry="maximized" parent="normal_unfocused"> <piece position="entire_background" draw_ops="entire_background_unfocused" /> <piece position="titlebar" draw_ops="titlebar_fill_unfocused" /> <piece position="title" draw_ops="title_unfocused" /> <piece position="overlay"><draw_ops></draw_ops></piece> <button function="maximize" state="normal" draw_ops="unmaximize_unfocused"/> </frame_style> <frame_style name="tiled_left_focused" geometry="tiled_left" parent="maximized_focused"> <piece position="overlay" draw_ops="border_tiled_left_focused"/> <button function="maximize" state="normal" draw_ops="maximize_focused"/> <button function="maximize" state="prelight" draw_ops="maximize_focused_prelight"/> <button function="maximize" state="pressed" draw_ops="maximize_focused_pressed"/> </frame_style > <frame_style name="tiled_left_unfocused" geometry="tiled_left" parent="maximized_unfocused"> <piece position="overlay" draw_ops="border_tiled_left_unfocused"/> <button function="maximize" state="normal" draw_ops="maximize_unfocused"/> <button function="maximize" state="prelight" draw_ops="maximize_focused_prelight"/> <button function="maximize" state="pressed" draw_ops="maximize_focused_pressed"/> </frame_style > <frame_style name="tiled_right_focused" geometry="tiled_right" parent="maximized_focused"> <piece position="overlay" draw_ops="border_tiled_right_focused"/> <button function="maximize" state="normal" draw_ops="maximize_focused"/> <button function="maximize" state="prelight" draw_ops="maximize_focused_prelight"/> <button function="maximize" state="pressed" draw_ops="maximize_focused_pressed"/> </frame_style > <frame_style name="tiled_right_unfocused" geometry="tiled_right" parent="maximized_unfocused"> <piece position="overlay" draw_ops="border_tiled_right_unfocused"/> <button function="maximize" state="normal" draw_ops="maximize_unfocused"/> <button function="maximize" state="prelight" draw_ops="maximize_focused_prelight"/> <button function="maximize" state="pressed" draw_ops="maximize_focused_pressed"/> </frame_style > <frame_style name="utility_focused" geometry="utility" parent="normal_focused"> </frame_style> <frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused"> </frame_style> <frame_style name="border" geometry="border" parent="normal_focused"> <piece position="title" draw_ops="blank"/> </frame_style> <frame_style name="attached_unfocused" geometry="attached"> <piece position="entire_background" draw_ops="entire_background_unfocused" /> <piece position="titlebar" draw_ops="titlebar_fill_unfocused" /> <piece position="title" draw_ops="title_unfocused" /> <piece position="overlay" draw_ops="rounded_border_unfocused" /> <button function="close" state="normal"><draw_ops></draw_ops></button> <button function="close" state="pressed"><draw_ops></draw_ops></button> <button function="maximize" state="normal"><draw_ops></draw_ops></button> <button function="maximize" state="pressed"><draw_ops></draw_ops></button> <button function="minimize" state="normal"><draw_ops></draw_ops></button> <button function="minimize" state="pressed"><draw_ops></draw_ops></button> <button function="menu" state="normal"><draw_ops></draw_ops></button> <button function="menu" state="pressed"><draw_ops></draw_ops></button> <button function="shade" state="normal"><draw_ops></draw_ops></button> <button function="shade" state="pressed"><draw_ops></draw_ops></button> <button function="unshade" state="normal"><draw_ops></draw_ops></button> <button function="unshade" state="pressed"><draw_ops></draw_ops></button> <button function="above" state="normal"><draw_ops></draw_ops></button> <button function="above" state="pressed"><draw_ops></draw_ops></button> <button function="unabove" state="normal"><draw_ops></draw_ops></button> <button function="unabove" state="pressed"><draw_ops></draw_ops></button> <button function="stick" state="normal"><draw_ops></draw_ops></button> <button function="stick" state="pressed"><draw_ops></draw_ops></button> <button function="unstick" state="normal"><draw_ops></draw_ops></button> <button function="unstick" state="pressed"><draw_ops></draw_ops></button> </frame_style> <frame_style name="attached_focused" geometry="attached"> <piece position="entire_background" draw_ops="entire_background_focused" /> <piece position="titlebar" draw_ops="titlebar_fill_focused" /> <piece position="title" draw_ops="title_focused" /> <piece position="overlay" draw_ops="rounded_border_focused" /> <button function="close" state="normal"><draw_ops></draw_ops></button> <button function="close" state="pressed"><draw_ops></draw_ops></button> <button function="maximize" state="normal"><draw_ops></draw_ops></button> <button function="maximize" state="pressed"><draw_ops></draw_ops></button> <button function="minimize" state="normal"><draw_ops></draw_ops></button> <button function="minimize" state="pressed"><draw_ops></draw_ops></button> <button function="menu" state="normal"><draw_ops></draw_ops></button> <button function="menu" state="pressed"><draw_ops></draw_ops></button> <button function="shade" state="normal"><draw_ops></draw_ops></button> <button function="shade" state="pressed"><draw_ops></draw_ops></button> <button function="unshade" state="normal"><draw_ops></draw_ops></button> <button function="unshade" state="pressed"><draw_ops></draw_ops></button> <button function="above" state="normal"><draw_ops></draw_ops></button> <button function="above" state="pressed"><draw_ops></draw_ops></button> <button function="unabove" state="normal"><draw_ops></draw_ops></button> <button function="unabove" state="pressed"><draw_ops></draw_ops></button> <button function="stick" state="normal"><draw_ops></draw_ops></button> <button function="stick" state="pressed"><draw_ops></draw_ops></button> <button function="unstick" state="normal"><draw_ops></draw_ops></button> <button function="unstick" state="pressed"><draw_ops></draw_ops></button> </frame_style> <!-- placeholder for unimplementated styles--> <frame_style name="blank" geometry="normal"> <button function="close" state="normal"><draw_ops></draw_ops></button> <button function="close" state="pressed"><draw_ops></draw_ops></button> <button function="maximize" state="normal"><draw_ops></draw_ops></button> <button function="maximize" state="pressed"><draw_ops></draw_ops></button> <button function="minimize" state="normal"><draw_ops></draw_ops></button> <button function="minimize" state="pressed"><draw_ops></draw_ops></button> <button function="menu" state="normal"><draw_ops></draw_ops></button> <button function="menu" state="pressed"><draw_ops></draw_ops></button> <button function="shade" state="normal"><draw_ops></draw_ops></button> <button function="shade" state="pressed"><draw_ops></draw_ops></button> <button function="unshade" state="normal"><draw_ops></draw_ops></button> <button function="unshade" state="pressed"><draw_ops></draw_ops></button> <button function="above" state="normal"><draw_ops></draw_ops></button> <button function="above" state="pressed"><draw_ops></draw_ops></button> <button function="unabove" state="normal"><draw_ops></draw_ops></button> <button function="unabove" state="pressed"><draw_ops></draw_ops></button> <button function="stick" state="normal"><draw_ops></draw_ops></button> <button function="stick" state="pressed"><draw_ops></draw_ops></button> <button function="unstick" state="normal"><draw_ops></draw_ops></button> <button function="unstick" state="pressed"><draw_ops></draw_ops></button> </frame_style> <!-- :::FRAME STYLE SETS::: --> <frame_style_set name="normal"> <frame focus="yes" state="normal" resize="both" style="normal_focused"/> <frame focus="no" state="normal" resize="both" style="normal_unfocused"/> <frame focus="yes" state="maximized" style="maximized_focused"/> <frame focus="no" state="maximized" style="maximized_unfocused"/> <frame focus="yes" state="shaded" style="normal_focused"/> <frame focus="no" state="shaded" style="normal_unfocused"/> <frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/> <frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/> <frame version=">= 3.3" focus="yes" state="tiled_left" style="tiled_left_focused"/> <frame version=">= 3.3" focus="no" state="tiled_left" style="tiled_left_unfocused"/> <frame version=">= 3.3" focus="yes" state="tiled_right" style="tiled_right_focused"/> <frame version=">= 3.3" focus="no" state="tiled_right" style="tiled_right_unfocused"/> <frame version=">= 3.3" focus="yes" state="tiled_left_and_shaded" style="tiled_left_focused"/> <frame version=">= 3.3" focus="no" state="tiled_left_and_shaded" style="tiled_left_unfocused"/> <frame version=">= 3.3" focus="yes" state="tiled_right_and_shaded" style="tiled_right_focused"/> <frame version=">= 3.3" focus="no" state="tiled_right_and_shaded" style="tiled_right_unfocused"/> </frame_style_set> <frame_style_set name="utility"> <frame focus="yes" state="normal" resize="both" style="utility_focused"/> <frame focus="no" state="normal" resize="both" style="utility_unfocused"/> <frame focus="yes" state="maximized" style="blank"/> <frame focus="no" state="maximized" style="blank"/> <frame focus="yes" state="shaded" style="utility_focused"/> <frame focus="no" state="shaded" style="utility_unfocused"/> <frame focus="yes" state="maximized_and_shaded" style="blank"/> <frame focus="no" state="maximized_and_shaded" style="blank"/> </frame_style_set> <frame_style_set name="border"> <frame focus="yes" state="normal" resize="both" style="border"/> <frame focus="no" state="normal" resize="both" style="border"/> <frame focus="yes" state="maximized" style="border"/> <frame focus="no" state="maximized" style="border"/> <frame focus="yes" state="shaded" style="border"/> <frame focus="no" state="shaded" style="border"/> <frame focus="yes" state="maximized_and_shaded" style="border"/> <frame focus="no" state="maximized_and_shaded" style="border"/> </frame_style_set> <frame_style_set name="attached"> <frame focus="yes" state="normal" resize="both" style="attached_focused"/> <frame focus="no" state="normal" resize="both" style="attached_unfocused"/> <frame focus="yes" state="maximized" style="blank"/> <frame focus="no" state="maximized" style="blank"/> <frame focus="yes" state="shaded" style="blank"/> <frame focus="no" state="shaded" style="blank"/> <frame focus="yes" state="maximized_and_shaded" style="blank"/> <frame focus="no" state="maximized_and_shaded" style="blank"/> </frame_style_set> <!-- :::WINDOWS::: --> <window type="normal" style_set="normal"/> <window type="dialog" style_set="normal"/> <window type="modal_dialog" style_set="normal"/> <window type="menu" style_set="normal"/> <window type="utility" style_set="utility"/> <window type="border" style_set="border"/> <window version=">= 3.2" type="attached" style_set="attached"/> </metacity_theme>