Skip to content

Conversation

@micieslak
Copy link
Member

What does the PR do

This PR adds controls to manipulate theme on every Storybook page in separation. The settings are persisted per page. Can be also reset to default values.

Moreover:

  • the Storybook dark/light theme is now affecting only the Storybook itself, not the app's controls
  • the Storyboook font size is pinpointed to fixed value

Affected areas

Storybook

Architecture compliance

Screencapture of the functionality

Screencast.from.16.12.2025.13.16.30.webm

Moreover:
- Storybook own font size pinpointed to fixed value
- Storybook dark/light mode only for SB's own use, not affecting app
  theme
@status-im-auto
Copy link
Member

status-im-auto commented Dec 16, 2025

Jenkins Builds

Click to see older builds (11)
Commit #️⃣ Finished (UTC) Duration Platform Result
64f74e8 #1 2025-12-16 12:32:44 ~8 min macos/aarch64-nwaku 📄log
✔️ 64f74e8 #1 2025-12-16 12:34:42 ~10 min tests/nim 📄log
✔️ 64f74e8 #1 2025-12-16 12:34:42 ~10 min android/arm64 🤖apk 📲
✖️ 64f74e8 #1 2025-12-16 12:37:11 ~13 min ios/aarch64 📱ipa
✔️ 64f74e8 #1 2025-12-16 12:38:37 ~14 min tests/ui 📄log
✔️ 64f74e8 #1 2025-12-16 12:39:08 ~14 min macos/aarch64 🍎dmg
✔️ 64f74e8 #1 2025-12-16 12:45:01 ~20 min linux/x86_64 📦tgz
✔️ 64f74e8 #1 2025-12-16 12:47:54 ~23 min linux/x86_64-nwaku 📦tgz
✔️ 64f74e8 #1 2025-12-16 12:57:38 ~33 min windows/x86_64 💿exe
64f74e8 pr19596 2025-12-16 13:05:24 ~20 min tests/e2e 📄log
✔️ 64f74e8 PR19596 2025-12-16 13:24:07 ~26 min tests/e2e-windows 📊rpt
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 654ddd34 #2 2025-12-17 05:30:14 ~11 min android/arm64 🤖apk 📲
✔️ 8dd781b4 #3 2025-12-18 05:31:19 ~12 min android/arm64 🤖apk 📲

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

Nice work overall, just some minor things here and there

text: modelData

onClicked: root.paddingFactorRequested(
ThemeUtils["Padding" + modelData])
Copy link
Member

Choose a reason for hiding this comment

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

Oh, does that work? 🤯 (converting a string to enum value)

Copy link
Member Author

Choose a reason for hiding this comment

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

Just js. If sth can be accessed as ThemeUtils.PaddingXL it can be accessed as ThemeUtils["PaddingXL"] as well 😁

Copy link
Member

@caybro caybro Dec 17, 2025

Choose a reason for hiding this comment

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

Ha... right... reminds me of the famous C array surprise 😆

int p[3] = {1, 2, 3};
assert(p[1] == 1[p]); // OK; exactly the same

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.

3 participants