Skip to content

Conversation

@crwusiz
Copy link
Contributor

@crwusiz crwusiz commented Dec 13, 2025

No description provided.

@github-actions github-actions bot added the ui label Dec 13, 2025
@crwusiz crwusiz changed the title UI: refactor constant declarations and remove redundancy ui: refactor constant declarations and remove redundancy Dec 13, 2025
COLORS.HEADER_GRADIENT_START,
COLORS.HEADER_GRADIENT_END,
UIConfig.header_height,
Colors.HEADER_GRADIENT_START,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename the classes to all upper case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then, shall we change the Colors of sidebar.py to capital letters as well?

sidebar.py

->

Color scheme

class Colors:
WHITE = rl.WHITE
WHITE_DIM = rl.Color(255, 255, 255, 85)
GRAY = rl.Color(84, 84, 84, 255)

Status colors

GOOD = rl.WHITE
WARNING = rl.Color(218, 202, 37, 255)
DANGER = rl.Color(201, 34, 49, 255)
UP_TO_DATE = rl.Color(128, 216, 166, 255)

UI elements

METRIC_BORDER = rl.Color(255, 255, 255, 85)
BUTTON_NORMAL = rl.WHITE
BUTTON_PRESSED = rl.Color(255, 255, 255, 166)

@github-actions
Copy link
Contributor

github-actions bot commented Dec 13, 2025

mici raylib UI Preview

✅ Videos are identical! View Diff Report

HEADER_GRADIENT_END = rl.BLANK


UI_CONFIG = UIConfig()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think they need to be dataclasses either, maybe enum if anything, but not necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

calling in duplicate only in the hud_render.py

@github-actions
Copy link
Contributor

github-actions bot commented Dec 13, 2025

raylib UI Preview

All Screenshots

@crwusiz crwusiz changed the title ui: refactor constant declarations and remove redundancy ui: refactor constant declarations Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants