Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add support for theme color modes - #18257

#18257
Merged
MauricioFauth merged 3 commits into
phpmyadmin:masterphpmyadmin/phpmyadmin:masterfrom
MauricioFauth:theme-color-modesMauricioFauth/phpmyadmin:theme-color-modesCopy head branch name to clipboard
Mar 14, 2023
Merged

Add support for theme color modes#18257
MauricioFauth merged 3 commits into
phpmyadmin:masterphpmyadmin/phpmyadmin:masterfrom
MauricioFauth:theme-color-modesMauricioFauth/phpmyadmin:theme-color-modesCopy head branch name to clipboard

Conversation

@MauricioFauth

@MauricioFauth MauricioFauth commented Mar 13, 2023

Copy link
Copy Markdown
Member

"url": "https://www.phpmyadmin.net/",
"supports": ["6.0"]
"supports": ["6.0"],
"colorModes": ["light", "dark"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we say they can be translated ?
Or maybe just for themes we provide ?

@ibennetch ibennetch Mar 13, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That's a great thought and good question.

I suspect we shouldn't translate the modes; that can get really messy with multiple languages especially with a theme like Metro (would you translate "Redmond?"). Seems to me it's easier and less messy to not translate these values at all, but I'm not certain of that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

would you translate "Redmond?"

Nope

Seems to me it's easier and less messy to not translate these values at all, but I'm not certain of that.

Well, I think people will come at us and ask for translations of light and dark.
But less probably Redmond or other stuff that's not really an English word from a non english user

That's a bit complicated to decide

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I added translations for Light and Dark, which I think will be the more common ones. Other colors names will not have translations.

@williamdes williamdes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯

@MauricioFauth
MauricioFauth marked this pull request as ready for review March 14, 2023 02:01
@codecov

codecov Bot commented Mar 14, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 51.21% and project coverage change: -0.02 ⚠️

Comparison is base (6264b7c) 54.17% compared to head (30b4d2e) 54.15%.

❗ Current head 30b4d2e differs from pull request most recent head 111baef. Consider uploading reports for the commit 111baef to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18257      +/-   ##
============================================
- Coverage     54.17%   54.15%   -0.02%     
- Complexity    16406    16417      +11     
============================================
  Files           628      627       -1     
  Lines         67620    67649      +29     
============================================
+ Hits          36631    36636       +5     
- Misses        30989    31013      +24     
Flag Coverage Δ
dbase-extension 54.15% <51.21%> (+<0.01%) ⬆️
recode-extension 54.12% <51.21%> (+<0.01%) ⬆️
unit-8.1-ubuntu-latest 54.12% <51.21%> (+<0.01%) ⬆️
unit-8.2-ubuntu-latest 54.12% <51.21%> (-0.02%) ⬇️
unit-nightly-ubuntu-latest 54.12% <51.21%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
libraries/classes/Template.php 74.46% <ø> (-0.54%) ⬇️
libraries/classes/Theme/Theme.php 78.50% <35.71%> (-6.45%) ⬇️
libraries/classes/Theme/ThemeManager.php 67.82% <50.00%> (-3.31%) ⬇️
...braries/classes/Controllers/ThemeSetController.php 93.75% <66.66%> (-6.25%) ⬇️
libraries/classes/Tracking.php 64.35% <75.00%> (ø)
libraries/classes/Header.php 89.78% <100.00%> (+0.07%) ⬆️

... and 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
@MauricioFauth
MauricioFauth merged commit 60d1a59 into phpmyadmin:master Mar 14, 2023
@MauricioFauth
MauricioFauth deleted the theme-color-modes branch March 14, 2023 04:13
@MauricioFauth MauricioFauth self-assigned this Mar 14, 2023
@MauricioFauth MauricioFauth added this to the 6.0.0 milestone Mar 14, 2023
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.

Feature: add a toggler element to switch between color schemes

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.