refactor: 迁移 shader.wgsl 至 static/wgsl/,新增 model 模块
This commit is contained in:
24
src/theme.rs
24
src/theme.rs
@@ -16,24 +16,24 @@ pub struct AppTheme {
|
||||
}
|
||||
|
||||
pub const ONE_DARK_PRO: AppTheme = AppTheme {
|
||||
bg: egui::Color32::from_rgb(40, 44, 52), // #282C34 editor background
|
||||
panel: egui::Color32::from_rgb(33, 37, 43), // #21252B sidebar/darker
|
||||
bg: egui::Color32::from_rgb(40, 44, 52), // #282C34 editor background
|
||||
panel: egui::Color32::from_rgb(33, 37, 43), // #21252B sidebar/darker
|
||||
panel_strong: egui::Color32::from_rgb(44, 49, 58), // #2C313A slightly lighter
|
||||
panel_deep: egui::Color32::from_rgb(27, 31, 39), // #1B1F27 darkest
|
||||
border: egui::Color32::from_rgb(62, 68, 81), // #3E4451 border
|
||||
border_soft: egui::Color32::from_rgb(44, 49, 58), // #2C313A soft border
|
||||
text: egui::Color32::from_rgb(171, 178, 191), // #ABB2BF default text
|
||||
text_dim: egui::Color32::from_rgb(92, 99, 112), // #5C6370 dimmed text
|
||||
accent: egui::Color32::from_rgb(198, 120, 221), // #C678DD purple (signature)
|
||||
panel_deep: egui::Color32::from_rgb(27, 31, 39), // #1B1F27 darkest
|
||||
border: egui::Color32::from_rgb(62, 68, 81), // #3E4451 border
|
||||
border_soft: egui::Color32::from_rgb(44, 49, 58), // #2C313A soft border
|
||||
text: egui::Color32::from_rgb(171, 178, 191), // #ABB2BF default text
|
||||
text_dim: egui::Color32::from_rgb(92, 99, 112), // #5C6370 dimmed text
|
||||
accent: egui::Color32::from_rgb(198, 120, 221), // #C678DD purple (signature)
|
||||
accent_hot: egui::Color32::from_rgb(229, 192, 123), // #E5C07B yellow/gold
|
||||
radius: 3,
|
||||
};
|
||||
|
||||
// Additional One Dark Pro accent colors (standalone constants)
|
||||
pub const ACCENT_GREEN: egui::Color32 = egui::Color32::from_rgb(152, 195, 121); // #98C379
|
||||
pub const ACCENT_RED: egui::Color32 = egui::Color32::from_rgb(224, 108, 117); // #E06C75
|
||||
pub const ACCENT_BLUE: egui::Color32 = egui::Color32::from_rgb(97, 175, 239); // #61AFEF
|
||||
pub const ACCENT_CYAN: egui::Color32 = egui::Color32::from_rgb(86, 182, 194); // #56B6C2
|
||||
pub const ACCENT_GREEN: egui::Color32 = egui::Color32::from_rgb(152, 195, 121); // #98C379
|
||||
pub const ACCENT_RED: egui::Color32 = egui::Color32::from_rgb(224, 108, 117); // #E06C75
|
||||
pub const ACCENT_BLUE: egui::Color32 = egui::Color32::from_rgb(97, 175, 239); // #61AFEF
|
||||
pub const ACCENT_CYAN: egui::Color32 = egui::Color32::from_rgb(86, 182, 194); // #56B6C2
|
||||
pub const ACCENT_ORANGE: egui::Color32 = egui::Color32::from_rgb(209, 154, 102); // #D19A66
|
||||
|
||||
pub fn apply_theme(ctx: &egui::Context, theme: &AppTheme) {
|
||||
|
||||
Reference in New Issue
Block a user