Add theme management and background rendering features
- Introduced a comprehensive theme management system, allowing users to load, save, and switch between multiple themes. - Added support for various built-in themes, enhancing the visual customization of the application. - Implemented a background renderer for improved visual effects in docking windows, including grid backgrounds and subtle animations. - Enhanced the EditorManager UI with themed elements, providing a more cohesive and engaging user experience. - Updated CMake configuration to include new theme and background renderer source files, ensuring proper integration into the build system.
This commit is contained in:
62
assets/themes/cyberpunk.theme
Normal file
62
assets/themes/cyberpunk.theme
Normal file
@@ -0,0 +1,62 @@
|
||||
# Cyberpunk Theme
|
||||
# Neon-inspired futuristic theme
|
||||
name=Cyberpunk
|
||||
description=Neon-inspired futuristic theme
|
||||
author=YAZE Team
|
||||
version=1.0
|
||||
|
||||
[colors]
|
||||
# Primary colors (neon cyberpunk)
|
||||
primary=255,20,147,255
|
||||
secondary=0,255,255,255
|
||||
accent=255,0,128,255
|
||||
background=10,10,20,255
|
||||
surface=20,20,40,255
|
||||
|
||||
# Status colors
|
||||
error=255,50,100,255
|
||||
warning=255,255,0,255
|
||||
success=0,255,100,255
|
||||
info=100,200,255,255
|
||||
|
||||
# Text colors
|
||||
text_primary=255,255,255,255
|
||||
text_secondary=200,200,255,255
|
||||
text_disabled=100,100,150,255
|
||||
|
||||
# Window colors
|
||||
window_bg=15,15,30,240
|
||||
child_bg=10,10,25,200
|
||||
popup_bg=20,20,40,250
|
||||
|
||||
# Interactive elements
|
||||
button=40,20,60,255
|
||||
button_hovered=120,20,120,255
|
||||
button_active=160,40,160,255
|
||||
frame_bg=30,30,50,255
|
||||
frame_bg_hovered=40,40,70,255
|
||||
frame_bg_active=60,20,80,255
|
||||
|
||||
# Navigation
|
||||
header=30,10,50,255
|
||||
header_hovered=80,20,100,255
|
||||
header_active=120,40,140,255
|
||||
tab=25,15,45,255
|
||||
tab_hovered=60,30,80,255
|
||||
tab_active=100,20,120,255
|
||||
menu_bar_bg=20,10,40,255
|
||||
title_bg=25,15,45,255
|
||||
title_bg_active=30,10,50,255
|
||||
title_bg_collapsed=25,15,45,255
|
||||
|
||||
[style]
|
||||
window_rounding=10.0
|
||||
frame_rounding=8.0
|
||||
scrollbar_rounding=10.0
|
||||
grab_rounding=6.0
|
||||
tab_rounding=6.0
|
||||
window_border_size=1.0
|
||||
frame_border_size=1.0
|
||||
enable_animations=true
|
||||
enable_glow_effects=true
|
||||
animation_speed=1.5
|
||||
73
assets/themes/forest.theme
Normal file
73
assets/themes/forest.theme
Normal file
@@ -0,0 +1,73 @@
|
||||
# Forest Theme
|
||||
# Enhanced forest theme with better readability
|
||||
name=Forest
|
||||
description=Deep forest theme with enhanced readability
|
||||
author=YAZE Team
|
||||
version=1.0
|
||||
|
||||
[colors]
|
||||
# Primary colors (enhanced forest with better contrast)
|
||||
primary=100,180,120,255 # Brighter forest green
|
||||
secondary=70,130,85,255 # Mid forest green
|
||||
accent=130,220,150,255 # Light accent green
|
||||
background=15,25,15,255 # Darker background for contrast
|
||||
surface=25,35,25,255
|
||||
|
||||
# Status colors
|
||||
error=255,120,120,255
|
||||
warning=255,220,120,255
|
||||
success=100,180,120,255
|
||||
info=120,200,180,255
|
||||
|
||||
# Text colors (enhanced for readability)
|
||||
text_primary=250,255,250,255 # Very light for contrast
|
||||
text_secondary=220,240,220,255 # Light green tint
|
||||
text_disabled=150,170,150,255 # Brighter disabled text
|
||||
|
||||
# Window colors (better contrast)
|
||||
window_bg=20,30,20,240
|
||||
child_bg=15,25,15,200
|
||||
popup_bg=25,35,25,250
|
||||
|
||||
# Interactive elements (better visibility)
|
||||
button=70,110,80,255
|
||||
button_hovered=100,150,115,255
|
||||
button_active=130,180,145,255
|
||||
frame_bg=40,60,45,200
|
||||
frame_bg_hovered=55,80,60,220
|
||||
frame_bg_active=70,110,80,240
|
||||
|
||||
# Navigation (better contrast)
|
||||
header=55,85,60,255
|
||||
header_hovered=100,150,115,255
|
||||
header_active=130,180,145,255
|
||||
tab=45,75,50,255
|
||||
tab_hovered=70,110,80,255
|
||||
tab_active=100,150,115,255
|
||||
menu_bar_bg=40,70,45,255
|
||||
title_bg=50,80,55,255
|
||||
title_bg_active=55,85,60,255
|
||||
title_bg_collapsed=45,75,50,255
|
||||
|
||||
# Separators (better visibility)
|
||||
separator=120,160,130,180
|
||||
separator_hovered=150,200,160,220
|
||||
separator_active=180,240,190,255
|
||||
|
||||
# Scrollbars (better visibility)
|
||||
scrollbar_bg=40,60,45,180
|
||||
scrollbar_grab=80,120,90,200
|
||||
scrollbar_grab_hovered=100,150,115,230
|
||||
scrollbar_grab_active=130,180,145,255
|
||||
|
||||
[style]
|
||||
window_rounding=6.0
|
||||
frame_rounding=4.0
|
||||
scrollbar_rounding=6.0
|
||||
grab_rounding=3.0
|
||||
tab_rounding=3.0
|
||||
window_border_size=0.0
|
||||
frame_border_size=0.0
|
||||
enable_animations=true
|
||||
enable_glow_effects=false
|
||||
animation_speed=1.0
|
||||
73
assets/themes/midnight.theme
Normal file
73
assets/themes/midnight.theme
Normal file
@@ -0,0 +1,73 @@
|
||||
# Midnight Theme
|
||||
# Enhanced midnight theme with better readability
|
||||
name=Midnight
|
||||
description=Deep blue midnight theme with enhanced readability
|
||||
author=YAZE Team
|
||||
version=1.0
|
||||
|
||||
[colors]
|
||||
# Primary colors (enhanced midnight with better contrast)
|
||||
primary=100,160,230,255 # Brighter blue
|
||||
secondary=70,120,180,255 # Mid blue
|
||||
accent=140,200,255,255 # Light blue accent
|
||||
background=10,15,25,255 # Darker background for contrast
|
||||
surface=20,25,35,255
|
||||
|
||||
# Status colors
|
||||
error=255,120,120,255
|
||||
warning=255,220,120,255
|
||||
success=120,255,180,255
|
||||
info=140,200,255,255
|
||||
|
||||
# Text colors (enhanced for readability)
|
||||
text_primary=245,250,255,255 # Very light blue-white
|
||||
text_secondary=200,220,240,255 # Light blue tint
|
||||
text_disabled=140,160,180,255 # Brighter disabled text
|
||||
|
||||
# Window colors (better contrast)
|
||||
window_bg=15,20,30,240
|
||||
child_bg=10,15,25,200
|
||||
popup_bg=20,25,35,250
|
||||
|
||||
# Interactive elements (better visibility)
|
||||
button=50,80,120,255
|
||||
button_hovered=80,120,160,255
|
||||
button_active=110,150,190,255
|
||||
frame_bg=30,45,65,200
|
||||
frame_bg_hovered=40,60,85,220
|
||||
frame_bg_active=60,90,130,240
|
||||
|
||||
# Navigation (better contrast)
|
||||
header=40,65,100,255
|
||||
header_hovered=70,110,150,255
|
||||
header_active=100,140,180,255
|
||||
tab=30,55,90,255
|
||||
tab_hovered=50,80,120,255
|
||||
tab_active=70,110,150,255
|
||||
menu_bar_bg=25,50,85,255
|
||||
title_bg=35,60,95,255
|
||||
title_bg_active=40,65,100,255
|
||||
title_bg_collapsed=30,55,90,255
|
||||
|
||||
# Separators (better visibility)
|
||||
separator=100,140,180,180
|
||||
separator_hovered=130,170,210,220
|
||||
separator_active=160,200,240,255
|
||||
|
||||
# Scrollbars (better visibility)
|
||||
scrollbar_bg=30,45,65,180
|
||||
scrollbar_grab=70,110,150,200
|
||||
scrollbar_grab_hovered=100,140,180,230
|
||||
scrollbar_grab_active=130,170,210,255
|
||||
|
||||
[style]
|
||||
window_rounding=8.0
|
||||
frame_rounding=6.0
|
||||
scrollbar_rounding=8.0
|
||||
grab_rounding=4.0
|
||||
tab_rounding=6.0
|
||||
window_border_size=0.0
|
||||
frame_border_size=0.0
|
||||
enable_animations=true
|
||||
enable_glow_effects=true
|
||||
animation_speed=1.2
|
||||
62
assets/themes/sunset.theme
Normal file
62
assets/themes/sunset.theme
Normal file
@@ -0,0 +1,62 @@
|
||||
# Sunset Theme
|
||||
# Warm orange and purple sunset theme
|
||||
name=Sunset
|
||||
description=Warm orange and purple sunset theme
|
||||
author=YAZE Team
|
||||
version=1.0
|
||||
|
||||
[colors]
|
||||
# Primary colors (sunset)
|
||||
primary=255,140,60,255
|
||||
secondary=200,100,150,255
|
||||
accent=255,180,100,255
|
||||
background=30,20,35,255
|
||||
surface=40,30,45,255
|
||||
|
||||
# Status colors
|
||||
error=255,100,120,255
|
||||
warning=255,200,100,255
|
||||
success=150,255,150,255
|
||||
info=150,200,255,255
|
||||
|
||||
# Text colors
|
||||
text_primary=255,245,235,255
|
||||
text_secondary=220,200,180,255
|
||||
text_disabled=150,130,120,255
|
||||
|
||||
# Window colors
|
||||
window_bg=35,25,40,240
|
||||
child_bg=30,20,35,200
|
||||
popup_bg=40,30,45,250
|
||||
|
||||
# Interactive elements
|
||||
button=60,40,70,255
|
||||
button_hovered=120,80,100,255
|
||||
button_active=150,100,120,255
|
||||
frame_bg=45,35,50,255
|
||||
frame_bg_hovered=55,45,60,255
|
||||
frame_bg_active=80,60,90,255
|
||||
|
||||
# Navigation
|
||||
header=50,35,60,255
|
||||
header_hovered=100,70,90,255
|
||||
header_active=130,90,110,255
|
||||
tab=40,30,50,255
|
||||
tab_hovered=70,50,70,255
|
||||
tab_active=100,70,90,255
|
||||
menu_bar_bg=35,25,45,255
|
||||
title_bg=40,30,50,255
|
||||
title_bg_active=50,35,60,255
|
||||
title_bg_collapsed=40,30,50,255
|
||||
|
||||
[style]
|
||||
window_rounding=12.0
|
||||
frame_rounding=8.0
|
||||
scrollbar_rounding=12.0
|
||||
grab_rounding=6.0
|
||||
tab_rounding=8.0
|
||||
window_border_size=0.0
|
||||
frame_border_size=0.0
|
||||
enable_animations=true
|
||||
enable_glow_effects=false
|
||||
animation_speed=1.0
|
||||
92
assets/themes/yaze_tre.theme
Normal file
92
assets/themes/yaze_tre.theme
Normal file
@@ -0,0 +1,92 @@
|
||||
# YAZE Tre Theme
|
||||
# Theme resource edition based on original ColorsYaze() function
|
||||
name=YAZE Tre
|
||||
description=YAZE theme resource edition (file-based)
|
||||
author=YAZE Team
|
||||
version=1.0
|
||||
|
||||
[colors]
|
||||
# Primary colors (exact ALTTP colors from original code)
|
||||
primary=92,115,92,255 # 0.36f, 0.45f, 0.36f - allttpLightGreen
|
||||
secondary=71,92,71,255 # 0.28f, 0.36f, 0.28f - alttpMidGreen
|
||||
accent=89,119,89,255 # 0.347f, 0.466f, 0.347f - TabActive exact
|
||||
background=8,8,8,255 # Very dark gray for better grid visibility
|
||||
surface=12,12,12,255 # Slightly lighter dark gray surface
|
||||
|
||||
# Status colors
|
||||
error=220,50,47,255
|
||||
warning=255,193,7,255
|
||||
success=92,115,92,255
|
||||
info=52,152,219,255
|
||||
|
||||
# Text colors (exact from original)
|
||||
text_primary=230,230,230,255 # 0.90f, 0.90f, 0.90f
|
||||
text_secondary=180,180,180,255
|
||||
text_disabled=153,153,153,255 # 0.60f, 0.60f, 0.60f
|
||||
|
||||
# Window colors (exact from original)
|
||||
window_bg=8,8,8,217 # Very dark gray with same alpha
|
||||
child_bg=0,0,0,0 # 0.00f, 0.00f, 0.00f, 0.00f - transparent
|
||||
popup_bg=28,28,36,235 # 0.11f, 0.11f, 0.14f, 0.92f
|
||||
|
||||
# Interactive elements (exact from original)
|
||||
button=71,92,71,255 # alttpMidGreen
|
||||
button_hovered=125,145,125,255 # allttpLightestGreen (exact)
|
||||
button_active=92,115,92,255 # allttpLightGreen
|
||||
frame_bg=110,110,110,99 # 0.43f, 0.43f, 0.43f, 0.39f
|
||||
frame_bg_hovered=71,92,71,102 # 0.28f, 0.36f, 0.28f, 0.40f
|
||||
frame_bg_active=71,92,71,176 # 0.28f, 0.36f, 0.28f, 0.69f
|
||||
|
||||
# Navigation (exact from original)
|
||||
header=46,66,46,255 # alttpDarkGreen
|
||||
header_hovered=92,115,92,255 # allttpLightGreen
|
||||
header_active=71,92,71,255 # alttpMidGreen
|
||||
tab=46,66,46,255 # alttpDarkGreen
|
||||
tab_hovered=71,92,71,255 # alttpMidGreen
|
||||
tab_active=89,119,89,255 # TabActive exact color
|
||||
menu_bar_bg=46,66,46,255 # alttpDarkGreen
|
||||
title_bg=71,92,71,255 # alttpMidGreen
|
||||
title_bg_active=46,66,46,255 # alttpDarkGreen
|
||||
title_bg_collapsed=71,92,71,255 # alttpMidGreen
|
||||
|
||||
# Borders and separators (exact from original)
|
||||
border=92,115,92,255 # allttpLightGreen
|
||||
border_shadow=0,0,0,0 # No shadow in original
|
||||
separator=127,127,127,153 # 0.50f, 0.50f, 0.50f, 0.60f
|
||||
separator_hovered=153,153,178,255 # 0.60f, 0.60f, 0.70f
|
||||
separator_active=178,178,230,255 # 0.70f, 0.70f, 0.90f
|
||||
|
||||
# Scrollbars (exact from original)
|
||||
scrollbar_bg=92,115,92,153 # 0.36f, 0.45f, 0.36f, 0.60f
|
||||
scrollbar_grab=92,115,92,76 # 0.36f, 0.45f, 0.36f, 0.30f (exact)
|
||||
scrollbar_grab_hovered=92,115,92,102 # 0.36f, 0.45f, 0.36f, 0.40f
|
||||
scrollbar_grab_active=92,115,92,153 # 0.36f, 0.45f, 0.36f, 0.60f
|
||||
|
||||
# Resize grips (exact from original - these are light blue, not white!)
|
||||
resize_grip=255,255,255,26 # 1.00f, 1.00f, 1.00f, 0.10f
|
||||
resize_grip_hovered=199,209,255,153 # 0.78f, 0.82f, 1.00f, 0.60f (light blue!)
|
||||
resize_grip_active=199,209,255,230 # 0.78f, 0.82f, 1.00f, 0.90f (light blue!)
|
||||
|
||||
# Additional controls (missing from theme)
|
||||
check_mark=230,230,230,128 # 0.90f, 0.90f, 0.90f, 0.50f
|
||||
slider_grab=255,255,255,77 # 1.00f, 1.00f, 1.00f, 0.30f
|
||||
slider_grab_active=92,115,92,153 # 0.36f, 0.45f, 0.36f, 0.60f
|
||||
|
||||
# Table colors (from original)
|
||||
table_header_bg=46,66,46,255 # alttpDarkGreen
|
||||
table_border_strong=71,92,71,255 # alttpMidGreen
|
||||
table_border_light=66,66,71,255 # 0.26f, 0.26f, 0.28f
|
||||
table_row_bg=0,0,0,0 # Transparent
|
||||
table_row_bg_alt=255,255,255,18 # 1.00f, 1.00f, 1.00f, 0.07f
|
||||
|
||||
[style]
|
||||
window_rounding=0.0
|
||||
frame_rounding=5.0
|
||||
scrollbar_rounding=5.0
|
||||
grab_rounding=3.0
|
||||
tab_rounding=0.0
|
||||
window_border_size=0.0
|
||||
frame_border_size=0.0
|
||||
enable_animations=true
|
||||
enable_glow_effects=false
|
||||
animation_speed=1.0
|
||||
Reference in New Issue
Block a user