<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>主题系统 on PlumePHP</title><link>https://plumephp.com/tags/%E4%B8%BB%E9%A2%98%E7%B3%BB%E7%BB%9F/</link><description>Recent content in 主题系统 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 17 Nov 2025 08:56:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E4%B8%BB%E9%A2%98%E7%B3%BB%E7%BB%9F/index.xml" rel="self" type="application/rss+xml"/><item><title>Godot 运行时主题切换：皮肤、深色模式与 StyleBox 的坑</title><link>https://plumephp.com/godot-runtime-theme-switching-2025/</link><pubDate>Mon, 17 Nov 2025 08:56:00 +0800</pubDate><guid>https://plumephp.com/godot-runtime-theme-switching-2025/</guid><description>&lt;h2 id="背景运行时主题切换为什么会变成真实问题"&gt;背景：运行时主题切换为什么会变成真实问题&lt;/h2&gt;
&lt;p&gt;一个活动版本要求大厅切成冬季皮肤，设置页还要支持深色模式。美术给了按钮、面板、标签、进度条的一整套资源，UI 同学把 Theme 一换，编辑器里看起来没问题。运行时却出现了几个尴尬问题：部分弹窗仍然是旧颜色，某些按钮 hover 后变回默认样式，背包格子的 StyleBox 被一个脚本改了颜色后影响了全局。Godot 的 Theme 系统很强，但如果不了解资源共享和覆盖层级，运行时换肤会出现很多“看起来像缓存”的错觉。&lt;/p&gt;</description></item></channel></rss>