Skip to content

groupbox to change colours when in darkmode - #229

Merged
adedamola-sode merged 10 commits into
masterfrom
group-box-darkmode
Aug 18, 2026
Merged

groupbox to change colours when in darkmode#229
adedamola-sode merged 10 commits into
masterfrom
group-box-darkmode

Conversation

@adedamola-sode

Copy link
Copy Markdown
Collaborator

The groupbox component does not use the useStyles, hook, So I've had to make some additions to if the system is in darkmode to change selected colours.

@abigailalexander abigailalexander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for spotting Group Box was missing the class theming! Looking at this change, why are we not just adding the useStyles hook into the widget like the others?

Also, cs-web-lib should have no knowledge of custom class names that we are setting ourselves. All classfile logic should come from the parsed classfile and widget class name and be handled in useStyles, and we shouldn't be manually setting any colour themes that aren't explicit in Phoebus

@adedamola-sode

Copy link
Copy Markdown
Collaborator Author

I'll make that change right now, thanks for the heads up

@abigailalexander abigailalexander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, just a few more very minor changes

Comment thread src/ui/widgets/GroupBox/groupBox.tsx Outdated
Comment thread src/ui/widgets/GroupBox/groupBox.tsx
Comment thread src/ui/widgets/GroupBox/groupBox.tsx
@adedamola-sode
adedamola-sode merged commit 9d6d319 into master Aug 18, 2026
2 checks passed
@abigailalexander
abigailalexander deleted the group-box-darkmode branch August 18, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants