Skip to content

feat: themes#175

Merged
snpwflake merged 16 commits intodevelopfrom
feat/personalization
Jun 15, 2025
Merged

feat: themes#175
snpwflake merged 16 commits intodevelopfrom
feat/personalization

Conversation

@wqr11
Copy link
Copy Markdown
Collaborator

@wqr11 wqr11 commented Apr 26, 2025

added new predefined themes and custom theme with separate dark and light variants

pm: https://red36.gefara.xyz/issues/13747

client: https://lab18.matbea.xyz/gpt/client/-/merge_requests/570

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bothub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2025 9:11am

@wqr11 wqr11 changed the title Draft: feat: theme switch widget feat: themes Jun 14, 2025
Comment on lines +72 to +75
stroke: ${({ theme }) =>
theme.bright
? theme.default.colors.base.black
: theme.default.colors.base.white};
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.

тут достаточно сделать theme.colors.base.black, если конечно в темизации ты не меняешь их

Comment on lines +7 to +16
background-color: ${({ theme }) => {
if (theme.bright) {
return theme.mode === 'dark'
? theme.colors.base.black
: theme.colors.base.white;
}
return theme.mode === 'dark'
? theme.colors.base.white
: theme.colors.base.black;
}};
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.

theme.colors.base.black

Comment on lines +37 to +40
if (theme.bright || isBright($color)) {
return theme.mode === 'dark'
? theme.colors.base.black
: theme.colors.base.white;
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.

тоже можно упростить с theme.colors.base.black либо theme.colors.base.white

Comment on lines +16 to +22
switch (theme.mode) {
case 'dark':
return theme.bright ? theme.colors.base.black : theme.colors.base.white;
case 'light':
return theme.bright
? theme.default.colors.base.black
: theme.default.colors.base.white;
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.

здесь тоже

Comment on lines +45 to +48
background-color: ${isBright(theme.colors.grayScale.gray4) ||
theme.mode === 'light'
? theme.default.colors.base.white
: theme.default.colors.base.black};
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.

аналогично

Comment on lines +89 to +90
? theme.default.colors.base.black
: theme.default.colors.base.white
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.

тут

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.

Лучше вынести отдельно

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.

все тесты

@snpwflake snpwflake merged commit df0ed22 into develop Jun 15, 2025
2 checks passed
GravityTwoG added a commit that referenced this pull request Jun 17, 2025
snpwflake added a commit that referenced this pull request Jun 17, 2025
@ATOMCK542 ATOMCK542 deleted the feat/personalization branch March 18, 2026 00:11
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