feat: consolidate test structure and enhance header visibility across themes
This commit is contained in:
61
scripts/verify_themes.py
Normal file
61
scripts/verify_themes.py
Normal file
@@ -0,0 +1,61 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Verify that other themes still work correctly with Arc-specific change."""
|
||||
|
||||
import sys
|
||||
import tkinter as tk
|
||||
from pathlib import Path
|
||||
|
||||
from init import logger
|
||||
from theme_manager import ThemeManager
|
||||
|
||||
# Add src directory to Python path
|
||||
src_path = Path(__file__).parent / "src"
|
||||
sys.path.insert(0, str(src_path))
|
||||
|
||||
|
||||
def verify_other_themes():
|
||||
"""Verify other themes still have correct header colors."""
|
||||
print("=== VERIFYING OTHER THEMES ===\n")
|
||||
|
||||
root = tk.Tk()
|
||||
root.withdraw()
|
||||
|
||||
theme_manager = ThemeManager(root, logger)
|
||||
available_themes = theme_manager.get_available_themes()
|
||||
|
||||
# Test a few key themes
|
||||
test_themes = ["arc", "equilux", "adapta", "breeze"]
|
||||
|
||||
for theme in test_themes:
|
||||
if theme not in available_themes:
|
||||
continue
|
||||
|
||||
print(f"🎨 {theme.upper()} THEME")
|
||||
|
||||
# Apply theme
|
||||
success = theme_manager.apply_theme(theme)
|
||||
if not success:
|
||||
print("❌ Failed to apply theme")
|
||||
continue
|
||||
|
||||
# Get colors
|
||||
colors = theme_manager.get_theme_colors()
|
||||
header_colors = theme_manager._get_contrasting_colors(colors)
|
||||
|
||||
print(f" Header BG: {header_colors['header_bg']}")
|
||||
print(f" Header FG: {header_colors['header_fg']}")
|
||||
|
||||
# Special note for Arc theme
|
||||
if theme == "arc":
|
||||
print(" ✅ Arc theme using darker text (#d8dee9)")
|
||||
else:
|
||||
print(" ✅ Other theme using standard text (#eceff4)")
|
||||
|
||||
print()
|
||||
|
||||
print("Verification complete!")
|
||||
root.destroy()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
verify_other_themes()
|
||||
Reference in New Issue
Block a user