- T0: game/assets/theme/main_theme.tres 挂 project.godot gui/theme/custom—— 15 类型全覆盖(V/HScrollBar·ScrollContainer·H/VSlider·TooltipPanel/Label· LineEdit·SpinBox·H/VSeparator)+预盖 CheckBox/CheckButton/OptionButton/ PopupMenu 弹层;default_font 显式指现役同字体(V6 中文字形防御); 位图生成脚本 tools/gen_theme_icons.py(9 张纯色/几何小位图→assets/art/ui/gen/, 按 .gitignore 政策本地生成不入库);色值溯源表 game/assets/theme/README.md - T1: ui_kit.gd 删 tooltip_theme()/_tip_theme 与 styled_slider()、ui_assembler.gd 删挂载行(旧实现同批删除);settings_overlay 几何内联、debug_overlay 双轨消隐 - T2: 冒烟 _smoke_global_theme() 38 断言(V1 类型覆盖+Button/focus 双红线+ V2 冻结值 5.49:1+V3 预盖证词+V4 退役零残留+V6 字体防御) - 引擎事实(4.7.2 源码+默认主题链双查):CheckButton 与 CheckBox 同套 checked/unchecked 图标名;Slider 无 grabber_pressed 槽;ScrollBar 柄=StyleBox
223 lines
8.9 KiB
Plaintext
223 lines
8.9 KiB
Plaintext
[gd_resource type="Theme" format=3]
|
|
|
|
[ext_resource type="FontFile" path="res://assets/fonts/ui_font_fusion_pixel_zh_hans.ttf" id="1_font"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/button_stone.png" id="2_btn"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/button_stone_pressed.png" id="3_btnp"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/slider_grabber.png" id="4_sg"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/slider_grabber_highlight.png" id="5_sgh"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/slider_grabber_disabled.png" id="6_sgd"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/spinbox_updown.png" id="7_spu"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/option_arrow.png" id="8_oa"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/checkbox_unchecked.png" id="9_cbu"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/checkbox_checked.png" id="10_cbc"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/checkbox_unchecked_disabled.png" id="11_cbud"]
|
|
[ext_resource type="Texture2D" path="res://assets/art/ui/gen/checkbox_checked_disabled.png" id="12_cbcd"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_vscroll_track"]
|
|
content_margin_left = 4.0
|
|
content_margin_right = 4.0
|
|
bg_color = Color(0.211765, 0.168627, 0.12549, 0.35)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_vscroll_grab"]
|
|
content_margin_top = 4.0
|
|
content_margin_bottom = 4.0
|
|
bg_color = Color(0.470588, 0.431373, 0.345098, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_vscroll_grab_h"]
|
|
content_margin_top = 4.0
|
|
content_margin_bottom = 4.0
|
|
bg_color = Color(0.54902, 0.486275, 0.392157, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_vscroll_grab_p"]
|
|
content_margin_top = 4.0
|
|
content_margin_bottom = 4.0
|
|
bg_color = Color(0.333333, 0.301961, 0.254902, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_hscroll_track"]
|
|
content_margin_top = 4.0
|
|
content_margin_bottom = 4.0
|
|
bg_color = Color(0.211765, 0.168627, 0.12549, 0.35)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_hscroll_grab"]
|
|
content_margin_left = 4.0
|
|
content_margin_right = 4.0
|
|
bg_color = Color(0.470588, 0.431373, 0.345098, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_hscroll_grab_h"]
|
|
content_margin_left = 4.0
|
|
content_margin_right = 4.0
|
|
bg_color = Color(0.54902, 0.486275, 0.392157, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_hscroll_grab_p"]
|
|
content_margin_left = 4.0
|
|
content_margin_right = 4.0
|
|
bg_color = Color(0.333333, 0.301961, 0.254902, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_sc_panel"]
|
|
bg_color = Color(0, 0, 0, 0)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_hslider_track"]
|
|
content_margin_top = 6.0
|
|
content_margin_bottom = 6.0
|
|
bg_color = Color(0.721569, 0.647059, 0.509804, 1)
|
|
border_color = Color(0.470588, 0.431373, 0.345098, 1)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_hslider_fill"]
|
|
content_margin_top = 6.0
|
|
content_margin_bottom = 6.0
|
|
bg_color = Color(0.227451, 0.180392, 0.133333, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_vslider_track"]
|
|
content_margin_left = 6.0
|
|
content_margin_right = 6.0
|
|
bg_color = Color(0.721569, 0.647059, 0.509804, 1)
|
|
border_color = Color(0.470588, 0.431373, 0.345098, 1)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_vslider_fill"]
|
|
content_margin_left = 6.0
|
|
content_margin_right = 6.0
|
|
bg_color = Color(0.227451, 0.180392, 0.133333, 1)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_tooltip"]
|
|
content_margin_left = 8.0
|
|
content_margin_top = 6.0
|
|
content_margin_right = 8.0
|
|
content_margin_bottom = 6.0
|
|
bg_color = Color(0.09, 0.07, 0.05, 0.96)
|
|
border_color = Color(0.352941, 0.313725, 0.266667, 1)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_lineedit"]
|
|
content_margin_left = 6.0
|
|
content_margin_top = 3.0
|
|
content_margin_right = 6.0
|
|
content_margin_bottom = 3.0
|
|
bg_color = Color(0.913725, 0.85098, 0.721569, 1)
|
|
border_color = Color(0.470588, 0.431373, 0.345098, 1)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
corner_radius_top_left = 5
|
|
corner_radius_top_right = 5
|
|
corner_radius_bottom_right = 5
|
|
corner_radius_bottom_left = 5
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_spin_btn_h"]
|
|
bg_color = Color(0.54902, 0.486275, 0.392157, 0.6)
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_spin_btn_p"]
|
|
bg_color = Color(0.333333, 0.301961, 0.254902, 1)
|
|
|
|
[sub_resource type="StyleBoxLine" id="SBLine_hsep"]
|
|
color = Color(0.470588, 0.431373, 0.345098, 0.6)
|
|
thickness = 1
|
|
|
|
[sub_resource type="StyleBoxLine" id="SBLine_vsep"]
|
|
color = Color(0.470588, 0.431373, 0.345098, 0.6)
|
|
thickness = 1
|
|
vertical = true
|
|
|
|
[sub_resource type="StyleBoxTexture" id="SBTex_btn"]
|
|
texture = ExtResource("2_btn")
|
|
texture_margin_left = 8.0
|
|
texture_margin_top = 8.0
|
|
texture_margin_right = 8.0
|
|
texture_margin_bottom = 8.0
|
|
|
|
[sub_resource type="StyleBoxTexture" id="SBTex_btnp"]
|
|
texture = ExtResource("3_btnp")
|
|
texture_margin_left = 8.0
|
|
texture_margin_top = 8.0
|
|
texture_margin_right = 8.0
|
|
texture_margin_bottom = 8.0
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_popup_panel"]
|
|
content_margin_left = 8.0
|
|
content_margin_top = 6.0
|
|
content_margin_right = 8.0
|
|
content_margin_bottom = 6.0
|
|
bg_color = Color(0.913725, 0.85098, 0.721569, 1)
|
|
border_color = Color(0.470588, 0.431373, 0.345098, 1)
|
|
border_width_left = 1
|
|
border_width_top = 1
|
|
border_width_right = 1
|
|
border_width_bottom = 1
|
|
|
|
[sub_resource type="StyleBoxFlat" id="SBF_popup_hover"]
|
|
content_margin_left = 6.0
|
|
content_margin_top = 2.0
|
|
content_margin_right = 6.0
|
|
content_margin_bottom = 2.0
|
|
bg_color = Color(0.901961, 0.745098, 0.352941, 1)
|
|
|
|
[resource]
|
|
default_font = ExtResource("1_font")
|
|
VScrollBar/styles/scroll = SubResource("SBF_vscroll_track")
|
|
VScrollBar/styles/grabber = SubResource("SBF_vscroll_grab")
|
|
VScrollBar/styles/grabber_highlight = SubResource("SBF_vscroll_grab_h")
|
|
VScrollBar/styles/grabber_pressed = SubResource("SBF_vscroll_grab_p")
|
|
HScrollBar/styles/scroll = SubResource("SBF_hscroll_track")
|
|
HScrollBar/styles/grabber = SubResource("SBF_hscroll_grab")
|
|
HScrollBar/styles/grabber_highlight = SubResource("SBF_hscroll_grab_h")
|
|
HScrollBar/styles/grabber_pressed = SubResource("SBF_hscroll_grab_p")
|
|
ScrollContainer/styles/panel = SubResource("SBF_sc_panel")
|
|
HSlider/styles/slider = SubResource("SBF_hslider_track")
|
|
HSlider/styles/grabber_area = SubResource("SBF_hslider_fill")
|
|
HSlider/styles/grabber_area_highlight = SubResource("SBF_hslider_fill")
|
|
HSlider/icons/grabber = ExtResource("4_sg")
|
|
HSlider/icons/grabber_highlight = ExtResource("5_sgh")
|
|
HSlider/icons/grabber_disabled = ExtResource("6_sgd")
|
|
VSlider/styles/slider = SubResource("SBF_vslider_track")
|
|
VSlider/styles/grabber_area = SubResource("SBF_vslider_fill")
|
|
VSlider/styles/grabber_area_highlight = SubResource("SBF_vslider_fill")
|
|
VSlider/icons/grabber = ExtResource("4_sg")
|
|
VSlider/icons/grabber_highlight = ExtResource("5_sgh")
|
|
VSlider/icons/grabber_disabled = ExtResource("6_sgd")
|
|
TooltipPanel/styles/panel = SubResource("SBF_tooltip")
|
|
TooltipLabel/colors/font_color = Color(0.941176, 0.886275, 0.784314, 1)
|
|
TooltipLabel/font_sizes/font_size = 14
|
|
LineEdit/styles/normal = SubResource("SBF_lineedit")
|
|
LineEdit/colors/font_color = Color(0.2, 0.14902, 0.105882, 1)
|
|
LineEdit/colors/font_placeholder_color = Color(0.333333, 0.301961, 0.254902, 1)
|
|
SpinBox/icons/updown = ExtResource("7_spu")
|
|
SpinBox/styles/up_background_hovered = SubResource("SBF_spin_btn_h")
|
|
SpinBox/styles/up_background_pressed = SubResource("SBF_spin_btn_p")
|
|
SpinBox/styles/down_background_hovered = SubResource("SBF_spin_btn_h")
|
|
SpinBox/styles/down_background_pressed = SubResource("SBF_spin_btn_p")
|
|
HSeparator/styles/separator = SubResource("SBLine_hsep")
|
|
VSeparator/styles/separator = SubResource("SBLine_vsep")
|
|
CheckBox/icons/unchecked = ExtResource("9_cbu")
|
|
CheckBox/icons/checked = ExtResource("10_cbc")
|
|
CheckBox/icons/unchecked_disabled = ExtResource("11_cbud")
|
|
CheckBox/icons/checked_disabled = ExtResource("12_cbcd")
|
|
CheckButton/icons/unchecked = ExtResource("9_cbu")
|
|
CheckButton/icons/checked = ExtResource("10_cbc")
|
|
CheckButton/icons/unchecked_disabled = ExtResource("11_cbud")
|
|
CheckButton/icons/checked_disabled = ExtResource("12_cbcd")
|
|
OptionButton/styles/normal = SubResource("SBTex_btn")
|
|
OptionButton/styles/hover = SubResource("SBTex_btn")
|
|
OptionButton/styles/pressed = SubResource("SBTex_btnp")
|
|
OptionButton/styles/disabled = SubResource("SBTex_btnp")
|
|
OptionButton/colors/font_color = Color(0.2, 0.14902, 0.105882, 1)
|
|
OptionButton/colors/font_hover_color = Color(0.2, 0.14902, 0.105882, 1)
|
|
OptionButton/colors/font_pressed_color = Color(0.2, 0.14902, 0.105882, 1)
|
|
OptionButton/colors/font_disabled_color = Color(0.2, 0.14902, 0.105882, 0.45)
|
|
OptionButton/icons/arrow = ExtResource("8_oa")
|
|
PopupMenu/styles/panel = SubResource("SBF_popup_panel")
|
|
PopupMenu/styles/hover = SubResource("SBF_popup_hover")
|
|
PopupMenu/colors/font_color = Color(0.2, 0.14902, 0.105882, 1)
|
|
PopupMenu/colors/font_hover_color = Color(0.235294, 0.172549, 0.078431, 1)
|
|
PopupMenu/font_sizes/font_size = 16
|