fix: KeyError 'border_orange' - updated to correct color names
- Changed border_orange references to: - accent_orange for input focus - border_window for floating_icon - All EU_COLORS keys now match their usage
This commit is contained in:
parent
7e12da3b8b
commit
2e8e17b2a5
|
|
@ -8,22 +8,22 @@ Based on screenshot analysis.
|
|||
# EU Color Palette from screenshots - EXACT MATCH
|
||||
EU_COLORS = {
|
||||
# Backgrounds - from Skills window
|
||||
'bg_dark': 'rgba(20, 25, 35, 245)', # Main window bg
|
||||
'bg_panel': 'rgba(30, 35, 45, 230)', # Panel/content bg
|
||||
'bg_header': 'rgba(25, 30, 40, 240)', # Header bg
|
||||
'bg_hover': 'rgba(40, 45, 60, 200)', # Hover state
|
||||
'bg_selected': 'rgba(50, 55, 75, 180)', # Selected item
|
||||
'bg_dark': 'rgba(20, 25, 35, 245)',
|
||||
'bg_panel': 'rgba(30, 35, 45, 230)',
|
||||
'bg_header': 'rgba(25, 30, 40, 240)',
|
||||
'bg_hover': 'rgba(40, 45, 60, 200)',
|
||||
'bg_selected': 'rgba(50, 55, 75, 180)',
|
||||
|
||||
# Borders
|
||||
'border_subtle': 'rgba(60, 70, 90, 100)',
|
||||
'border_medium': 'rgba(80, 90, 110, 120)',
|
||||
'border_window': 'rgba(255, 140, 66, 200)', # Orange window border
|
||||
'border_active': 'rgba(255, 140, 66, 255)', # Active/selected border
|
||||
'border_window': 'rgba(255, 140, 66, 200)',
|
||||
'border_active': 'rgba(255, 140, 66, 255)',
|
||||
|
||||
# Accents - EXACT from game
|
||||
'accent_orange': '#ff8c42', # Main orange
|
||||
'accent_orange_bright': '#ffa060', # Hover orange
|
||||
'accent_teal': '#4ecdc4', # Progress bar teal
|
||||
# Accents
|
||||
'accent_orange': '#ff8c42',
|
||||
'accent_orange_bright': '#ffa060',
|
||||
'accent_teal': '#4ecdc4',
|
||||
'accent_gold': '#ffc107',
|
||||
'accent_blue': '#4a9eff',
|
||||
|
||||
|
|
@ -31,14 +31,13 @@ EU_COLORS = {
|
|||
'text_primary': 'rgba(255, 255, 255, 250)',
|
||||
'text_secondary': 'rgba(255, 255, 255, 180)',
|
||||
'text_muted': 'rgba(255, 255, 255, 120)',
|
||||
'text_orange': '#ff8c42', # Orange text for ranks
|
||||
'text_orange': '#ff8c42',
|
||||
|
||||
# Progress bars
|
||||
'progress_bg': 'rgba(60, 70, 90, 150)',
|
||||
'progress_fill': '#4ecdc4', # Teal like game
|
||||
'progress_fill': '#4ecdc4',
|
||||
}
|
||||
|
||||
# EU Border Radius - slightly rounded corners
|
||||
EU_RADIUS = {
|
||||
'small': '4px',
|
||||
'medium': '6px',
|
||||
|
|
@ -46,10 +45,8 @@ EU_RADIUS = {
|
|||
'button': '3px',
|
||||
}
|
||||
|
||||
# EU Font Stack
|
||||
EU_FONT = '"Eurostile", "Bank Gothic", "Segoe UI", Arial, sans-serif'
|
||||
|
||||
# EU Style Sheets
|
||||
EU_STYLES = {
|
||||
'overlay_container': f"""
|
||||
QWidget {{
|
||||
|
|
@ -120,7 +117,7 @@ EU_STYLES = {
|
|||
font-size: 12px;
|
||||
}}
|
||||
QLineEdit:focus {{
|
||||
border: 1px solid {EU_COLORS['border_orange']};
|
||||
border: 1px solid {EU_COLORS['accent_orange']};
|
||||
}}
|
||||
""",
|
||||
|
||||
|
|
@ -188,7 +185,7 @@ EU_STYLES = {
|
|||
'floating_icon': f"""
|
||||
QLabel {{
|
||||
background-color: {EU_COLORS['bg_panel']};
|
||||
border: 1px solid {EU_COLORS['border_orange']};
|
||||
border: 1px solid {EU_COLORS['border_window']};
|
||||
border-radius: {EU_RADIUS['small']};
|
||||
}}
|
||||
""",
|
||||
|
|
@ -203,9 +200,7 @@ EU_STYLES = {
|
|||
}
|
||||
|
||||
def get_eu_style(style_name):
|
||||
"""Get an EU style by name."""
|
||||
return EU_STYLES.get(style_name, "")
|
||||
|
||||
def get_color(name):
|
||||
"""Get an EU color by name."""
|
||||
return EU_COLORS.get(name, "white")
|
||||
|
|
|
|||
Loading…
Reference in New Issue