Skip to content

Conversation

@micieslak
Copy link
Member

@micieslak micieslak commented Dec 11, 2025

What does the PR do

  • Colors defined via QColor(int, int, int) are not search-friendly (pairing color from Figma to name in code). To solve that, comments witch standard hex notation are added.

  • Storybook Colors page is refactored to fetch colors in automatic way. No need to update it after changing ThemePalette or StatusColors.

Screencast.from.12.12.2025.01.12.17.webm

Affected areas

statuscolors.h, themepalette.cpp

Impact on end user

no impact

Risk

no risk

@micieslak micieslak requested a review from a team as a code owner December 11, 2025 15:33
@micieslak micieslak requested review from Khushboo-dev-cpp, caybro, glitchminer and noeliaSD and removed request for a team December 11, 2025 15:33
Copy link
Contributor

@Khushboo-dev-cpp Khushboo-dev-cpp left a comment

Choose a reason for hiding this comment

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

This is super helpful! thanks :)

@status-im-auto
Copy link
Member

@status-im-auto
Copy link
Member

@caybro
Copy link
Member

caybro commented Dec 11, 2025

You can switch the color notation in Figma as well 😀

@status-im-auto
Copy link
Member

@caybro
Copy link
Member

caybro commented Dec 11, 2025

Another note: could you pls also update the ColorsPage.qml in Storybook as well? That makes the whole color matching and searching process a lot more helpful 🙂

@micieslak
Copy link
Member Author

You can switch the color notation in Figma as well 😀

It doesn't help (or I'm missing sth) bc there is rgba format e.g. rgba(67, 96, 223, 1) where values are decimal. In our code values are hexadecimal, so matching is still problematic.

@micieslak micieslak requested a review from alexjba as a code owner December 12, 2025 00:11
@micieslak
Copy link
Member Author

micieslak commented Dec 12, 2025

Another note: could you pls also update the ColorsPage.qml in Storybook as well? That makes the whole color matching and searching process a lot more helpful 🙂

@caybro good point. It actually triggered me to rebuild ColorsPage.qml. Now it automatically inspects ThemePalette and StatusColors, no need to list keys in the page. It means no manual updates when updating palette. Also some nested values not covered earlier now are available.

@status-im-auto
Copy link
Member

status-im-auto commented Dec 12, 2025

Jenkins Builds

Click to see older builds (9)
Commit #️⃣ Finished (UTC) Duration Platform Result
7278579 #1 2025-12-11 15:42:26 ~8 min android/arm64 📄log
✔️ 7278579 #1 2025-12-11 15:46:25 ~12 min tests/nim 📄log
7278579 #1 2025-12-11 15:46:26 ~12 min linux/x86_64 📄log
7278579 #1 2025-12-11 15:46:44 ~12 min macos/aarch64-nwaku 📄log
✔️ 7278579 #1 2025-12-11 15:48:25 ~14 min tests/ui 📄log
7278579 #1 2025-12-11 15:49:10 ~14 min windows/x86_64 📄log
7278579 #1 2025-12-11 15:50:07 ~16 min ios/aarch64 📄log
✔️ 7278579 #1 2025-12-11 15:56:02 ~21 min macos/aarch64 🍎dmg
7278579 #1 2025-12-11 15:58:39 ~24 min linux/x86_64-nwaku 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
07fa75f #2 2025-12-12 00:20:20 ~8 min android/arm64 📄log
✔️ 07fa75f #2 2025-12-12 00:24:32 ~12 min tests/nim 📄log
07fa75f #2 2025-12-12 00:25:18 ~13 min macos/aarch64-nwaku 📄log
✔️ 07fa75f #2 2025-12-12 00:25:32 ~13 min tests/ui 📄log
07fa75f #2 2025-12-12 00:27:04 ~14 min windows/x86_64 📄log
07fa75f #2 2025-12-12 00:27:51 ~15 min ios/aarch64 📄log
✔️ 07fa75f #2 2025-12-12 00:33:29 ~21 min linux/x86_64 📦tgz
✔️ 07fa75f #2 2025-12-12 00:33:56 ~21 min macos/aarch64 🍎dmg
✔️ 07fa75f #2 2025-12-12 00:36:42 ~24 min linux/x86_64-nwaku 📦tgz
✖️ 07fa75f pr19560 2025-12-12 00:49:23 ~15 min tests/e2e 📊rpt
ca78012 #4 2025-12-12 10:03:52 ~8 min android/arm64 📄log
✔️ ca78012 #3 2025-12-12 10:08:58 ~13 min tests/nim 📄log
ca78012 #3 2025-12-12 10:09:21 ~14 min ios/aarch64 📄log
✔️ ca78012 #3 2025-12-12 10:14:13 ~19 min tests/ui 📄log
✔️ ca78012 #3 2025-12-12 10:14:19 ~19 min macos/aarch64 🍎dmg
✔️ ca78012 #3 2025-12-12 10:16:49 ~21 min macos/aarch64-nwaku 🍎dmg
✔️ ca78012 #3 2025-12-12 10:18:36 ~23 min linux/x86_64 📦tgz
✔️ ca78012 #3 2025-12-12 10:21:13 ~26 min linux/x86_64-nwaku 📦tgz
✔️ ca78012 #3 2025-12-12 10:30:09 ~34 min windows/x86_64 💿exe
ca78012 pr19560 2025-12-12 10:34:35 ~15 min tests/e2e 📄log
✔️ ca78012 PR19560 2025-12-12 10:56:54 ~26 min tests/e2e-windows 📊rpt

@micieslak micieslak changed the title Theme: add comments with hex color values Theme: add comments with hex color values and SB showcase improved Dec 12, 2025
Colors defined via QColor(int, int, int) are not search-friendly
(pairing color from Figma to name in code). To solve that, comments
witch standard hex notation are added.
@micieslak micieslak force-pushed the chore/colors-hex-comments branch from 07fa75f to ca78012 Compare December 12, 2025 09:54
@micieslak micieslak merged commit 1f3c887 into master Dec 12, 2025
11 of 13 checks passed
@micieslak micieslak deleted the chore/colors-hex-comments branch December 12, 2025 15:26
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.

5 participants