/** * 控制台视图类(MVC-视图层) */ public class ConsoleView { public void render() { // 应用暗色主题常量 System.out.println("=== 暗色主题模式 ==="); System.out.println("背景色:" + ViewConstants.BACKGROUND_COLOR); System.out.println("文本色:" + ViewConstants.TEXT_COLOR); // 其他视图渲染逻辑 } }